osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-19-2008, 03:20 PM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,717
Thanks: 139
Thanked 607 Times in 519 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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

*** 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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 08-28-2008, 03:46 AM
osCMax Testing Team
 
Join Date: Aug 2008
Posts: 14
Thanks: 7
Thanked 0 Times in 0 Posts
Rep Power: 0
TheGringe is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -8. The time now is 09:41 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design