Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

product options - price modifiers - display

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-03-2011, 01:43 PM
 
upupcreative upupcreative is offline
 

Advanced Member
  
Join Date: Aug 2010
Posts: 66
 

Default 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
__________________
Version 4.4.2
Reply With Quote
  #2  
Old 07-13-2011, 02:35 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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}
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 12-18-2012, 07:39 AM
 
stalling stalling is offline
 

Newbie
  
Join Date: May 2008
Posts: 4
 

Default Re: product options - price modifiers - display

How can I do this in 4.5
I am working on a new site.
__________________
X-Cart Gold 4.1.10
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:14 AM.

   

 
X-Cart forums © 2001-2020