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)
-   -   removal of commas (https://forum.x-cart.com/showthread.php?t=7174)

RSimpson 04-16-2004 06:35 AM

removal of commas
 
Hi folks,

I'm in the middle of customising a cart for a client and having some difficulty in finding the code which is adding the comma in this text

Market price: бё 12.99
Our price: бё 9.99
, save 23%

I have the view set to display items in a grid. If anybody can point me in the right direction it would be greatly appreciated.


Cheers,
Robert

grimscot 04-16-2004 07:09 AM

If the text occurs in the product lists then the ", save" is in the skin1/customers/main/products.tpl file in the line (look for the , save)

Code:

<font class=ProductPrice>{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].price}</font><font class=MarketPrice>{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].price}</font>{if $products[product].list_price gt 0 and $products[product].price lt $products[product].list_price}, save {$discount}%{/if}{if $config.Taxes.use_vat eq "Y" and $products[product].vat gt "0"}, {$lng.lbl_including_vat} {$products[product].vat}%{/if}

thundernugs 05-09-2004 09:34 PM

i was having the same trouble with an out of place comma on my featured products section on the home page

i changed the ", save" to "save" in skin1/customers/main/products_t.tpl

so it now looks like this:

Code:

{if $products[product].list_price gt 0

and $products[product].price lt $products[product].list_price}save {$discount}%{/if}


worked for me! :D


All times are GMT -8. The time now is 05:30 PM.

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