Jump to content

craigey

Members
  • Content count

    37
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    craig
  1. craigey

    Wishlist 2.0 Support Thread

    I haven't even had a chance to start on the update that I mentioned, as my hard drive died. eurabia Please feel free to add the change into the contrib (don't forget to change the install.txt) and upload it. It will save me having to re-write the whole thing. Thanks Craig
  2. craigey

    Wishlist 2.0 Support Thread

    Hi all, I don't know why there are so many problems, it's still fine on my version. I haven't tried it with the STS contrib, so I don't know if that is causing a problem. However in light of all the problems that people are having. I'm going to do a fresh install and start working on the update of the contribution and the updates to the install.txt Hopefully I'll post a full complete working version in the next few days.
  3. There's already a similar contrib for ms2. see http://www.oscommerce.com/community/contributions,1476
  4. you may as well leave it in the db. It's not going to make much difference to page load times etc. but that's why you should always backup your db / shop files, before making any changes.
  5. craigey

    Wishlist 2.0 Support Thread

    ignore that I found it! I've added the contrib with gemanda's update. I've also made sure that the install.txt includes the missing instruction. :)
  6. craigey

    Wishlist 2.0 Support Thread

    Sorry which file is that meant to be in??
  7. craigey

    Wishlist 2.0 Support Thread

    mutter That is what it was that I missed. I posted it a few posts back and have added it to the contrib zip file. But before I post it, does the column right need to be as you said Gemanda?
  8. craigey

    Wishlist 2.0 Support Thread

    I'm glad it worked. Can you post a picture of what you mean by On My OSC, I've moved a few bit's around in column left and right. I've also removed the launguages, so I'm not too sure what is normally meant to go where! If you can't post a pic, then send me an e-mail me, I'll reply and you can attach the pic to the e-mail as The board e-mail doesn't let you send pics. Cheers Craig
  9. craigey

    Wishlist 2.0 Support Thread

    ok I've been a total twit, and missed a section of the install.txt I did a complete re-install of my oscommerce and wishlist 2.0. I followed the instructions in the wishlist contribution, install.txt & I noticed the problem that notset4life mentioned occured. So I compared the application_top.php file with the one that I backed up. I found that I had missed this code out of the install.txt in /catalog/includes/application_top.php After ----- // 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; Add --- // Modificacion Wishlist Checkboxes case 'add_products_wishlist' : if (isset($HTTP_POST_VARS['add_wishprod'])) { if ($HTTP_POST_VARS['borrar'] == 0) { foreach ($HTTP_POST_VARS['add_wishprod'] as $value) { if (ereg('^[0-9]+$', $value)) { tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = $value and customers_id = '" . $customer_id . "'"); $cart->add_cart($value, $cart->get_quantity(tep_get_uprid($value, $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); } if ($HTTP_POST_VARS['borrar'] == 1) { foreach ($HTTP_POST_VARS['add_wishprod'] as $value) { if (ereg('^[0-9]+$', $value)) { tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = $value and customers_id = '" . $customer_id . "'"); } } tep_redirect(tep_href_link(FILENAME_WISHLIST)); } } break; // Fin Wishlist Checkboxes I will double-check that this works on a fresh oscommece install tomorrow and will then upload the contrib if all goes well. Sorry for causing these problems. :unsure: But I hope they are now fixed. :rolleyes:
  10. craigey

    Wishlist 2.0 Support Thread

    Just updated the contrib. See if that's any better. If not let me know and when I get home I'll start over.
  11. craigey

    Wishlist 2.0 Support Thread

    I'm getting a page cannot be found. I've just noticed that the install.txt, and the application_top.php files don't appear to have the same code in the zip. Here is the correct code in the application_top.php 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 { $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))); break; } } // include the who's online functions and replace it with this: case 'cust_order' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['pid'])) { // begin mod for Wishlist v2.2 tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_GET_VARS['pid'] . "' and customers_id = '" . $customer_id . "'"); // end mod for Wishlist 2.2 if (tep_has_product_attributes($HTTP_GET_VARS['pid'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['pid'])); } 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))); break; // begin mod for Wishlist v2.2 // Add product to the wishlist case 'add_wishlist' : if (ereg('^[0-9]+$', $HTTP_GET_VARS['products_id'])) { if ($HTTP_GET_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_GET_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 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; // end mod for Wishlist v2.2 } } // include the who's online functions ?> I will re-package this later today.
  12. craigey

    Wishlist 2.0 Support Thread

    I've just re-installed my oscommerce from my backup before I tried the wishlist contrib and then installed the latest wishlist contrib and don't appear to have any problems at all. Are you reading the install.txt? or the readme.txt
  13. craigey

    Wishlist 2.0 Support Thread

    notset4life Sorry, I don't know what it could be. I was hoping someone else might be able to help if they knew the version number. Ruben I've uploaded the updated contrib, again.
  14. craigey

    Wishlist 2.0 Support Thread

    a few people have had the same problem, not just with this contrib. My OSC version is 2.2 Milestone 2. I've only been using it for a few weeks.
  15. craigey

    Wishlist 2.0 Support Thread

    notset4life Which version of the wishlist are you using? Ruben I've fixed the wishlist paging problem, some of the code just needed to move a little further down the page for some reason. I've combined your contrib with the normal one (haven't changed any of your code though) , I'll post it later if you want.
×