Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / "Customers who bought this product also purchased" Problem

"Customers who bought this product also purchased" Problem

Started by stlnyc on 9 Jul 2011, 4:20 PM · Views: 2,683

Results 1 to 6 of 6
9 Jul 2011, 4:20 PM
#1
stlnyc avatar

stlnyc

Zen Follower

Join Date:
Oct 2008
Posts:
179
Plugin Contributions:
0

Post #1 by stlnyc

http://www.grapediscounts.com/conundrum-white-table-wine-2008-p-2424.html

Thats a good link for explaining whats wrong. On some products where the ""Customers who bought this product also purchased" comes up, the price on the other products people have purchased seems to match the price of that specific product page. And then if you click on one of the other suggested products that people have purchased, the correct price then shows up.

Any ideas how to get the correct prices back in the "Customers who bought this product also purchased"? Thanks

https://www.grapediscounts.com
Zen Version 1.3.9f, Mods: Click-Show-Hide Menu, IH3, Editable SB, Recently Viewed SB, Froogle, EZ-Pop

12 Jul 2011, 5:12 AM
#2
zgirl avatar

zgirl

New Zenner

Join Date:
Jul 2011
Posts:
1
Plugin Contributions:
0

Post #2 by zgirl

:clap:

Hi stlnyc!

I must be getting the hang of it; long time reader of the forum, first time poster.

I just had the same problem and overcame it by pasting a line that I borrowed and modified from featured items module.

in also_purchased_products.php immediately below the section

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

I pasted

  $products_price = zen_get_products_display_price($also_purchased_products->fields['products_id']);

It worked for me, hope it works for you too!

Zgirl

12 Jul 2011, 1:44 PM
#3
stlnyc avatar

stlnyc

Zen Follower

Join Date:
Oct 2008
Posts:
179
Plugin Contributions:
0

Post #3 by stlnyc

wow, thanks so much! Great first post!

https://www.grapediscounts.com
Zen Version 1.3.9f, Mods: Click-Show-Hide Menu, IH3, Editable SB, Recently Viewed SB, Froogle, EZ-Pop

3 Oct 2011, 7:52 PM
#4
gazag avatar

gazag

Zen Follower

Join Date:
Jun 2011
Posts:
195
Plugin Contributions:
0

Post #4 by gazag

Where did you get this mod from? Am looking for something similar!

3 Oct 2011, 8:53 PM
#5
gazag avatar

gazag

Zen Follower

Join Date:
Jun 2011
Posts:
195
Plugin Contributions:
0

Post #5 by gazag

gazag:

Where did you get this mod from? Am looking for something similar!
Don't worry about this - i found my answer here

18 Nov 2011, 11:19 PM
#6
crafts2gifts avatar

crafts2gifts

New Zenner

Join Date:
Apr 2009
Posts:
7
Plugin Contributions:
0

Post #6 by crafts2gifts

Thanks so much for this thread posting. It save me a lot of anguish when I realized that my site was displaying incorrect prices in the "Also Purchased" section.

I will note that the file is generally located at
"{Root}/Includes/Modules/also_purchased_products.php"

Or if you are using a custom template, the template file must be replaced also.

Mine was at
"{Root}/Modules/{YourTemplate}/also_purchased_products.php"

Thanks again:clap: