Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving Also Purchased


toyicebear

Recommended Posts

Posted

Hi there....

 

 

Before digging in and doing it the hard way, is there anyone out there who already have moved the also purchased module from the product info page to the shopping cart page and can tell how to proceed?

 

 

Cheers... :thumbsup:

  • 1 year later...
Posted

Going through some of my old treads, and posting possible solutions for others to enjoy :D

 

XSELL IN SHOPPING CART

Posted
Going through some of my old treads, and posting possible solutions for others to enjoy :D

 

XSELL IN SHOPPING CART

 

well, you can do AP in the cart but you have to realize that the original AP module expects a product ID in the url. It uses that to determine the also purchased info.

 

In the cart you do not have that, instead you have many products in the cart. To do an AP on those you would have to alter the query to select AP info based in all products in the cart with an "where products_id in ('234','334')" statement, assuming product 234 and 334 are in the cart.

 

But be aware, the original AP module is already process intensive for 1 product, expanding it for many may not be so good.

 

I have such a module but I use it based on AP preselection as that greatly reduces query time and I would not consider using it based on the original join query.

Treasurer MFC

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...