I have two options of weight of 1 kg and 2 kg, and options values +$10, +$20.On product page i see:
1 kg(+ $10)
2 kg(+ $20)
How hide (+ $10), (+ $20) and leave only 1 kg and 2 kg?
Natalia
6 Feb 2008 1:49 PM
Hello,
Not to show the option price, please go to /includes/items_properties.php file and find the following line:
$properties_values .= " (+ " . $currency_left . number_format($shown_price, 2) . $currency_right . ")";
comment it , putting // before the line so that it looks like
//$properties_values .= " (+ " . $currency_left . number_format($shown_price, 2) . $currency_right . ")";
Save the file, go the product details page, press F5 to see the changes. When you comment the line the option price will not be shown but it will be added to the basket page when the client chooses the option and adds the product to the basket.
Best regards,
ViArt Support Team
Manyo
6 Feb 2008 9:06 PM
Hello,
Great question and nice solution.
It's elegant and very useful.
Thx for From & Natalia!
Manyo
Ned
22 May 2008 10:48 AM
Does anyone know where this is now in 3.4.7? Im trying to loose the "(+"
From (Guest)
22 May 2008 8:21 PM
Go to /includes/items_properties.php, find the following lines:
Many thanks for that. Ive also been informed that there is also an Administration>Products Settings field for left and right characters in the display (in 3.4.7).
8thSinCoffee
1 Jun 2010 12:49 AM
Well, that did it on the product listings, but not on the http://yourhomesite/basket.php page or http://yourhomesite/order_info.php or http://yourhomesite/order_confirmation.php
How do I get rid of these from showing up everywhere?
Ned
1 Jun 2010 12:31 PM
Are you now on 3.6?
8thSinCoffee
1 Jun 2010 5:51 PM
No. One of the problems I have with upgrading is there is no way to get cumulative maintenance easily. I've asked a couple of times, and the only way to get fixes for a release is to download them one by one.
If you're lucky to get them rolled up into a 3.6.xx maintenance refresh, great. But as time goes on, more and more fixes come out. That's the good part - Viart fixes problems. The downside here is there is no cumulative maintenance download, to get 'all fixes for release x.x.x' with a single click or download of a one .zip file. I hope that's changing with the 3.7 release.
Ned
2 Jun 2010 6:18 AM
The reason I asked is because looking at the code for 3.6 the options for the positive prices right and left (which looks like addressing your query) are coded from the settings strings and are set by "Administration>Products Settings".
I agree cumulative maintenance would be good but also I want to see a user facility for altered php much in the same way that templates can be modified. At present if you do alter php (as suggested above) then it could get overwritten on upgrade.