Product Option custom text

Hello all,

I know that variations have been recommended to use for some time and I am using it but in this case it is better for me to use product option.

I figured out how to disable modifiers ( {$show_modifiers = false} ) because for me don’t need to be shown how many percentages are added.

I want to adjust it so that after adding percentages it would show how much it is in money. Something like that if in option selected price not percentage.

I hope you understand what I mean and what I want. Looking forward to hearing any important information. Thank you.

Hi!

You will need to use something like this:

{if $vr.modifier_type == "P"}
    {$opt_price = $product.price * (($vr.modifier + 100)/100)}
    {include file="common/price.tpl" value=$opt_price}
{/if}
1 Like

Thank you. I modified little bit your code and now it suits me perfectly.

Only one flaw and I can’t find a way to change it yet.
When the option is changed, it calculates and displays value in option from the new updated price. I need the values to be non-updating.

Oops, I haven’t tested this one case :smiley:

In this case you can use the $product.base_price instead of $product.price

1 Like