osCmax v2.5 User Manual
Results 1 to 3 of 3

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, ...

      
  1. #1
    New Member
    Join Date
    Dec 2004
    Posts
    14
    Rep Power
    0


    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);

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    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 - To contact, post on the forum or click here
    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!

  3. #3
    New Member
    Join Date
    Dec 2004
    Posts
    14
    Rep Power
    0


    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.

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •