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)
-   -   Disable the % saved feature (https://forum.x-cart.com/showthread.php?t=32471)

GLS 07-11-2007 04:22 AM

Disable the % saved feature
 
Is there any way to disable the "% saved off MSRP" (text & graphic) besides clearing all of the MSRP's?

carpeperdiem 07-11-2007 04:40 AM

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

GLS 07-11-2007 04:50 AM

Re: Disable the % saved feature
 
Thanks - I'll do that. I was just hoping there was an option in the admin that I missed.

JWait 07-14-2007 06:49 AM

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.

GLS 07-19-2007 10:42 AM

Re: Disable the % saved feature
 
Thanks for the try - but that didn't do it.

nevets1219 07-19-2007 02:00 PM

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.

GLS2 07-28-2007 03:00 AM

Re: Disable the % saved feature
 
Thanks!


All times are GMT -8. The time now is 11:08 AM.

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