Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

7921 Display 2 prices (w/VAT and w/out VAT) at same time


ce7

Recommended Posts

Hi,

 

I am trying to put addon #7921 Display 2 prices (w/VAT and w/out VAT) at the same time

on BS version, it works ok with 2.3.4 version, show the correct price with and without VAT,

 

In currencies.php replace:

return $this->format(
$this->calculate_price($products_price,
$products_tax, $quantity))



with:

return $this->format(
$products_price * $quantity)
. '  (without VAT)<br>'
. $this->format(
tep_add_tax($products_price,
$products_tax) * $quantity)
. '  (with VAT)<br>'

 

 

however on BS version, it show both price the same price that has not VAT,

if just print out $product_tax,

instead of 10%, it actually become x10, so the price like $10.00 (without VAT) , it become $100.00 (with VAT).

 

Not very good skill at PHP programming, so not sure where to check the problem.

Can any one please help?

 

Thanks!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...