Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please help with TAX problem


peterabz

Recommended Posts

Posted

Hi,

 

I currently have a problem with the prices displayed in my What's New Here page. It does not show the price inclusive of tax but when I click into the product to show more, it shows the price inclusive of tax. Every other product page/listing shows the price Inclusive of TAX, which is what I want.

 

The problem is only on the What's New Here? section on the homepage. All prices EVERYWHERE ELSE are correct.

 

 

As suggested, I went to :

 

includes/modules/new_product.php file.

 

and added whats in bold

<tr><td width="167" style="padding-left:12px;" class="tx6"> <?=$currencies->display_price($new_products['products_price'],tep_get_tax_rate($new_products['products_tax_class_id']'')?><br style="line-height:1px;"><br style="line-height:10px;"></td></tr>

 

it now has error:

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/officeac/public_html/shop/includes/modules/new_products.php on line 54

 

on the homepage screen where it has WHAT'S NEW HERE?

 

 

Please visit here to see problem:

PAComputers.com.au Hompage

Posted
Hi,

 

I currently have a problem with the prices displayed in my What's New Here page. It does not show the price inclusive of tax but when I click into the product to show more, it shows the price inclusive of tax. Every other product page/listing shows the price Inclusive of TAX, which is what I want.

 

The problem is only on the What's New Here? section on the homepage. All prices EVERYWHERE ELSE are correct.

As suggested, I went to :

 

includes/modules/new_product.php file.

 

and added whats in bold

it now has error:

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/officeac/public_html/shop/includes/modules/new_products.php on line 54

 

on the homepage screen where it has WHAT'S NEW HERE?

Please visit here to see problem:

PAComputers.com.au Hompage

 

You've got the right location but are a little off. You are querying the database in a display.

 

Try this. It's probably the easiest way.

 

Go to a page that displays the price correctly. Find the lines that combine the tax and price and copy and paste them right into that spot.

Just between us, remember there are only 10 kinds of people in the world; those who understand binary and those who don't!!

 

Remember, learning is a "do-it-yourself" experience; although, not necessarily a "do-it-BY-yourself" experience.

 

The quickest way to learn is to forget to BACKUP!

Posted
You've got the right location but are a little off. You are querying the database in a display.

 

Try this. It's probably the easiest way.

 

Go to a page that displays the price correctly. Find the lines that combine the tax and price and copy and paste them right into that spot.

 

THANK YOU VERY MUCH FOR THE SUGGESTION.

 

The code was a little off. Thank you.

 

This is how it should be.... corrections in bold.

 

<?=$currencies->display_price($new_products

 

['products_price'], tep_get_tax_rate($new_products['products_tax_class_id']))?>

Archived

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

×
×
  • Create New...