 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!
|
 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.
|
 sian
New Member
|
Hanna, Thank you so much. I have spent days trying to figure it out! You’re a star!
|
 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
|
 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???
|
 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.
|
 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.
|
 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
|