Forums / All Other Contributions/Addons / Tabbed Product Pro and Customers Also Purchased issue

Tabbed Product Pro and Customers Also Purchased issue

Views: 628

Results 1 to 2 of 2
14 Dec 2011, 12:15 PM
#1
vinnyna avatar

vinnyna

New Zenner

Join Date:
Nov 2011
Posts:
30
Plugin Contributions:
0

Tabbed Product Pro and Customers Also Purchased issue

Hi,
I installed Tabbed Product Pro and I noticed I have an issue with the information displayed in the Customers Also Purchased tab.

The product price displayed in the Customer Also Purchased tab is the same price the main product.

e.g
Product A - price £10
Product B - price £15

Say we are viewing Product A details:
which shows the price is £10

Viewing Customer Also Purchased tab
Shows Product B
Which show the price £10 (The price is incorrect it should be £15)

Can alone help with this?

Thanks

14 Dec 2011, 2:15 PM
#2
vinnyna avatar

vinnyna

New Zenner

Join Date:
Nov 2011
Posts:
30
Plugin Contributions:
0

Re: Tabbed Product Pro and Customers Also Purchased issue

Found the answer

edit file also_purchased_products.php

in folder includes/modules/electronics_black/

The I added the following after

while (!$also_purchased_products->EOF) {
  $also_purchased_products->fields['products_name'] = zen_get_products_name($also_purchased_products->fields['products_id']);

as shown

// show only when 1 or more and equal to or greater than minimum set in admin
if ($num_products_ordered >= MIN_DISPLAY_ALSO_PURCHASED && $num_products_ordered > 0) {
if ($num_products_ordered < SHOW_PRODUCT_INFO_COLUMNS_ALSO_PURCHASED_PRODUCTS) {
$col_width = floor(100/$num_products_ordered);
} else {
$col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_ALSO_PURCHASED_PRODUCTS);
}

while (!$also_purchased_products->EOF) {
  $also_purchased_products->fields['products_name'] = zen_get_products_name($also_purchased_products->fields['products_id']);

// To correct price error here
$products_price = zen_get_products_display_price($also_purchased_products->fields['products_id']);
// To correct price error here

This did the trick.

I am not sure why this was correct originally but we have a fix now.