Page 2 of 71 FirstFirst 12341252 ... LastLast
Results 11 to 20 of 703
  1. #11
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Just another Cross-Sell mod (support thread)

    Huhm, it might be a mysql compatibility issue. What is your mysql version?

    About IE6 error, I'm looking into it right now.
    Last edited by yellow1912; 18 Aug 2007 at 04:16 PM.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  2. #12
    Join Date
    Oct 2005
    Location
    Germany
    Posts
    60
    Plugin Contributions
    0

    Default Re: Just another Cross-Sell mod (support thread)

    Hello,
    here is what I use:

    PHP: 4.4.7 (Zend: 1.3.0)
    MySQL 4.1.22-standard

    Linux 2.6.9-55.0.2.EL

    HTTP Server: Apache/1.3.37 (Unix) prxp_module/1.11.3 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.7 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a

    hope it helps, because your contribution will help us.
    Thanks
    Michael

  3. #13
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Just another Cross-Sell mod (support thread)

    Try to see if it works:
    1. Open admin/xsell_advanced.php
    Replace:
    PHP Code:
    if (XSELL_FORM_INPUT_TYPE == "model")
                
    $cross_product $db->Execute("SELECT products_id FROM " TABLE_PRODUCTS " WHERE products_model = '$products_id' UNION (SELECT products_id FROM "TABLE_PRODUCTS " WHERE products_model = '$pid')");
            else
                
    $cross_product $db->Execute("SELECT products_id FROM " TABLE_PRODUCTS " WHERE products_id = $products_id LIMIT 1 UNION (SELECT products_id FROM "TABLE_PRODUCTS " WHERE products_id = $pid LIMIT 1)"); 
    By:
    PHP Code:
    if (XSELL_FORM_INPUT_TYPE == "model")
                
    $cross_product $db->Execute("SELECT products_id FROM " TABLE_PRODUCTS " WHERE products_model IN ('$products_id', '$pid') ORDER BY FIELD (products_model, '$products_id', '$pid')");
            else
                
    $cross_product $db->Execute("SELECT products_id FROM " TABLE_PRODUCTS " WHERE products_id IN ($products_id$pid) ORDER BY FIELD (products_id, '$products_id', '$pid')"); 

    As for the javascript error, I'm no js expert so it'll take me some time to see why it doesnt work with IE at all.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  4. #14
    Join Date
    Oct 2005
    Location
    Germany
    Posts
    60
    Plugin Contributions
    0

    Default Re: Just another Cross-Sell mod (support thread)

    Thank you for your help, but now the rsult is as follows:

    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(products_model, '5060057722374', '5060057721971')' at line 1
    in:
    [SELECT products_id FROM products WHERE products_model IN ('5060057722374', '5060057721971') ORDER BY FIELD (products_model, '5060057722374', '5060057721971')]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

  5. #15
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Just another Cross-Sell mod (support thread)

    I will need to somehow get mysql 4.1 installed so I can check why this happens.
    We of course can get around this easily by query 1 product at a time only, but that is my last choice. Please be patient with me.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  6. #16
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Just another Cross-Sell mod (support thread)

    BTW, you should consider moving to a newer version of mysql soon, for the sake of performance and compatibility.
    ZC will move to PHP5 in the next version, and PHP5 often goes with mysql5.
    http://www.zen-cart.com/forum/showth...168#post417168

    Concerning the js bug, I think I found out the error. Now I need to somehow get it works ^^.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  7. #17
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Just another Cross-Sell mod (support thread)

    Try:

    Code:
    if (XSELL_FORM_INPUT_TYPE == "model")
                $cross_product = $db->Execute("SELECT products_id FROM " . TABLE_PRODUCTS . " WHERE products_model IN('$products_id', '$pid') ORDER BY FIELD(products_model, '$products_id', '$pid')");
            else
                $cross_product = $db->Execute("SELECT products_id FROM " . TABLE_PRODUCTS . " WHERE products_id IN($products_id, $pid) ORDER BY FIELD(products_id, '$products_id', '$pid')");
    (Removed space after IN and FIELD)
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  8. #18
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Just another Cross-Sell mod (support thread)

    I have the javascipt bug fixed. Let me know if the new sql works for you so I can update the mod to fix these 2 issues.
    (If you cant wait, the version with js bug fix is available on svn)
    Last edited by yellow1912; 18 Aug 2007 at 10:25 PM.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  9. #19
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Just another Cross-Sell mod (support thread)

    Alpha 1 rev 34 uploaded.

    Changes:
    This update addresses the javascript bug in the IE browser.
    Moved some functions around to tidy up the codes.

    Note:
    There was a report that this mod does not work well in MySql 4.1. Let me know if you have the same problem with this version
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  10. #20
    Join Date
    May 2005
    Location
    England
    Posts
    675
    Plugin Contributions
    0

    Default Re: Just another Cross-Sell mod (support thread)

    Hello there,

    I was wondering, while I was using the cross sell mods, is it at all possible to cross sell by category id? All the cross sells I have setup cross sell items from the same category. Like once you have a category full of items, they inter cross sell each other. Just a crazy idea! lol

    Regards,

    Heathenmagic

 

 
Page 2 of 71 FirstFirst 12341252 ... LastLast

Similar Threads

  1. Cross Sell Advanced [Support Thread]
    By DivaVocals in forum Addon Admin Tools
    Replies: 162
    Last Post: 28 Jan 2025, 01:37 PM
  2. Multi Cross Sell mod [Support thread]
    By gilby in forum All Other Contributions/Addons
    Replies: 475
    Last Post: 11 Apr 2020, 10:44 PM
  3. Trying to fully uninstall Cross Sell Just Another Mod
    By 1105designs in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 18 Oct 2011, 04:03 AM
  4. Fatal Error After installing Cross Sell - Just Another Cross Sell Mod
    By kconklin in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 9 Jul 2010, 02:38 PM
  5. "cross sell - just another cross sell mod"
    By australican in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 28 Apr 2010, 05:17 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR