Guest Posted November 9, 2002 Posted November 9, 2002 I have a basic wishlist mod that I need some feedback on. Currently it allows the shopper to add items to the wishlist for later purchase. From the wishlist, the shopper can add items to the cart or delete items from the wishlist. Currently it is not setup to allow other users access to the wishlist. The site is at www.prosynergysales.com/store/default.php You will have to register - site is demo so whatever is ok. I just need to know if anyone runs into any problems. I will aceept suggestions on future changes but at this time I canno focus much energy on increasing the features.
Guest Posted November 9, 2002 Posted November 9, 2002 If you click on the little arrow in the Wishlist info box it will take you to a Wishlist F.A.Q. If anyone can point me to how to designate another icon instead of this darned arrow I would appreciate it
Guest Posted November 9, 2002 Posted November 9, 2002 When I click on any buy now button the page stays there and doesn't go anywhere.
garyw74 Posted November 9, 2002 Posted November 9, 2002 Hi Worked great for me. Are you releasing this for download, or could you send me a copy Thanks in advance Gary
Guest Posted November 9, 2002 Posted November 9, 2002 Worked great for me ? I really like it a lot, can?t wait to add it. I do have one suggestion however, is that there is a page that you get redirected to when ever you add to or delete from the wish list as well as one for the add to cart. I know that they automatically show on the left column correctly, but it might be better for the customer to actually have a message shown. You have done a great job!!
GD Posted November 10, 2002 Posted November 10, 2002 Hey bluephoenix or anybody using the mod, Just one question... Does the contribution work with the latest 2.2 snapshot :?: I just installed the "new" checkout code from the CVS and it works, so I wouldn't want to break it, if the mod is not up-to-date with the latest osC code. Thanks! :D Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!
Guest Posted November 10, 2002 Posted November 10, 2002 Yes. I just tested it yesterday and had not problems
Guest Posted November 11, 2002 Posted November 11, 2002 Dreamwolf, For it to show the cart when items are added to the cart from the Wishlist, you have to turn on a feature in admin that shows the cart contents when items are added to it. As for a page showing when items are added to the Wishlist, I myself find it annoying when I am taken away from the page where I am browsing so I omitted that. When time permits I will look into possibly adding a show wishlist page similar to cart contents page that can be turned on and off in admin
Trusten Posted November 11, 2002 Posted November 11, 2002 problem. you know the part where it says 'in cart', well, doesn't work. it just keeps removing it from the wish list.
GD Posted November 12, 2002 Posted November 12, 2002 Cool bluephoenix, I'll try-it-out then. Trustenand yeah, where IS the wish list? Updated version: http://www.oscommerce.com/downloads.php/co...ions,647/type,3 See that downloads button at the top of the forum :?: Well, that will lead you to the "downloads" page that has a link to the "contributions" section. :wink: Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!
GD Posted November 24, 2002 Posted November 24, 2002 Hey bluephoenix, I tried to install your mod, but all I ended up in doing was to botch the code integration into my application_top.php. :huh: I have the "add a quickie" mod installed and working, and it's right where your instructions said to install your wishlist mod code. :( Maybe you could post a working version of the application_top.php (minis any person info of course), so I can use my file-diffing-program, to see if I can put your code to some use! :D I'm stumped, I'm overlooking something??? ----------------------- Also, if anyone is using bluephoenix's "wishlist" mod and the "add a quickie" mod and has the code working together in their application_top.php, please post the code. (minis any person info of course) 8) ----------------------- Here's my appilcation_top.php code with the "add a quickie" mod installed: // Shopping cart actions if ($HTTP_GET_VARS['action']) { if (DISPLAY_CART == 'true') { $goto = FILENAME_SHOPPING_CART; $parameters = array('action', 'cPath', 'products_id', 'pid'); } else { $goto = basename($PHP_SELF); if ($HTTP_GET_VARS['action'] == 'buy_now') { $parameters = array('action', 'pid', 'products_id'); } else { $parameters = array('action', 'pid'); } } switch ($HTTP_GET_VARS['action']) { // customer wants to update the product quantity in their shopping cart case 'update_product' : $size = sizeof($HTTP_POST_VARS['products_id']); for ($i=0; $i<$size;$i++) { if (in_array($HTTP_POST_VARS['products_id'][$i], (is_array($HTTP_POST_VARS['cart_delete']) ? $HTTP_POST_VARS['cart_delete'] : array()))) { $cart->remove($HTTP_POST_VARS['products_id'][$i]); } else { if (PHP_VERSION < 4) { // if PHP3, make correction for lack of multidimensional array. reset($HTTP_POST_VARS); while (list($key, $value) = each($HTTP_POST_VARS)) { if (is_array($value)) { while (list($key2, $value2) = each($value)) { if (ereg ("(.*)][(.*)", $key2, $var)) { $id2[$var[1]][$var[2]] = $value2; } } } } $attributes = ($id2[$HTTP_POST_VARS['products_id'][$i]]) ? $id2[$HTTP_POST_VARS['products_id'][$i]] : ''; } else { $attributes = ($HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]]) ? $HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]] : ''; } $cart->add_cart($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['cart_quantity'][$i], $attributes, false); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters), 'NONSSL')); break; // customer adds a product from the products page case 'add_product' : if (ereg('^[0-9]+$', $HTTP_POST_VARS['products_id'])) { $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters), 'NONSSL')); break; // performed by the 'buy now' button in product listings and review page case 'buy_now' : if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'], 'NONSSL')); } else { $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1); tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters), 'NONSSL')); } break; case 'notify' : if (tep_session_is_registered('customer_id')) { if ($HTTP_GET_VARS['products_id']) { $notify = $HTTP_GET_VARS['products_id']; } elseif ($HTTP_GET_VARS['notify']) { $notify = $HTTP_GET_VARS['notify']; } elseif ($HTTP_POST_VARS['notify']) { $notify = $HTTP_POST_VARS['notify']; } else { tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify')), 'NONSSL')); } if (!is_array($notify)) $notify = array($notify); $size = sizeof($notify); for ($i=0; $i<$size; $i++) { $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $notify[$i] . "' and customers_id = '" . $customer_id . "'"); $check = tep_db_fetch_array($check_query); if ($check['count'] < 1) { tep_db_query("insert into " . TABLE_PRODUCTS_NOTIFICATIONS . " (products_id, customers_id, date_added) values ('" . $notify[$i] . "', '" . $customer_id . "', now())"); } } tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify')), 'NONSSL')); } else { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } break; case 'notify_remove' : if (tep_session_is_registered('customer_id')) { $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { tep_db_query("delete from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'"); } tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')), 'NONSSL')); } else { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } break; case 'cust_order' : if (tep_session_is_registered('customer_id')) { if (tep_has_product_attributes($HTTP_GET_VARS['pid'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['pid'], 'NONSSL')); } else { $cart->add_cart($HTTP_GET_VARS['pid'],$cart->get_quantity($HTTP_GET_VARS['pid'])+1); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters), 'NONSSL')); break; // customer wants to add a quickie to the cart (called from a box) case 'add_a_quickie' : $quickie_query = tep_db_query("select products_id from " . TABLE_PRODUCTS . " where products_model = '" . $HTTP_POST_VARS['quickie'] . "'"); if (!tep_db_num_rows($quickie_query)) { $quickie_query = tep_db_query("select products_id from " . TABLE_PRODUCTS . " where products_model LIKE '%" . $HTTP_POST_VARS['quickie'] . "%'"); } if (tep_db_num_rows($quickie_query) != 1) { tep_redirect(tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'keywords=' . $HTTP_POST_VARS['quickie'], 'NONSSL')); } $quickie = tep_db_fetch_array($quickie_query); if (tep_has_product_attributes($quickie['products_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $quickie['products_id'], 'NONSSL')); } else { $cart->add_cart($quickie['products_id'], 1); tep_redirect(tep_href_link($goto, tep_get_all_get_params(array('action')), 'NONSSL')); } break; } } Big Thanks! Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!
Tomcat Posted November 25, 2002 Posted November 25, 2002 Blue, I've installed the wishlist mod, but cannot display the box in my column_right.php !!!! No parse errors , but no way of displaying it. Check my site: www.18carati.com Here is my column right file: <?php /* $Id: column_right.php,v 1.1 2002/09/11 22:40:22 wilt Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'shopping_cart.php'); //added for wishlist if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'wishlist.php'); if ($HTTP_GET_VARS['products_id']) include(DIR_WS_BOXES . 'manufacturer_info.php'); if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); if ($HTTP_GET_VARS['products_id']) { if (session_is_registered('customer_id')) { $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . $customer_id . "' and global_product_notifications = '1'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { include(DIR_WS_BOXES . 'best_sellers.php'); } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'best_sellers.php'); } if ($HTTP_GET_VARS['products_id']) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } require(DIR_WS_BOXES . 'reviews.php'); if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } ?> Any ideas? Thanks Franco Outside links in signatures are not allowed!
twinmoons Posted November 26, 2002 Posted November 26, 2002 This is awesome! It worked perfectly for me. This is just what I need for our site! Will give it a shot. Thanks for sharing!
GD Posted November 26, 2002 Posted November 26, 2002 Glad to hear that it worked for you twinmoons, "It worked perfectly for me." You like to brag a little, huh? :wink: But I personally am having some trouble with the mod. I installed it as instructed and now I receive this error message when logged in: 1146 - Table 'username_database_name.wishlist_products' doesn't exist select * from wishlist_products WHERE customers_id=2 [TEP STOP] Can someone help me figure this one out, with some better step by step instructions :?: Or I'll have to uninstall this mod, it is unusable to me as it is now. :( This is the wishlist.sql that I installed from the mod's .zip file: # # Database table for customers_wishlist` # CREATE TABLE customers_wishlist ( products_id int(13) NOT NULL default '0', customers_id int(13) NOT NULL default '0', products_model varchar(13) default NULL, products_name varchar(64) NOT NULL default '', products_price decimal(8,4) NOT NULL default '0.0000', final_price decimal(8,4) NOT NULL default '0.0000', products_quantity int(2) NOT NULL default '0', wishlist_name varchar(64) default NULL ) TYPE=MyISAM; Thanks :!: Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!
GD Posted November 26, 2002 Posted November 26, 2002 Oh and by the way... I'm trying to get the 1.1b version working. And I have tried this as well: Tomcat said: Totally, I had the same problem. There is an error on the install instruction : In catalog/includes/application_top.php add the following //added for wishlist define('FILENAME_WISHLIST', 'wishlist.php'); //(found in odules/wishlist) define('FILENAME_WISHLIST_HELP', 'wishlist_help.php'); //(found in modules/wishlist) define('TABLE_WISHLIST', 'wishlist_products'); Actually the table should be : 'customers_wishlist' and not 'wishlist_products' Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!
twinmoons Posted November 26, 2002 Posted November 26, 2002 Well, I'm going to try to install it on my test server tonight. Hopefully if I get it to work, I'd be more than happy to give you the step-by-step.
GD Posted November 26, 2002 Posted November 26, 2002 Thanks a lot twinmoons, That would be great. Good luck! :D :D :D Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!
twinmoons Posted November 26, 2002 Posted November 26, 2002 OK guys, I was able to get this to work on my test server and have tried to document it as best as possible so here goes. BTW, I'm using a CVS version from around 11/20/2002, so it is using the latest checkout code. First and foremost I want to thank bluephoenix for writing and sharing this. I've been looking to do something like this for some time but I really don't have the php expertise. OK, here's what you have to do: - The wishlist mod is packaged with the same tree structure as osCommerce so you should copy the files to the corresponding locations. - First I started with the database dump. I am using phpmyadmin and dumped the provided file 'wishlist.sql' in my db. - Next copy the file 'box_wishlist_help.gif 'to /catalog/images' folder - Before making changes to your code, be sure to backup your original files!!! - In '/catalo/includes/application_top.php', near the top add the following definitions: //added for wishlist define('FILENAME_WISHLIST', 'wishlist.php'); //(found in modules/wishlist) define('FILENAME_WISHLIST_HELP', 'wishlist_help.php'); //(found in modules/wishlist) define('TABLE_WISHLIST', 'customers_wishlist'); Note that the last define line for TABLE_WISHLIST is 'customers_wishlist'. The original instructions that came with the mod are wrong as it says 'wishlist_products' - You will need to make more changes in application_top.php, but we'll come back to that later. Just save the file now with the above changes. - In the file '/catalog/includes/languages/english.php' add the following lines: // shopping_cart box text in includes/boxes/wishlist.php define('BOX_HEADING_CUSTOMER_WISHLIST', 'Wishlist'); define('BOX_WISHLIST_EMPTY', 'You have no items on your Wishlist'); define('IMAGE_BUTTON_ADD_WISHLIST', 'Add to Wishlist'); - Copy '/catalog/includes/languages/english/wishlist_help.php' to your '/catalog/includes/languages/english/' directory - Copy '/catalog/includes/languages/english/images/buttons/button_wishlist.gif' to your '/catalog/includes/languages/english/images/buttons' directory - Copy '/catalog/includes/boxes/wishlist.php' to your '/catalog/includes/boxes' direcotry - Copy the folder '/catalog/includes/modules/wishlist' to your '/catalog/includes/modules' folder - Add the following code to '/catalog/includes/column_right.php': //added for wishlist if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'wishlist.php'); The location of where you enter the above code depends on where you want it to show up on the right hand column. NOTE: DON'T forget the semicolon ';' at the end of the above code. The instructions that came with the hack was missing it. If you know what's good for you, put the semicolon at the end! - Next you need to add some code in your '/catalog/product_info.php' file to add the 'Add to wishlist' button in the product description. My version of this file is so hacked that it would be useless for me to tell you where to put it based on my file. The key here is to remember to put the code below after the closing </form> tag that displays the 'In Cart' button. Here's the code you need to add: <form name="wishlist_quantity" method="post" action="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_wishlist', 'NONSSL'); ?>"> <input type="hidden" name="products_id" value="<?php echo $product_info_values['products_id']; ?>"> <input type="hidden" name="products_model" value="<?php echo $product_info_values['products_model']; ?>"> <input type="hidden" name="products_name" value="<?php echo $product_info_values['products_name']; ?>"> <input type="hidden" name="products_price" value="<?php echo $product_info_values['products_price']; ?>"> <input type="hidden" name="final_price" value="<?php echo $product_info_values['final_price']; ?>"> <input type="hidden" name="products_tax" value="<?php echo $product_info_values['products_tax']; ?>"> <?php if (tep_session_is_registered('customer_id')) echo tep_image_submit('button_wishlist.gif', IMAGE_BUTTON_ADD_WISHLIST); ?> </form> You should probably put the above code in a new table cell or wherever it suits your site's design best. Just make sure that it is outside of the <form> tag for adding stuff to the cart 'cause otherwise it will add the product to the cart instead of adding it to the wishlist. - Oh, and don't forget to copy '/catalog/includes/images/icons/del_wishlist.gif' to your '/catalog/includes/images/icons' folder. This is the little 'X' icon for deleting stuff from the wishlist. - Now for the final and really hairy part. You need to make some major changes to '/catalog/includes/application_top.php'. The instructions that came were very good. You just have to be careful! So here they are again: There are 3 major changes required 1) Add these //added for wishlist define('FILENAME_WISHLIST', 'wishlist.php'); //(found in modules/wishlist) define('FILENAME_WISHLIST_HELP', 'wishlist_help.php'); //(found in modules/wishlist) define('TABLE_WISHLIST', 'customers_wishlist'); 2)Look for this section and put the listed part after it just as shown // Shopping cart actions if ($HTTP_GET_VARS['action']) { if (DISPLAY_CART == 'true') { $goto = FILENAME_SHOPPING_CART; $parameters = array('action', 'cPath', 'products_id', 'pid'); } else { $goto = basename($PHP_SELF); if ($HTTP_GET_VARS['action'] == 'buy_now') { $parameters = array('action', 'pid', 'products_id'); } else { $parameters = array('action', 'pid'); } } switch ($HTTP_GET_VARS['action']) { // customer wants to update the product quantity in their shopping cart case 'update_product' : for ($i=0; $i<sizeof($HTTP_POST_VARS['products_id']);$i++) { if (in_array($HTTP_POST_VARS['products_id'][$i], (is_array($HTTP_POST_VARS['cart_delete']) ? $HTTP_POST_VARS['cart_delete'] : array()))) { $cart->remove($HTTP_POST_VARS['products_id'][$i]); } else { if (PHP_VERSION < 4) { // if PHP3, make correction for lack of multidimensional array. reset($HTTP_POST_VARS); while (list($key, $value) = each($HTTP_POST_VARS)) { if (is_array($value)) { while (list($key2, $value2) = each($value)) { if (ereg ("(.*)][(.*)", $key2, $var)) { $id2[$var[1]][$var[2]] = $value2; } } } } $attributes = ($id2[$HTTP_POST_VARS['products_id'][$i]]) ? $id2[$HTTP_POST_VARS['products_id'][$i]] : ''; } else { $attributes = ($HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]]) ? $HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]] : ''; } $cart->add_cart($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['cart_quantity'][$i], $attributes, false); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters), 'NONSSL')); break; // customer adds a product from the products page case 'add_product' : if (ereg('^[0-9]+$', $HTTP_POST_VARS['products_id'])) { $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters), 'NONSSL')); break; Put this rigt after the above section // Add product to the wishlist case 'add_wishlist' : if (ereg('^[0-9]+$', $HTTP_POST_VARS['products_id'])) { if ($HTTP_POST_VARS['products_model']) { tep_db_query("insert into " . TABLE_WISHLIST . " (customers_id, products_id, products_model, products_name, products_price) values ('" . $customer_id . "', '" . $products_id . "', '" . $products_model . "', '" . $products_name . "', '" . $products_price . "' )"); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters), 'NONSSL')); break; // Add wishlist item to the cart case 'wishlist_add_cart': reset ($lvnr); reset ($lvanz); while (list($key,$elem) =each ($lvnr)) { (list($key1,$elem1) =each ($lvanz)); tep_db_query("update " . TABLE_WISHLIST . " SET products_quantity=$elem1 WHERE customers_id=$customer_id AND products_id=$elem"); tep_db_query("delete from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND products_quantity='999'"); $produkte_mit_anzahl=tep_db_query("select * from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND products_id=$elem AND products_quantity<>'0'"); while ($HTTP_POST_VARS=mysql_fetch_array($produkte_mit_anzahl)) { $cart->add_cart($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['products_quantity']); } } reset ($lvanz); tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters), 'NONSSL')); break; // remove item from the wishlist case 'remove_wishlist' : tep_db_query("delete from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND products_id=$pid"); tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters), 'NONSSL')); break; 3) Look for this section case 'cust_order' : if (tep_session_is_registered('customer_id')) { if (tep_has_product_attributes($HTTP_GET_VARS['pid'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['pid'], 'NONSSL')); } else { $cart->add_cart($HTTP_GET_VARS['pid'], 1); and replace it with this case 'cust_order' : if (tep_session_is_registered('customer_id')) { if (tep_has_product_attributes($HTTP_GET_VARS['pid'])) { // Although the product has attributes we still delete it from the WISHLIST: if ($rfw == 1) tep_db_query("delete from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND products_id=$pid"); tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['pid'], 'NONSSL')); } else { // First delete from wishlist: if ($rfw == 1) tep_db_query("delete from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND products_id=$pid"); $cart->add_cart($HTTP_GET_VARS['pid'], 1); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters), 'NONSSL')); break; Well, that should do it! If you guys want a copy of my 'application_top.php' file, I'd be glad to provide it. I hope I didn't miss anything here, but hey, it's 2:00 AM! This hack is definitely working. Got it running on our test server and hopefully will be part of our live server once we have upgraded the rest of the site. Best Regards, Tamim
Tomcat Posted November 26, 2002 Posted November 26, 2002 Twinmoon, I did try several times, but this wishlist is driving me crazy.... This is the error I get on the column right.php Warning: Failed opening 'includes/modules/wishlist/FILENAME_WISHLIST' for inclusion (include_path='') in /home/tomcat/public_html/catalog/includes/boxes/wishlist.php on line 14 HELPPPPPPP !!! Outside links in signatures are not allowed!
twinmoons Posted November 26, 2002 Posted November 26, 2002 That's because you must have forgotten to include the line: define('FILENAME_WISHLIST', 'wishlist.php'); //(found in modules/wishlist) in '/catalog/includes/application_top.php'. Add that line in application_top.php. If it still doesn't work, open the file '.../boxes/wishlist.php' and hardcode the name of the file on line 14: include(DIR_WS_MODULES. 'wishlist/wishlist.php');
Tomcat Posted November 26, 2002 Posted November 26, 2002 OK Twinmoons, Now the script works.... but I can't display the wishlist box in column_right.php Try to register and add an item to the wishlist..... the box still doesn't show What shall I do ??? Please help...I'm getting a bit nuts... Ciao Franco Outside links in signatures are not allowed!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.