Guest revolvere Posted November 25, 2005 Share Posted November 25, 2005 Well I thank you both for your help on this, estelle and markscarts. Edit: Just found something, not sure if it's something I've done or a problem with your mod Estelle, but when I add an item to my cart it adds 2 of that item. Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 26, 2005 Share Posted November 26, 2005 Check over the changes you've made, and if you still can't figure out whats wrong then post a URL and i'll take a look. Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 26, 2005 Share Posted November 26, 2005 Thanks Estelle I need to start learning php - and obviously I never learned javascript that well But all's well that ends well. :wub: Quote Link to comment Share on other sites More sharing options...
Guest revolvere Posted November 27, 2005 Share Posted November 27, 2005 Hey Estelle, I was just about to post saying I couldn't figure it out until now I've just realised what I have. For some reason I must have duplicated a part of the php code by accident, causing it to add 2 items to my shopping cart. I did have this } else { $basket = $cart->add($_POST['add'],$quantity,""); } $basket = $cart->add($_POST['add'],$quantity,""); // start mod: redirect to basket (http://www.beadberry.com/cubemods) if($ccUserData[0]['customer_id']>0) { header("Location: cart.php?act=step2"); } else { header("Location: cart.php?act=cart"); } exit; // end mod: redirect to basket } Thanks, it's working now (http://slogmeat.com/shop/). Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 27, 2005 Share Posted November 27, 2005 Glad to hear its working Well done with your javascript efforts, Mark! I almost always find that simple things in javascript turn out to be painful, but its probably just coz i never really learnt it properly ;) Quote Link to comment Share on other sites More sharing options...
Guest revolvere Posted November 27, 2005 Share Posted November 27, 2005 Mark's effort was good, but the added value with the php method is that it won't matter if you change skins. Thanks anyway, I'm happy now. I guess the last thing is, is there an easy way to place a "continue shopping" link in the shopping cart page? Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 27, 2005 Share Posted November 27, 2005 This is what the "Previous Page" and "Homepage" links are for (although they are not very prominent!). If you want you could rename the "Homepage" link so that it instead says "Continue Shopping". Quote Link to comment Share on other sites More sharing options...
roban Posted November 28, 2005 Share Posted November 28, 2005 Mark's effort was good, but the added value with the php method is that it won't matter if you change skins. Thanks anyway, I'm happy now. I guess the last thing is, is there an easy way to place a "continue shopping" link in the shopping cart page? I added a 'continue shopping button' ask me how...I can't remember :alien: Quote Link to comment Share on other sites More sharing options...
Guest arrabalero Posted November 29, 2005 Share Posted November 29, 2005 estelle thanks a lot for that link. It really helped. Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 29, 2005 Share Posted November 29, 2005 No worries For anyone who doesn't want to wade through a 3 page thread, this is the link you want: Solution posted here Quote Link to comment Share on other sites More sharing options...
Guest woodbtreasures Posted November 30, 2005 Share Posted November 30, 2005 estelle- thank you, thank you, thank you, thank you.... Well you get the idea -jeremy Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 30, 2005 Share Posted November 30, 2005 For anyone who doesn't want to wade through a 3 page thread Good thinking, Estelle I have now edited my first post in this thread to show a link to your solution! */* Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 30, 2005 Share Posted November 30, 2005 Good thinking - Mark! :blink: Quote 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.