Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please help me with this line of code...


bigbob2

Recommended Posts

On the product_info.php page, I currently have the following lines to show the price:

 

 

<font size="4"><?php if($product_info['products_price'] > 0){ echo $products_price; }else{ echo 'Call us for a current price';} ?><br>

</font><font size="1" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" color="black">Price in NZ$ and excludes GST</font><font size="1" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" color="#a1a4d0"><br>

<br>

 

 

This works well, but I would like to have a second price show below this line which includes our local sales tax (GST). Can someone please write a similar block of code for me which works as above, but shows the price after being multiplied by the NZ zone tax rate.

 

As a second alteration, could you please make it so that if there is no price at all, the "Price in NZ$ and excludes GST" line does not show up at all.

 

 

Thank you kindly in advance.

Kev.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...