Jump to content

Johnson

Members
  • Content count

    5,103
  • Joined

  • Last visited

Everything posted by Johnson

  1. Johnson

    [CONTRIBUTION] Wishlist-update_MS1

    It will not function with MS2 - a release for MS2 is currently in development.
  2. Johnson

    Wishlist MS1 SQL error

    Could you please post the diff for the benefit of those running MS1 who may have the *query problem* you had with your version of MySQL - this contribution (and thread) is for MS1
  3. Johnson

    Wishlist MS1 SQL error

    Could you just post the diff?.... your file has other modifications that will leave peoples installations broken :shock: Warning: Missing argument 3 for splitpageresults() in c:program fileseasyphpwwwcatalogincludesclassessplit_page_results.php on line 24 Warning: Missing argument 4 for splitpageresults() in c:program fileseasyphpwwwcatalogincludesclassessplit_page_results.php on line 24
  4. Johnson

    Wishlist MS1 SQL error

    I have uploaded all the modified and additional files from a *working copy* of osC 2.2-MS1 with the Wishlist installed - Wishlist_Files_MS1. You may find them here: http://www.oscommerce.com/community/contributions,1208 If you are installing for the first time you will need the other download as well: Wishlist-update_MS1... you will only need the wishlist.sql file for your database. In future, please do not begin new threads on Wishlist-MS1... I cannot keep track of threads I am not subscribed to :shock:
  5. Johnson

    [CONTRIBUTION] Wishlist-update_MS1

    You have made an error somewhere during installation.. :shock: I have uploaded all the changed and additional files so that those having difficulties can compare with their own installation: http://www.oscommerce.com/community/contributions,1208
  6. That's one sad mother of a server you have.... page won't load properly :shock: Anyhow.... the transparent image is used to set your categories box to a width that won't be shifted by other boxes getting larger for whatever reason... you must set its value to be the largest
  7. You can control the width of the categories box by editing the following in catalog/includes/boxes/coolmenu.php: <img src="images/trans.gif" width="150" height="' . $height . '">'); You can control the width of the menu within the box in catalog/includes/coolmenu.php: oCMenu.level[0].width=154 :shock:
  8. Johnson

    [CONTRIBUTION] Wishlist-update_MS1

    Sorry... I have been away, I pasted that from a PM I received, but couldn't test it... I shall look into the issue this week and post a fix :shock:
  9. Johnson

    [CONTRIBUTION] Wishlist-update_MS1

    Try this in application_top.php (thanks to Marcin)... // customer adds a product from the products page case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { if (tep_session_is_registered('customer_id')) { tep_db_query("delete from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND products_id=$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))); break; I had intended doing a complete rewrite for MS1, but since the release of MS2 is imminent I have held off till then.... hope this helps
  10. You also missed the correct forum to post in... read the sticky! As I have stated before... and will again on many more occasions I am sure..... it bugs me no end to have to wade through invalid posts to this forum! :x
  11. Sounds interesting Enrico... I'll give it a whirl ASAP... shall post my thoughts back on this thread... I assume it is coded for MS1?
  12. Johnson

    coolMenu

    I'm sorry... it appears that both Andreas and I were misunderstood... I believe the instructions say: I don't see "sub-directory" anywhere.... :shock:
  13. Johnson

    coolMenu

    I think it means exactly what it says.... :shock:
  14. Johnson

    coolMenu

    Thanks for a neat contribution Andreas... :D Just a small question... in my subcategories I would like to remove the border around the individual subcategory names.... I altered the border to: oCMenu.level[0].borderY=0 However, that also removes the border at the top and bottom of the box, which I would like to keep. Is there a simple way to do this? :shock:
  15. Johnson

    [CONTRIBUTION] Wishlist-update_MS1

    Replace: // customer adds a product from the products page case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($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))); break; with: case 'add_product' : if (ereg('^[0-9]+$', $HTTP_POST_VARS['products_id'])) { if (tep_session_is_registered('customer_id')) tep_db_query("delete from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND products_id=$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']))-($cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'],$HTTP_POST_VARS['id'])))+$HTTP_POST_VARS['cart_quantity'], $HTTP_POST_VARS['id']); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters), 'NONSSL')); break; Just below that should be (updated): // application_top.php // 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 customers_id=$customer_id AND products_id=$products_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(FILENAME_WISHLIST); break; This is all pretty old code, but it does work!....
  16. Johnson

    [CONTRIBUTION] Wishlist-update_MS1

    There is an issue with the original Wishlist 1.2 mod for column_right.php - there is a missing semi-colon: //added for wishlist if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'wishlist.php') should be: //added for wishlist if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'wishlist.php');
  17. Johnson

    [CONTRIBUTION] Wishlist-update_MS1

    So what happened?... if the product has attributes it redirects to the product_info page for that product so you can choose your attributes and add it to the cart.... this is how the original contribution functioned... If you read this thread you will see that I am working on a full MS1 update that will allow products with their chosen attributes to be added directly to the cart.... I do not have products with attributes, so the Wishlist works just fine for me.... I would like to see it work better for everybody, but coding contributions takes time.... guess you just gotta wait :shock:
  18. Johnson

    [CONTRIBUTION] Wishlist-update_MS1

    Well... I got kinda sidetracked... :oops: But tonight definitely I'll get a couple of files done.... The mod works just fine for myself the way I use it... I'll do a modified product_info.php and application_top.php from a clean MS1 install for those who need it.... please pm me if you need these files as I am not posting anything in Contributions until I have a complete MS1 rewrite done.....
  19. Johnson

    [CONTRIBUTION] Wishlist-update_MS1

    I'll try and get one done for you tonight....
  20. Johnson

    [CONTRIBUTION] Wishlist-update_MS1

    For anybody else using this contribution... Get yourself a decent text editor.... the readme is in Unix format and looks a mess and is hard to follow in notepad :shock: Bug: it does not work with products with attributes - I can't see that it ever has..... I don't use attributes, so I didn't spot this.... works fine for what I require.... I am currently redoing all the code in MS1 - a completely new contribution
  21. Johnson

    [CONTRIBUTION] Wishlist-update_MS1

    I will help you... *pm* me your application_top.php
  22. Johnson

    [CONTRIBUTION] Wishlist-update_MS1

    Version 1.2 is packaged with it.... unchanged... the readme shows the diff. It is on the same page... :shock: It was a matter of time for me also... I could see that you were no longer supporting it, yet there were people having the same problems I did, so I threw up what I had done.....until I also have the time :? I will do a new and complete functioning package over the weekend.... this will include all altered and additional files based on MS1, and also a diff file for people who already have other modifications (as I do - this is why I didn't include all my files - have to redo them on a fresh MS1)
  23. Johnson

    [CONTRIBUTION] Wishlist-update_MS1

    The first one is packaged with it....
  24. Johnson

    [CONTRIBUTION] Max Orders

    Oops...4got the URL! http://www.oscommerce.com/community/contri...ons,1206/page,8
  25. Yeah... that's a good one.... use it myself! :shock:
×