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, ...
| |||||||
| Register | FAQ | Donate | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| 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 *** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers *** 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 User Manual - osCMax Templates - Advanced Template Tutorial |
|
#2
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wishlist 2.0 | michael_s | New osCommerce Contributions | 0 | 10-09-2007 08:30 AM |
| Wishlist 2.0 | michael_s | New osCommerce Contributions | 0 | 09-07-2007 08:23 PM |
| Wishlist 3.5d | kingsland | osCMax v2 Customization/Mods | 8 | 07-15-2007 08:12 PM |
| Wishlist 2.0 | michael_s | New osCommerce Contributions | 0 | 04-15-2007 09:22 PM |
| Wishlist issues - sent email doesnt include wishlist links | slothy | osCMax v2 Installation issues | 3 | 08-31-2005 11:53 AM |