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

Remove the Save % sign?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-20-2009, 02:07 PM
 
rageon75 rageon75 is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 108
 

Default Remove the Save % sign?

How do I remove the Save % sign in X-Cart Gold 4.2?
__________________
X-Cart Gold 4.2 - 4.3 - 4.4.5 - 4.6 - 4.7
Reply With Quote
  #2  
Old 02-20-2009, 02:45 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Remove the Save % sign?

Moving to the 4.2 template forum
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-23-2009, 12:14 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Remove the Save % sign?

there are many ways to do it.
in your skin1/customer/main/product.tpl
find the lines
Code:
{if $product.taxed_price gt 0 && $product.list_price gt 0} <div class="save" id="save_percent_box"{if $product.appearance.market_price_discount} style="display: none;"{/if}> <span id="save_percent">{$product.appearance.market_price_discount}</span>% </div> {/if}
and remove it or change like this:
Code:
{* {if $product.taxed_price gt 0 && $product.list_price gt 0} <div class="save" id="save_percent_box"{if $product.appearance.market_price_discount} style="display: none;"{/if}> <span id="save_percent">{$product.appearance.market_price_discount}</span>% </div> {/if}*}
There is a bug in original template that caused showing this sign on product's description page only for products that has no discount

so you may change it to
Code:
{if $product.taxed_price gt 0 && $product.list_price gt 0} <div class="save" id="save_percent_box"{if $product.appearance.market_price_discount eq 0} style="display: none;"{/if}> <span id="save_percent">{$product.appearance.market_price_discount}</span>% </div> {/if}
to function properly
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #4  
Old 02-23-2009, 09:48 AM
 
rageon75 rageon75 is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 108
 

Default Re: Remove the Save % sign?

Thank you Victor. That worked perfectly.
__________________
X-Cart Gold 4.2 - 4.3 - 4.4.5 - 4.6 - 4.7
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:58 AM.

   

 
X-Cart forums © 2001-2020