Forums / General Questions / Customers who bought this product also purchased...

Customers who bought this product also purchased...

Views: 938

Results 1 to 5 of 5
22 Jan 2014, 5:51 PM
#1
1speedbump avatar

1speedbump

New Zenner

Join Date:
Jun 2012
Location:
Riverview, Fl.
Posts:
60
Plugin Contributions:
0

Customers who bought this product also purchased...

I noticed since my cart in starting to put in the "Customers who bought this product also purchased" items, the pricing on each item is the same as the price of the item the customer selected, not the price of the actual part. Can this be made to show each bought with's price? And if not, can the price line of code be taken out so no price is shown? I'm using version 1.5.1.

Thanks...

22 Jan 2014, 9:04 PM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Customers who bought this product also purchased...

Without an example it's difficult to understand the pricing issue.

Yes, the price line can be hidden.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

23 Jan 2014, 1:56 PM
#3
1speedbump avatar

1speedbump

New Zenner

Join Date:
Jun 2012
Location:
Riverview, Fl.
Posts:
60
Plugin Contributions:
0

Re: Customers who bought this product also purchased...

Here's a screenshot of what I'm talking about. There are other items below the first one that have the same price as the tank, but I couldn't squeeze them in.

23 Jan 2014, 3:31 PM
#4
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Customers who bought this product also purchased...

Here's the problem in your template includes/modules/also_purchased_products.php...

<div class="productbox-bg-left"><div class="productbox-bg-right"> <div class="columnar-product-info"><div class="columnar-product-img"><a href="YOUR WEBSITE HERE"><img src="images/ProSeries.jpg" alt="BF-2005 - 1/2 hp 20 gallon per minute submersible pump 115Volt" title=" BF-2005 - 1/2 hp 20 gallon per minute submersible pump 115Volt " width="100" height="136"></a></div><div class="product-box-name"><a href="http://shop.pumpsandtanks.com/index.php?main_page=product_info&cPath=&products_id=203">BF-2005 - 1/2 hp 20 gallon per minute su...</a></div>

**<span class="central-boxes-price">Price: </span>$136.15 **

<br><div class="detail-button"><a class="detail-link" href="YOUR WEBSITE HERE">Details</a></div>

<div class="clearBoth"></div> </div> </div></div> <div class="productbox-bottom-left"><div class="productbox-bottom-right"></div></div> </div>

Someone has added the price code incorrectly, if you switch back to the classic template you should see this working correctly.

Solutions...

  1. Replace the incorrect pricing code with the correct one.
  • the current code finds the secondary product but does not return the secondary product price from the SQL query
  1. Replace also_purchased_products.php with the template default.
  • formatting may be lost
  1. Hide the line of code above.
  • although this solves the problem, the correct price may help upsells

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

23 Jan 2014, 5:03 PM
#5
1speedbump avatar

1speedbump

New Zenner

Join Date:
Jun 2012
Location:
Riverview, Fl.
Posts:
60
Plugin Contributions:
0

Re: Customers who bought this product also purchased...

Thanks Twitchtoo; since this is all greek to me, I'll forward it to my Guru in Portugal who speaks PHP.