Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Brance

Archived
  • Posts

    11
  • Joined

  • Last visited

Profile Information

  • Real Name
    Brance Gillihan

Brance's Achievements

  1. Hey Matti, thanks for the great contrib. I've got it working almost exactly like I want it. Where should I send the donation. ;) Here's where i'm at. If you purchase a slave product (one track individually) the download works, but if you purchase the master you don't get a download link. Unless i'm missing something, I think this has more to do with downloads controller than with master products. I'm thinking that downloads.php has got to be edited to make this work. there is no file associated with the master, so downloads.php doesn't see a file to present. it needs to find the files associated with the slaves when you purchase the master, and present those files for download. I'm just not sure exactly how to make that happen. I've read in other threads that there may be a soon to come update for master products that will deal with this issue. any time frame for that release? let me know if you need a beta tester. :D I checked out the Hi-Bias website you just completed recently and it looks like you've got it working on that site. http://www.hibias.ca/store/catalog/product...products_id=416 am I on the right track thinking I need to modify the downloads.php file?
  2. this unregisteres the wishlist with the session. that way if customer B returns and buys something else for himself that was on customer A's wishlist, it won't get removed from A's wishlist. the problem now is unregistering this variable when they don't buy anything from the wishlist. I'm working on it, but feel free to chime in if you have any ideas.
  3. ok, one last thing. I had to go back into includes/classes/wishlist.php and add this line of code after the last changes I made session_unregister("wishlist_delete"); so now my includes/classes/wishlist.php file looks like this at line 99 function clear() { global $customer_id; // Remove all from database // changed $customers_id to $_SESSION["wishlist_delete"] if (tep_session_is_registered('customer_id')) { $wishlist_products_query = tep_db_query("select products_id from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . $customer_id . "'"); while($wishlist_products = tep_db_fetch_array($wishlist_products_query)) { tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $wishlist_products[products_id] . "' and customers_id = '" . $_SESSION["wishlist_delete"] . "'"); tep_db_query("delete from " . TABLE_WISHLIST_ATTRIBUTES . " where products_id = '" . $wishlist_products[products_id] . "' and customers_id = '" . $_SESSION["wishlist_delete"] . "'"); session_unregister("wishlist_delete"); } } }
  4. I was able to make it do this by adding this code to wishlist_public.php at line 19 // add wishlist_delete session variable $wishlist_delete = $public_id; session_register("wishlist_delete"); // end wishlist_delete session variable and then in includes/classes/wishlist.php I changed tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $wishlist_products[products_id] . "' and customers_id = '" . $customer_id . "'"); to tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $wishlist_products[products_id] . "' and customers_id = '" . $_SESSION["wishlist_delete"] . "'"); I think that was line 106 and then the same thing in the next line that alters TABLE_WISHLIST_ATTRIBUTES. any reason not to do it this way? it seems to work just fine and do exactly what I wanted it to do. this way if they email their wishlist to 10 people, when the first person buys an item off their wishlist, it removes it so that other people won't buy it for them a second time.
  5. this is a follow up to my last post. we found the fix for this problem suggested by Bighawk. <?php echo tep_draw_form('wishlist_form', tep_href_link(FILENAME_WISHLIST_PUBLIC, 'public_id=' .$public_id)); ?> this seems to work in so far as it now correctly adds the product to my cart from wishlist_public.php, but... ...it does not remove the item from the wishlist after I purchase it. I have two users created. the wishlist belongs to user A. I'm logged in as user B and purchasing it from user A's wishlist. should it remove the item from the wishlist (belonging to user A) when user B purchases it for them? I would like it to, but I'm not sure the module functions that way. On an additional note, I would also like to be given the option, as user B, to ship the item to user A (to whom the wishlist belongs). how big a deal would that be? anybody know how to make that happen? thanks, Brance
  6. I've just installed this contribution and I'm testing. I've run into a slight problem. it correctly adds items to a wishlist and sends the email properly, but when I visit wishlist_public.php and try to add an item to my cart I am simply sent to the index.php without having added the product. I tried a couple of different ideas and nothing panned out. I compared the form that wishlist_public.php creates to the one created by product_info.php and tried adding this code: , tep_get_all_get_params(array('action')) . 'action=add_product' but that didn't work either. it did send me to my cart instead of the index.php page, but it still didn't add the item to my cart. I know Dave (twoifbysea) has posted that he experienced the same issue, and I never saw a response to him. anyone have any ideas about this problem?
  7. Opposite problem, but thanks for the tip. I'm on a mac using os 10.4 and the mac os didn't see the file. I was looking for it directly on my computer. I opened the site (locally) in dreamweaver and it sees the .htaccess file. so it is there. I guess the mac os is hiding it for some reason. problem solved. thanks, B
  8. Thanks for this contribution. I'm working on integrating it with my site now. As I'm following the instructions, I couldn't find a .htaccess anywhere, I thought it was included in the /wpp_cert/ directory, but it's not there. is this something I'm supposed to create myself? thanks, Brance
×
×
  • Create New...