Results 1 to 10 of 476

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Posts
    204
    Plugin Contributions
    0

    Default Re: Multi Cross Sell mod [Support thread]

    Quote Originally Posted by gilby View Post
    Quick fix to use the first XSELL database and hard code it
    Cannot try it myself but it looks right
    Code:
    $xsell_query = $db->Execute("select distinct p.products_id, p.products_image, pd.products_name
     from " . TABLE_PRODUCTS_XSELL1 . " xp, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
     where xp.products_id = '" . $_GET['products_id'] . "'
      and xp.xsell_id = p.products_id
      and p.products_id = pd.products_id
      and pd.language_id = '" . $_SESSION['languages_id'] . "'
      and p.products_status = 1
     order by xp.sort_order asc limit " . MAX_DISPLAY_XSELL1);
    Did not go as expected, I can see the TABLE_PRODUCTS_XSELL1 in PhpmyAdmin, but it still throws this error:
    Code:
    1146 Table 'lemycouk_zc1.TABLE_PRODUCTS_XSELL1' doesn't exist
    in:
    [select distinct p.products_id, p.products_image, pd.products_name from TABLE_PRODUCTS_XSELL1 xp, zen_products p, zen_products_description pd where xp.products_id = '42' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = 1 order by xp.sort_order asc limit 6]
    Do you have any other suggestions i should try?
    Thanks for taking the time.

  2. #2
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Multi Cross Sell mod [Support thread]

    Quote Originally Posted by andreitero View Post
    Did not go as expected, I can see the TABLE_PRODUCTS_XSELL1 in PhpmyAdmin, but it still throws this error:
    Code:
    1146 Table 'lemycouk_zc1.TABLE_PRODUCTS_XSELL1' doesn't exist
    in:
    [select distinct p.products_id, p.products_image, pd.products_name from TABLE_PRODUCTS_XSELL1 xp, zen_products p, zen_products_description pd where xp.products_id = '42' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = 1 order by xp.sort_order asc limit 6]
    Do you have any other suggestions i should try?
    Thanks for taking the time.
    Ahh.. Try this one:
    Code:
    $xsell_query = $db->Execute("select distinct p.products_id, p.products_image, pd.products_name
     from " . TABLE_PRODUCTS_MXSELL1 . " xp, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
     where xp.products_id = '" . $_GET['products_id'] . "'
      and xp.xsell_id = p.products_id
      and p.products_id = pd.products_id
      and pd.language_id = '" . $_SESSION['languages_id'] . "'
      and p.products_status = 1
     order by xp.sort_order asc limit " . MAX_DISPLAY_XSELL1);

 

 

Similar Threads

  1. Cross Sell Advanced [Support Thread]
    By DivaVocals in forum Addon Admin Tools
    Replies: 168
    Last Post: 20 Jun 2026, 02:08 PM
  2. Ultimate Cross Sell [Support Thread]
    By ultimate_zc in forum All Other Contributions/Addons
    Replies: 239
    Last Post: 17 May 2015, 03:25 AM
  3. Just another Cross-Sell mod (support thread)
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 702
    Last Post: 3 Nov 2012, 04:30 AM
  4. Multi cross sell mod
    By bonsey61 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 9 Oct 2010, 08:12 PM
  5. support for Cart Upsell/Cross Sell Mod
    By wagnerguy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 5 May 2009, 01:18 AM

Posting Permissions

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