Jump to content

Linking Add to Basket to Cart


Guest paulabakerparkin

Recommended Posts

Guest revolvere

Well I thank you both for your help on this, estelle and markscarts. :wub:

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.

Link to comment
Share on other sites

Guest revolvere

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/).

Link to comment
Share on other sites

Guest estelle

Glad to hear its working :w00t:

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 ;)

Link to comment
Share on other sites

Guest revolvere

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?

Link to comment
Share on other sites

Guest estelle

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".

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...