No price change required with variations

Home PageForumsThemes & presentationNo price change required with variations

This topic is: not resolved

This topic has 4 voices, contains 7 replies, and was last updated by  leewillis77 257 days ago.

Viewing 8 posts - 1 through 8 (of 8 total)
Author Posts
Author Posts
September 5, 2011 at 11:37 pm #223579

sian
New Member

Hi,

I wonder if anyone can help. I am setting up an online shoe store. There are variations of size for each product, however the price stays the same. At the moment I am using grid view and all of the product prices are displayed as ‘from £44′. I do not require the word ‘from’ in the price as it’s not necessary.

I have searched throughout the code and simply can’t figure out how to remove the word ‘from’. Can anyone help?

Many thanks, in advance!

September 6, 2011 at 12:04 am #223581

Hanna Iris
New Member

Hi Sian,

to remove the “from” word, you can add the below code to your WP theme’s functions.php file:


function wpsc_remove_from_for_variations($from) {
return '';
}
add_filter('wpsc_product_variation_text','wpsc_remove_from_for_variations');

Usually if the prices don’t change (even though they have been set up, say shirt white $10, shirt red $20) this is most likely due to JS errors.

September 6, 2011 at 12:13 am #223586

sian
New Member

Hanna, Thank you so much. I have spent days trying to figure it out! You’re a star!

September 6, 2011 at 12:16 am #223588

Hanna Iris
New Member

No problem :) The code has indeed been posted to the forums earlier this year, but since the new forum upgrade the search didn’t come up with the result. But hopefully now that it’s been posted again, others will see it too :)

September 7, 2011 at 4:13 am #223773

peterthimaging
New Member

oh good, just what i was looking for infact :)

BUT, i have some products with variations but price is the same, but some with price variations….is there a way to do an IF statement for this???

September 7, 2011 at 4:23 am #223776

Hanna Iris
New Member

Regardless if the prices change or not, you need to set the price to the variation. So if you have variations that are all the same price, the price is still being “updated” on the page but as it’s the same price it shows the same value. Hope this was what you were asking.

September 7, 2011 at 4:17 pm #223916

peterthimaging
New Member

hm, i think i mean that if i have no prices set on the variations, or they are the same price, then to hide the “from”, but if i other products that actually do show variation prices then display the ‘from’.

so to not actually delete the ‘from’ completely, just hide it if there is no Price variation. :)

September 8, 2011 at 7:30 am #223988

leewillis77
Resident Expert

You might like to track this bug, which is an enhancement request to do exactly what you’re suggesting:

http://code.google.com/p/wp-e-commerce/issues/detail?id=687

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.