peterabz Posted November 18, 2006 Posted November 18, 2006 Hi, I am new but I have come about to learning some basics of PHP. However, 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 GST, which is what I want. The problem is only in on the What's New Here? section. Please visit the following address to see the problem: PAC Computers Homepage Your help will be much appreciated. Thank You, Peter
mtechama Posted November 18, 2006 Posted November 18, 2006 Hi, I am new but I have come about to learning some basics of PHP. However, 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 GST, which is what I want. The problem is only in on the What's New Here? section. Please visit the following address to see the problem: PAC Computers Homepage Your help will be much appreciated. Thank You, Peter Go to your Admin>Configuration>My Store and go down and look for Display Prices with Tax set that to "True" Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP!
peterabz Posted November 18, 2006 Author Posted November 18, 2006 Hi, The Display tax with Prices is already set to true. Every product page shows the price with tax except for the What's New Here? Section on the homepage.
tapuahk Posted November 18, 2006 Posted November 18, 2006 Hi, I am new but I have come about to learning some basics of PHP. However, 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 GST, which is what I want. The problem is only in on the What's New Here? section. Please visit the following address to see the problem: PAC Computers Homepage Your help will be much appreciated. Thank You, Peter Your problem seems only to reside on the index.php version of output for those products.
tapuahk Posted November 18, 2006 Posted November 18, 2006 Hi, I am new but I have come about to learning some basics of PHP. However, 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 GST, which is what I want. The problem is only in on the What's New Here? section. Please visit the following address to see the problem: PAC Computers Homepage Your help will be much appreciated. Thank You, Peter Check you includes/modules/new_product.php file. it should be where the problem is. make sure the code looks like this $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id']
peterabz Posted November 19, 2006 Author Posted November 19, 2006 Check you includes/modules/new_product.php file. it should be where the problem is. make sure the code looks like this $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'] Hi and thanks, i entered the code as mentioned. it was missing tep_get_tax_rate($new_products['products_tax_class_id'] new_product.php code now looks like this. <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> ...but the homepage now comes up with the error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/officeac/public_html/shop/includes/modules/new_products.php on line 54 Regards, Peter
peterabz Posted November 19, 2006 Author Posted November 19, 2006 check it ut at PAComputers Homepage
neildonnelly Posted November 22, 2006 Posted November 22, 2006 check it ut at PAComputers Homepage Hi! I had the exact same problem and this solution fixed it. You're getting the parse error as you're missing a bracket. The full line of php should read: <?=$currencies->display_price($new_products['products_price'],tep_get_tax_rate($new_products['products_tax_class_id']))?> Note: you may have to make the same adjustment to specials php.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.