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)
-   -   display ex vat and inc vat prices (https://forum.x-cart.com/showthread.php?t=66527)

Noodl3s 03-28-2013 07:04 AM

display ex vat and inc vat prices
 
Is it possible to display inc vat and excluding vat prices on the product pages?

I've had a look at http://forum.x-cart.com/showthread.php?t=21879 but this thread is several years old and the modifications to the customer/main/taxed_price.tpl file dont seem to work with 4.5

any help appreciated

welly 04-08-2013 05:39 AM

Re: display ex vat and inc vat prices
 
This is just a guess, but looking at the 4.5.4 store I'm building, the file /skin/<yourskindirectory or common_files>/customer/main/product_details.tpl has the following line for displaying the price including tax:

<span class="product-price-value">{currency value=$product.taxed_price tag_id="product_price"}</span>

Ignore the bold type.

According to webmaster mode the untaxed price is held in $product.price, so you could try adding the following line somewhere in the same file, product_details.tpl:

<span class="product-price-value">{currency value=$product.price tag_id="product_price"}</span>

There in another line directly under the first one which (I think) displays the price in an alternative currency, but I have no idea how you might need to manipulate that if you also want to show alternative currency prices with and without tax...

Worth a try. It's where I would start if I wanted to display both prices.

Welly

Noodl3s 04-08-2013 07:10 AM

Re: display ex vat and inc vat prices
 
Thanks for your help, between this and pauldodman's help in the other thread I got it working for future reference the change was made in the "theme"/customer/main/product_details.tpl file(on line 95)

change

{currency value=$product.taxed_price tag_id="product_price"}

to

<span class="product-price-value">{currency value=$product.price}</span><br>
{currency value=$product.taxed_price}


All times are GMT -8. The time now is 02:43 PM.

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