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)
-   -   Remove the Save % sign? (https://forum.x-cart.com/showthread.php?t=45728)

rageon75 02-20-2009 02:07 PM

Remove the Save % sign?
 
How do I remove the Save % sign in X-Cart Gold 4.2?

balinor 02-20-2009 02:45 PM

Re: Remove the Save % sign?
 
Moving to the 4.2 template forum

Victor D 02-23-2009 12:14 AM

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

rageon75 02-23-2009 09:48 AM

Re: Remove the Save % sign?
 
Thank you Victor. That worked perfectly.


All times are GMT -8. The time now is 02:38 AM.

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