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)
-   -   Showing product price in product.tpl (https://forum.x-cart.com/showthread.php?t=26550)

chamberinternet 11-12-2006 12:12 PM

Showing product price in product.tpl
 
Hello ...

I'm editing the file product.tpl to customise the way it shows the product price.

Currently the code is as follows:

<span id="product_price">
<strong>{include file="currency.tpl" value=$product.taxed_price}</strong>
</span>

Looks pretty straight forward as it just displays the product price in bold.

However if the product has a number of product options/variants the strong formatting is removed ..

Does anyone who to why this is happening?

I feel it's something to do with func.js calling the product_price id but i'm not sure on how to get around it.

Regards

Shafiq :sK

geckoday 11-12-2006 01:43 PM

Re: Showing product price in product.tpl
 
Move the span tags inside the strong tags to retain the formatting. check_options.js replaces everything between the span tags when the options selections change.


All times are GMT -8. The time now is 04:41 AM.

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