Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
From (Guest)
From (Guest)
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
Natalia
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
Manyo
Hello,
 
Great question and nice solution.
It's elegant and very useful.
 
Thx for From & Natalia!
 
Manyo
 
Ned
Ned
Does anyone know where this is now in 3.4.7? Im trying to loose the "(+"
 
From (Guest)
From (Guest)
Go to /includes/items_properties.php, find the following lines:
 
1.(line N539)
$properties_text .= $option_positive_price_right . currency_format($shown_price) . $option_positive_price_left;
 
2.(line N541)
$properties_text .= $option_negative_price_right . currency_format(abs($shown_price)) . $option_negative_price_left;
 
3.(line N663, N739)
$property_control .= $option_positive_price_right . currency_format($shown_price) . $option_positive_price_left;
 
4.(line N665, N741)
$property_control .= $option_negative_price_right . currency_format(abs($shown_price)) . $option_negative_price_left;
 
comment it, putting // before the line.
 
Ned
Ned
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
8thSinCoffee
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
Ned
Are you now on 3.6?
 
8thSinCoffee
8thSinCoffee
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
Ned
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.
 
So we wait for 3.7........... I don't know