defender39 Posted November 23, 2003 Share Posted November 23, 2003 I just added the latest version of wishlist. Go check it out and post here if you need support. I want to know if someone installs this into MS2. The biggest thing added is the ability to email a friend your wishlist complete with name and link to each product. Wishlist 2.0 Contribution Download Page Quote Link to comment Share on other sites More sharing options...
Jayman2 Posted November 23, 2003 Share Posted November 23, 2003 Hi Jessie, I installed Wishlist 2.0 into MS2. When I tried to go to my index.php, I get the errors: Parse error: parse error in /home/httpd/vhosts/mydomain.com/httpdocs/includes/application_top.php on line 454 This is what is on line 454: case 'cust_order' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['pid'])) { The next error is: Warning: main(DIR_WS_LANGUAGES/FILENAME_DEFAULT): failed to open stream: No such file or directory in /home/httpd/vhosts/mydomain.com/httpdocs/index.php on line 33 This is what is on line 33: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); Fatal error: main(): Failed opening required 'DIR_WS_LANGUAGES/FILENAME_DEFAULT' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/mydomain.com/httpdocs/index.php on line 33 I uploaded all of the files and made all of the modification and ran the sql file on my database. Do you have any suggestions? Any help would be appreciated. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
defender39 Posted November 23, 2003 Author Share Posted November 23, 2003 more than likely you have an extra } near the end of the cart functions..try to remove one...or two..please be careful with application_top.php Maintain a backup. Quote Link to comment Share on other sites More sharing options...
Jayman2 Posted November 23, 2003 Share Posted November 23, 2003 Thanks Jesse, I'll try that. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 23, 2003 Share Posted November 23, 2003 (edited) I shall be taking a look at this MS2 installation to sort out whatever issues there will be - I know there will be one with splitPageResults. Hopefully we can get these under control before you are inundated with similar problems. Matti Edited November 29, 2003 by Johnson Quote Link to comment Share on other sites More sharing options...
defender39 Posted November 23, 2003 Author Share Posted November 23, 2003 Oh yeah...I have to look at split page results because I actually just copied the MS2 split_page_results to my MS1 and made it split_page_results2 function. This way I can add those pesky MS2 contribs and only change the call to that function. Seems to work for me. Sorry but when I installed it I wasnt planning on doing this much to it so I didnt keep any notes. Thats really why I didnt want to add it until someone with MS2 tried it. Hopefully we can get things resolved fast and make a 2.1 Quote Link to comment Share on other sites More sharing options...
Guest Posted November 23, 2003 Share Posted November 23, 2003 (edited) Ok - I have this running in Jayman2's MS2 installation. The following need to be removed from the Wishlist files altogether as they are part of other contributions and will give everybody problems: <? require(DIR_WS_INCLUDES . 'meta.php'); ?> <!-- coolMenu //--> <?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?> <!-- coolMenu_eof //--> The correct line in catalog/wishlist.php in MS2 for splitpageresults is: ?$wishlist_split = new splitPageResults($wishlist_query_raw, MAX_DISPLAY_WISHLIST_PRODUCTS); There is a problem with the email - the links are as follows: http://www.everythingnice.com/product_info.php/products_id/388 Search engine friendly URLs are turned off on this site, so that is not the problem. This can be corrected in wishlist_email.php by changing: $wishliststring .= $resultarray[1]."\n" . HTTP_SERVER ."/product_info.php/products_id/".$resultarray[0] . "\n\n"; to: $wishliststring .= $resultarray[1]."\n" . HTTP_SERVER ."/product_info.php?products_id=".$resultarray[0] . "\n\n"; The emails still come in the following format, so there is still a little work to be done here: My Wishlist is: http://www.everythingnice.com/product_info.php?products_id=388 http://www.everythingnice.com/product_info.php?products_id=388 Musical Windmill Metal Sculpture http://www.everythingnice.com/product_info.php?products_id=388 I am too tired tonight to look at this further - these are not active links in the email - not sure if this has to do with the server mail settings or the script. Filename and database defines should go in filenames.php and database_tables.php respectively. HTH One question - where should the link be for the customer to access wishlist_email.php? Matti Edited November 23, 2003 by Johnson Quote Link to comment Share on other sites More sharing options...
defender39 Posted November 23, 2003 Author Share Posted November 23, 2003 Thanks so much for finding all the things that needed to be changed. I was in a hurry because I am swamped with projects at the moment. the meta.php thing is something I created since I didnt like the contrib for dynamic metas...it seemed to have problems with html tags I use sometimes in descriptions I assume most people use coolmenu but yeah...that should be removed too. I purposely made the email plain text. I prefer not to send out HTML emails. Opera makes http:// a link anyways. But that could easily be changed if you want HTML email. Also I am confused...you say the email was My Wishlist is: http://www.everythingnice.com/product_info.php?products_id=388 http://www.everythingnice.com/product_info.php?products_id=388 Musical Windmill Metal Sculpture http://www.everythingnice.com/product_info.php?products_id=388 so...is that a real example? Because all my test emails do work perfect as far in...Each product is named and then a link is under that. Your example shows 3 links to the same product and only one name. Please clarify that. And thanks a bunch for the extra work into the contrib. Quote Link to comment Share on other sites More sharing options...
Evil Els Posted November 24, 2003 Share Posted November 24, 2003 :blink: table_background_wishlist.gif is missing even after removing all the meta.php and coolmenustuff the wishlist is not working php reports : PHP Parse error: parse error, unexpected T_CASE in /catalog\includes\application_top.php on line 433 PHP Warning: main(DIR_WS_LANGUAGES/FILENAME_DEFAULT): failed to open stream: No such file or directory in \catalog\index.php on line 33 PHP Fatal error: main(): Failed opening required 'DIR_WS_LANGUAGES/FILENAME_DEFAULT' (include_path='.;') in \catalog\index.php on line 33 Quote Link to comment Share on other sites More sharing options...
defender39 Posted November 24, 2003 Author Share Posted November 24, 2003 (edited) All those errors stem from application_top Just comb the page and make sure you add the extra functions properly...it took me a lot of work to get it in there and I am sorry I cant explain it better... Maybe someone with a better knowledge of MS2 and a bare application_top can explain how to install the changes. I will help all I can. PM me if you want me to FTP in and look at it. As for the wishlist image...I never used it...you can just change it to read another background table like shopping cart or just info. Or go ahead and make one. Edited November 24, 2003 by defender39 Quote Link to comment Share on other sites More sharing options...
steve.luther Posted November 24, 2003 Share Posted November 24, 2003 When I try to download it I get the following message. http://oscommerce.sunsite.dk/contributions/Wishlist-2.zip Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster. Error 404 oscommerce.sunsite.dk Mon Nov 24 11:38:43 2003 Apache/2.0.45 (Unix) so how do you download it then???? Cheers Steve Quote Link to comment Share on other sites More sharing options...
Jayman2 Posted November 24, 2003 Share Posted November 24, 2003 I just checked. The other link works just fine. Quote Link to comment Share on other sites More sharing options...
steve.luther Posted November 24, 2003 Share Posted November 24, 2003 (edited) I agree the link from defender39 does indeed work fine and it does take you to the download page but when you click on the word [sunsite] to download it you get the error message I printed above. Or at least I do !!! New info, If you click [pair] you can download it. Edited November 24, 2003 by steve.luther Quote Link to comment Share on other sites More sharing options...
Guest Posted November 24, 2003 Share Posted November 24, 2003 Also I am confused...you say the email was My Wishlist is: http://www.everythingnice.com/product_info.php?products_id=388 http://www.everythingnice.com/product_info.php?products_id=388 Musical Windmill Metal Sculpture http://www.everythingnice.com/product_info.php?products_id=388 so...is that a real example? Because all my test emails do work perfect as far in...Each product is named and then a link is under that. Your example shows 3 links to the same product and only one name. Please clarify that. And thanks a bunch for the extra work into the contrib. No problem B) Yes, that was how I got the mail - twice, both before and after I made changes to the file. Matti Quote Link to comment Share on other sites More sharing options...
crash3903 Posted November 24, 2003 Share Posted November 24, 2003 hi people I am getting an error on line 447 of the app top file the line is highlighted in red below //beginning of wishlist case 'cust_order' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['pid'])) { if (tep_has_product_attributes($HTTP_GET_VARS['pid'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['pid'])); } else { tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_GET_VARS['pid'] . "' and customers_id = '" . $customer_id . "'"); $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))); // Add product to the wishlist any ideas appreciated thanks Quote Regards Mark A Reynolds Link to comment Share on other sites More sharing options...
Guest Posted November 24, 2003 Share Posted November 24, 2003 I am getting an error What is the error message? Matti Quote Link to comment Share on other sites More sharing options...
crash3903 Posted November 24, 2003 Share Posted November 24, 2003 hi matt Parse error: parse error in /homepages/34/d84309762/htdocs/catalog/includes/application_top.php on line 447 regards mark Quote Regards Mark A Reynolds Link to comment Share on other sites More sharing options...
Guest Posted November 24, 2003 Share Posted November 24, 2003 Make sure that you do not have another instance of case 'cust_order' : etc. before the wishlist mod. Matti Quote Link to comment Share on other sites More sharing options...
defender39 Posted November 24, 2003 Author Share Posted November 24, 2003 yes that could be it...I had some of the functions twice. Make sure that any function in wishlist is the one to use and delete the other function. PLEASE BE CAREFUL AND BACKUP YOUR APPLICATION_TOP Quote Link to comment Share on other sites More sharing options...
crash3903 Posted November 24, 2003 Share Posted November 24, 2003 thanks guys i have resolved it i think - i deleted the two } } prior to the wish list code I now have a problem that says Error! Unable to determine the page link I guess it is ttrying to call the link for the wishlist but not having any success?? what do you think? here is the column right box code require(DIR_WS_BOXES . 'shopping_cart.php'); if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'wishlist.php'); require(DIR_WS_BOXES . 'live_support.php'); require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'reviews.php'); regards mark Quote Regards Mark A Reynolds Link to comment Share on other sites More sharing options...
defender39 Posted November 24, 2003 Author Share Posted November 24, 2003 (edited) For problems please post your site link. It might be helpful, if you can create a test account like [email protected] with a simple pass like "password". Do you have /catalog/includes/modules/wishlist/ ??? For some reason the original maker of Wishlist put the sidebar function into a /modules directory and its called from /catalog/includes/boxes/wishlist.php Also try to just enter your URL /wishlist.php to see if at least the wishlist page is working. someone has asked me about a demo http://www.videogamedeals.com/ [email protected] and test1 to login Edited November 24, 2003 by defender39 Quote Link to comment Share on other sites More sharing options...
crash3903 Posted November 24, 2003 Share Posted November 24, 2003 thanks jesse i have the wishlist folder under modules... i don't understand about the path like you said earlier... For some reason the original maker of Wishlist put the sidebar function into a /modules directory and its called from /catalog/includes/boxes/wishlist.php Also try to just enter your URL /wishlist.php to see if at least the wishlist page is working also i am unable to get the wishlist page up as it returns the same error My website is in my signature. I seem to be the only one not getting it to work in Ms2 :( regards mark Quote Regards Mark A Reynolds Link to comment Share on other sites More sharing options...
Jayman2 Posted November 24, 2003 Share Posted November 24, 2003 I have Wishlist v2 running perfecly on my M2 site thanks to Matti. My problem is that when I go to the product_info.php page and click on "reviews" I get this error: 1054 - Unknown column 'products_head_desc_tag' in 'field list' select products_head_desc_tag from products_description where language_id = '1' and products_id = '389' Am I the only one receiving this error? And does anyone know how I can fix this? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
beardeddone Posted November 24, 2003 Share Posted November 24, 2003 (edited) For problems please post your site link. It might be helpful, if you can create a test account like [email protected] with a simple pass like "password". Do you have /catalog/includes/modules/wishlist/ ??? For some reason the original maker of Wishlist put the sidebar function into a /modules directory and its called from /catalog/includes/boxes/wishlist.php Also try to just enter your URL /wishlist.php to see if at least the wishlist page is working. someone has asked me about a demo http://www.videogamedeals.com/ [email protected] and test1 to login Well for some reason when I add this code to the application_top.php //beginning of wishlist ? ? ?case 'cust_order' : ? ? if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['pid'])) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if (tep_has_product_attributes($HTTP_GET_VARS['pid'])) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['pid'])); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} else { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_GET_VARS['pid'] . "' and customers_id = '" . $customer_id . "'"); ?$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))); // Add product to the wishlist ? ? ?case 'add_wishlist' : ?if (ereg('^[0-9]+$', $HTTP_POST_VARS['products_id'])) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if ?($HTTP_POST_VARS['products_id']) { ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?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(FILENAME_WISHLIST)); ? ? ? ?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(FILENAME_WISHLIST)); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?break; // remove item from the wishlist ///// CHANGES TO case 'remove_wishlist' BY DREAMSCAPE ///// ? ? ?case 'remove_wishlist' : ? ? ? ? ? ? ? ? ? ? ? ? ? ? tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_GET_VARS['pid'] . "' and customers_id = '" . $customer_id . "'"); ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link(FILENAME_WISHLIST)); ? ? ? ? ? ? ? ? ? ? ? ? ? ? break; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?// performed by the 'buy now' button in product listings and review page ? ? ?case 'buy_now' : ? ? ? ?if (tep_session_is_registered('customer_id')) { tep_db_query("delete from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND products_id=$products_id"); } ? ? ? ? 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(FILENAME_WISHLIST)); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?break; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ?} //end of wishlist I get an error Fatal error: Call to undefined function: tep_not_null() in xxxxxxxxxx\catalog\index.php on line 17 I'M using MS2 :( Edited November 24, 2003 by beardeddone Quote Best Regards Link to comment Share on other sites More sharing options...
beardeddone Posted November 24, 2003 Share Posted November 24, 2003 (edited) In the wishlist_help.php and wishlist.php, I see a line <? require(DIR_WS_INCLUDES . 'meta.php'); ?> I don't seem to have this filename meta.php, hows it created? Edited November 24, 2003 by beardeddone Quote Best Regards Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.