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

Align price to the right

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-11-2003, 08:19 PM
 
Raju Naik Raju Naik is offline
 

Newbie
  
Join Date: Feb 2003
Location: London UK
Posts: 5
 

Default Align price to the right

I'd like to align the prices in search and product listing to be aligned to the right. Is that possible? I've tried to edit the skin1.css but the ALIGN option does not seem to work .
Reply With Quote
  #2  
Old 03-12-2003, 02:12 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

You could look in product.tpl and change

Code:
<tr><td class=ProductPriceConverting>{$lng.lbl_price}:</td> <td> {if $product.price ne 0} <font class=ProductDetailsTitle>{include file="currency.tpl" value=$product.price}</font><font class=MarketPrice> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.price}</font>{if $config.General.use_vat eq "Y"}, {$lng.lbl_including_vat} {$product.vat}%{/if} {else} <input type=text size=7 name=price> {/if} </td> </tr>

for this

Code:
<tr><td class=ProductPriceConverting>{$lng.lbl_price}:</td> <td align="right"> {if $product.price ne 0} <font class=ProductDetailsTitle>{include file="currency.tpl" value=$product.price}</font><font class=MarketPrice> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.price}</font>{if $config.General.use_vat eq "Y"}, {$lng.lbl_including_vat} {$product.vat}%{/if} {else} <input type=text size=7 name=price> {/if} </td> </tr>

The price is added to the page by this bit of code or similar ...

Code:
{include file="currency.tpl" value=$product.price}

find that in other pages and adjust whats needed in the tables and cells around it.

Switch on the debug window too so you can see what files you need to be looking at and back up before making changes
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 03-12-2003, 02:24 AM
 
Raju Naik Raju Naik is offline
 

Newbie
  
Join Date: Feb 2003
Location: London UK
Posts: 5
 

Default

Thanks for that. I'll try that soon.

Regards,

Raj
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:55 AM.

   

 
X-Cart forums © 2001-2020