Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Also purchased Module Help


garyidweb

Recommended Posts

Hi

 

I want to be able to omit products from the also purchased module if they do not have a Product code.

 

Can any one assist please,

 

This is the code that is needed to be changed i believe

 

$orders_query = tep_db_query("select p.products_id, p.products_image, pd.products_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_PRODUCTS . " op, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where o.orders_id = op.orders_id and op.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and p.products_id <> '" . $HTTP_GET_VARS['products_id'] . "' group by p.products_id order by o.date_purchased desc limit " . MAX_DISPLAY_ALSO_PURCHASED);

 

Thanks in advance

Gary

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...