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)
-   -   Align price to the right (https://forum.x-cart.com/showthread.php?t=1843)

Raju Naik 03-11-2003 08:19 PM

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 :cry: .

shan 03-12-2003 02:12 AM

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

Raju Naik 03-12-2003 02:24 AM

Thanks for that. I'll try that soon.

Regards,

Raj


All times are GMT -8. The time now is 06:52 AM.

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