PDA

View Full Version : Recently Viewed Products(sales optimized)



michael_s
01-22-2009, 12:51 PM
BACKUP FIRST ! BACKUP FIRST !

catalog/includes/recently_viewed.php
catalog/includes/modules/recently_viewed.php



Two ways to display to correct price with tax

replace:

$info_box_text .= $currencies->display_price ($products_data[$products_id]['price'], tep_get_tax_rate ($products_data[$products_id]['products_tax_class_id']) );


with

$info_box_text .= $currencies->display_price ($products_data[$products_id]['price'], tep_get_tax_rate ($products_data[$products_id]['tax_class_id']) );



OR OR OR OR OR OR

replace

$products_data[$products_id] = array ('id' => $products_id,
'name' => $products['products_name'],
'image' => $products['products_image'],
'price' => $products['products_price'],
'tax_class_id' => $products['products_tax_class_id'] ///here is the mistake tax_class_id and in the 2 files it appends products_data[$products_id]['products_tax_class_id']
);


with

$products_data[$products_id] = array ('id' => $products_id,
'name' => $products['products_name'],
'image' => $products['products_image'],
'price' => $products['products_price'],
'products_tax_class_id' => $products['products_tax_class_id']
);


Hope this helps.

More... (http://addons.oscommerce.com/info/5520)