Cosmological/Sokonomi, I've applied this fix, but it is doing what Qphoria described as showing full price for all options except those with $0:Cosmological wrote:Hello SokonomiSokonomi wrote: Say I have a trophy that's available in different sizes and the price differs accordingly.
But those trophies also have an option to be gold, silver or bronze, without affecting the price.
It would look nicer if that color option had no mentioning of price since it doesn't affect it.
I wanted a similar functionality and so added the following hack to Qphoria's mod. I can't guarantee it'll work for everyone, although it is quite simple and works on my install.
I foundand added the following immediately after:Code: Select all
<![CDATA[
Then, at the end, immediately precedingCode: Select all
if ($option_value['price'] !='0.0000') {
added:Code: Select all
]]>
Hope this helps, best of luck and thanks Qphoria for making the mod available.Code: Select all
} else {}
Dan
What I'd like to do is show the full price, even when the option is $0 but all other options in that option group have values. However, I'd like to hide the price for an entire option group that ALL have $0 options, like suggests:Qphoria wrote:So as it is now..
Tshirt: $100.00
- Color Red: $100.00 <-- implying a $0 increase
- Color Blue: $110.00 <-- Implying a $10 increase
- Color Green: $115.00 <-- implying a $15 increase
You want to change it to:
Tshirt: $100.00
- Color Red: ____ <-- implying a $0 increase
- Color Blue: $110.00 <-- Implying a $10 increase
- Color Green: $115.00 <-- implying a $15 increase
Because showing $100.00 by the red would make people thing it costs $200 ?
But you don't seem phased that people might think the Blue costs $210 or the green costs $215?
The way it is now means the same logic applies to all prices.
If NONE of the options in a group change price, no prices should be shown for that group. If ANY option in a group has a price modifier, ALL options in that group should show the full price.Sokonomi wrote:Is there a way to make it hide the price if the option does not add or subtract anything?
Say im selling medals, and want people to choose a ribbon color at no extra charge,
can I make it so it wont show the prices next to the colors?
Because it might confuse customers into thinking the ribbon costs extra.
if ($option_price == 0) { hide option_price }
Kinda like that, roughly.
Any help appreciated...