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

Disable the % saved feature

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-11-2007, 04:22 AM
 
GLS GLS is offline
 

Member
  
Join Date: May 2007
Posts: 27
 

Default Disable the % saved feature

Is there any way to disable the "% saved off MSRP" (text & graphic) besides clearing all of the MSRP's?
__________________
Great Lake Solar
xcart gold version 4.1.6
Reply With Quote
  #2  
Old 07-11-2007, 04:40 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Disable the % saved feature

How about commenting out the code in products.tpl?

FIND:
Code:
<table width="100%" cellspacing="0" cellpadding="0"> <tr> <td><span>{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}</span></td> {if $product.taxed_price gt 0 and $product.list_price gt 0} <td align="right" valign="top" width="60" id="save_percent_box"{if $product.taxed_price >= $product.list_price} style="display: none;"{/if}> <table width="60" cellspacing="1" cellpadding="2"> <tr> <td class="SaveMoneyLabel"> <br /> {math equation="100-(price/lprice)*100" price=$product.taxed_price lprice=$product.list_price format="%3.0f" assign=discount} &nbsp;<span id="save_percent">{ $discount }</span>% </td> </tr> </table>

comment it out
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 07-11-2007, 04:50 AM
 
GLS GLS is offline
 

Member
  
Join Date: May 2007
Posts: 27
 

Default Re: Disable the % saved feature

Thanks - I'll do that. I was just hoping there was an option in the admin that I missed.
__________________
Great Lake Solar
xcart gold version 4.1.6
Reply With Quote
  #4  
Old 07-14-2007, 06:49 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Disable the % saved feature

Quote:
Originally Posted by carpeperdiem
How about commenting out the code in products.tpl?


Thats not the only placed it is called... also in product.tpl (and maybe eleswhere).

Try going to admin - general settings - module options and look at the bottom of the list. Uncheck next to "The dynamic updating of the Save Money label depending on the selected product options is enabled:" I think that is it.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #5  
Old 07-19-2007, 10:42 AM
 
GLS GLS is offline
 

Member
  
Join Date: May 2007
Posts: 27
 

Default Re: Disable the % saved feature

Thanks for the try - but that didn't do it.
__________________
Great Lake Solar
xcart gold version 4.1.6
Reply With Quote
  #6  
Old 07-19-2007, 02:00 PM
 
nevets1219 nevets1219 is offline
 

eXpert
  
Join Date: Jun 2006
Posts: 351
 

Default Re: Disable the % saved feature

There's 2 places, one's the product list (depending on which setup you use it could be one of 2 or more files but you may want to change all the files in case you switch looks later on) and then there is the product details file. The option mentioned is to prevent it from updating the percent each time which is somewhat useful for variants. Open up the console and see which file is being used and you should find the TPL (they should all start with product*) == OR == you can search through your entire directory for "discount", "save_percent", and "$lng.lbl_save_price". Whichever seems to be more convenient.
__________________
4.1.8
Reply With Quote
  #7  
Old 07-28-2007, 03:00 AM
 
GLS2 GLS2 is offline
 

Member
  
Join Date: Jul 2007
Posts: 20
 

Default Re: Disable the % saved feature

Thanks!
__________________
Great Lake Solar
www.greatlakesolar.com
version 4.1.6
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 11:13 AM.

   

 
X-Cart forums © 2001-2020