osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Cross Sell product Prioritization

This is a discussion on Cross Sell product Prioritization within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; There appears to be an error in the file: catalog/includes/modules/xsell_products.php $xsell_query (line 14) is currently: $xsell_query = tep_db_query("select distinct p.products_id, ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 10-18-2005, 06:06 PM
New Member
 
Join Date: Dec 2004
Posts: 14
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 0
davem
Default Cross Sell product Prioritization

There appears to be an error in the file:

catalog/includes/modules/xsell_products.php

$xsell_query (line 14) is currently:

$xsell_query = tep_db_query("select distinct p.products_id, p.products_image, pd.products_name, m.manufacturers_name, p.products_tax_class_id, products_price from " . TABLE_PRODUCTS_XSELL . " xp, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m where xp.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and m.manufacturers_id = p.manufacturers_id and p.products_status = '1' order by xp.products_id asc limit " . MAX_DISPLAY_ALSO_PURCHASED);

this should be:

$xsell_query = tep_db_query("select distinct p.products_id, p.products_image, pd.products_name, m.manufacturers_name, p.products_tax_class_id, products_price from " . TABLE_PRODUCTS_XSELL . " xp, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m where xp.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and m.manufacturers_id = p.manufacturers_id and p.products_status = '1' order by xp.sort_order asc limit " . MAX_DISPLAY_ALSO_PURCHASED);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 10-20-2005, 09:58 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,792
Thanks: 5
Thanked 104 Times in 90 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default RE: Cross Sell product Prioritization

Submit it to the bugtracker - explain the error/problems and post the fixed code there.
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 10-22-2005, 04:29 PM
New Member
 
Join Date: Dec 2004
Posts: 14
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 0
davem
Default RE: Cross Sell product Prioritization

Now submitted.

Also, please ignore above code as I had previously modified it to include the manufacturer's name. The code submitted to the bugtracker relates to the original downloaded in V2RC2.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Cross Sell interface... can you add a search function? taol osCMax v2 Customization/Mods 1 12-15-2005 12:28 PM
Cross Sell Problem warrenthewindmill osCMax v1.7 Discussion 4 12-03-2003 08:00 AM
X-Cross shows 6 products, how about 9 peter osCommerce 2.2 Modification Help 0 11-21-2003 11:43 AM
Cross Sell not working Anonymous osCMax v1.7 Discussion 27 11-10-2003 11:29 AM


All times are GMT -8. The time now is 12:21 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax