X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   product options - price modifiers - display (https://forum.x-cart.com/showthread.php?t=60048)

upupcreative 07-03-2011 01:43 PM

product options - price modifiers - display
 
i've scanned the forums but can't seem to find the answer (and in fact it appears that in earlier versions of xcart this was not an issue) but i have a quick question about the way the price modifier is displayed. i'm actually okay with the fact that it shows the price modification in parens, but i'm wondering why the minus sign shows up when the modifier is - but the plus sign doesn't show up when the modifier is +

for example, i have defined the following options:

cotton
bamboo=+25%
recycled=-20%

and when it displays on the customer end it shows:

cotton
bamboo (25.00%)
recycled (-20.00%)

i'd like it to display the + on the bamboo option (and if i could drop those two decimal places, that'd make me happy, too).

should i be working in /common_files/modules/Product_Options/customer_options.tpl and if so, what value do i need (i'm guessing for display_sign)??

thanks,
julie

qualiteam 07-13-2011 02:35 AM

Re: product options - price modifiers - display
 
Yes, you should edit the "skin/common_files/modules/Product_Options/customer_options.tpl" template.

Find and replace this code:
Code:

{if $o.modifier_type ne '%'}
    {currency value=$o.price_modifier display_sign=1 plain_text_message=1}
{else}
    {$o.price_modifier}%
{/if}

with this:
Code:

{if $o.modifier_type ne '%'}
    {currency value=$o.price_modifier display_sign=1 plain_text_message=1}
{else}
    {if $o.price_modifier lt 0}
        {$o.price_modifier}%
    {else}
        +{$o.price_modifier}%
    {/if}
{/if}


stalling 12-18-2012 07:39 AM

Re: product options - price modifiers - display
 
How can I do this in 4.5
I am working on a new site.


All times are GMT -8. The time now is 01:17 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.