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

Wishlist 2.0

This is a discussion on Wishlist 2.0 within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; open "wishlist_public.php" find: $products_query = tep_db_query("select pd.products_id, pd.products_name, pd.products_description, p.products_image, p.products_price, p.products_status, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, ...

      
  1. #1
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Post Wishlist 2.0

    open "wishlist_public.php"

    find:

    $products_query = tep_db_query("select pd.products_id, pd.products_name, pd.products_description, p.products_image, p.products_price, p.products_status, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where pd.products_id = '" . $wishlist_id . "' and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' order by products_name");
    $products = tep_db_fetch_array($products_query);




    replace eith:

    $products_query = tep_db_query("select pd.products_id, pd.products_name, pd.products_description, p.products_image, p.products_price, p.products_status, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from ( " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd ) left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where pd.products_id = '" . $wishlist_id . "' and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' order by products_name");
    $products = tep_db_fetch_array($products_query);

    More...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  2. #2
    osCMax Testing Team
    Join Date
    Aug 2008
    Posts
    14
    Rep Power
    0


    Default Re: Wishlist 2.0

    Have these changes been included in RC4?
    I'm getting the following error when trying to add a product to the wishlist:

    1054 - Unknown column 'products_name' in 'order clause'

    select * from customers_wishlist where customers_id = '' order by products_name limit 0, 12

    [TEP STOP]

    My Wish List contains:

    I've done some reading around, and noticed there are some suggest code changes to the sql query thats generated by a few of the php modules, but the "what to replace" does not match so I am guessing some changes have already been applied.
    EDIT: I also checked with a customer logged in and it still generates the above error, but the sql does contain a customer id.
    thanks
    Gringe

Similar Threads

  1. Wishlist 2.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 10-09-2007, 08:30 AM
  2. Wishlist 2.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 09-07-2007, 08:23 PM
  3. Wishlist 3.5d
    By kingsland in forum osCmax v2 Customization/Mods
    Replies: 8
    Last Post: 07-15-2007, 08:12 PM
  4. Wishlist 2.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-15-2007, 09:22 PM
  5. Wishlist issues - sent email doesnt include wishlist links
    By slothy in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 08-31-2005, 11:53 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
  •