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

Edit Discount Percentage

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-29-2008, 11:53 PM
 
herniarelievers herniarelievers is offline
 

Member
  
Join Date: Sep 2007
Posts: 27
 

Default Edit Discount Percentage

Can someone tell me where to edit the font color and size of the discount percentage displayed next to the "Save" text within the featured products. I have searched but can't seem to find it. Thanks.
__________________
4.4.1
Reply With Quote
  #2  
Old 09-01-2008, 04:56 AM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default Re: Edit Discount Percentage

featured product use the skin1/customer/main/product_t.tpl file to display the products.
so try there ....
Reply With Quote
  #3  
Old 09-02-2008, 07:14 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Edit Discount Percentage

Quote:
Originally Posted by herniarelievers
Can someone tell me where to edit the font color and size of the discount percentage displayed next to the "Save" text within the featured products. I have searched but can't seem to find it. Thanks.

In the file "skin1/customer/main/products.tpl", lines:

PHP Code:
<font class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].taxed_price}</font><font class="MarketPrice">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price}</font>{if $discount gt 0}{if $config.General.alter_currency_symbol ne ""},{/if} {$lng.lbl_save_price} {$discount}%{/if} 

or in the file "skin1/customer/main/products_t.tpl" next lines (if option "Display products list in multiple columns (1-3) (leave empty to use standard format):" not NULL):


PHP Code:
<font class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].taxed_price}</font><br /><font class="MarketPrice">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price}</font>{if $discount gt 0}{if $config.General.alter_currency_symbol ne ""},{/if} {$lng.lbl_save_price} {$discount}%{/if} 

Discounts message is not determined by class, you have to do it himself,
for exmpl. add some lines in tenplate file: ....<span class="discount_pr">{$lng.lbl_save_price} {$discount}%</span>...., and determine description for this class in to css file.
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 03:06 PM.

   

 
X-Cart forums © 2001-2020