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

removal of commas

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-16-2004, 06:35 AM
 
RSimpson RSimpson is offline
 

Member
  
Join Date: Apr 2004
Posts: 23
 

Default 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
Reply With Quote
  #2  
Old 04-16-2004, 07:09 AM
 
grimscot grimscot is offline
 

Member
  
Join Date: Nov 2003
Location: Scotland
Posts: 22
 

Default

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}
Reply With Quote
  #3  
Old 05-09-2004, 09:34 PM
  thundernugs's Avatar 
thundernugs thundernugs is offline
 

Senior Member
  
Join Date: May 2003
Location: Bend, OR
Posts: 117
 

Default

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!
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:34 AM.

   

 
X-Cart forums © 2001-2020