Forums / Basic Configuration / adding a remove item button from checkout sidebox

adding a remove item button from checkout sidebox

Locked
Results 1 to 7 of 7
This thread is locked. New replies are disabled.
10 Aug 2007, 04:28
#1
buuurrb avatar

buuurrb

New Zenner

Join Date:
Mar 2004
Posts:
46
Plugin Contributions:
1

adding a remove item button from checkout sidebox

So im trying to add the "remove item" button in the checkout sidebox. I finally added it, but say if I have 2 units of one item, it removes both of them instead of removing just 1 unit.

here is the link for reference...

http://dormitude.com/store/index.php

on a sidenote, is there any posibility to incorporate the whole checkout process in the sidebox??

Thanks!!

ps: hows the site looking so far?
10 Aug 2007, 04:41
#2
buuurrb avatar

buuurrb

New Zenner

Join Date:
Mar 2004
Posts:
46
Plugin Contributions:
1

Re: adding a remove item button from checkout sidebox

oh and when a product is removed, can i make it go back to the index page?
11 Aug 2007, 02:23
#3
buuurrb avatar

buuurrb

New Zenner

Join Date:
Mar 2004
Posts:
46
Plugin Contributions:
1

Re: adding a remove item button from checkout sidebox

nobody?
11 Aug 2007, 05:56
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: adding a remove item button from checkout sidebox

buuurrb:

So im trying to add the "remove item" button in the checkout sidebox. I finally added it, but say if I have 2 units of one item, it removes both of them instead of removing just 1 unit.


buuurrb:

oh and when a product is removed, can i make it go back to the index page?


Sounds like you don't want a "remove", but rather an "update" option.
So, the process would go something like this:
a. you need to create a form, instead of just a clickable A HREF (see the real shopping cart page as an example)
NOTE: A separate form needs to surround each product in the sidebox, complete with its own submit button, etc.
b. set the form action to point to FILENAME_DEFAULT instead of FILENAME_SHOPPING_CART (so goes to index page)
c. you'll notice that the shopping-cart example uses "update_quantity" instead of "remove_product" for its cart action, so follow that example.
d. make the qty field a hidden field so it's not visible, but also set its value to be 1 less than the current "real" qty
Now, when they click on the form's submit button, it'll do the update.

Hope that helps ...
13 Aug 2007, 03:20
#5
buuurrb avatar

buuurrb

New Zenner

Join Date:
Mar 2004
Posts:
46
Plugin Contributions:
1

Re: adding a remove item button from checkout sidebox

DrByte:

Sounds like you don't want a "remove", but rather an "update" option.
So, the process would go something like this:
a. you need to create a form, instead of just a clickable A HREF (see the real shopping cart page as an example)
NOTE: A separate form needs to surround each product in the sidebox, complete with its own submit button, etc.
b. set the form action to point to FILENAME_DEFAULT instead of FILENAME_SHOPPING_CART (so goes to index page)
c. you'll notice that the shopping-cart example uses "update_quantity" instead of "remove_product" for its cart action, so follow that example.
d. make the qty field a hidden field so it's not visible, but also set its value to be 1 less than the current "real" qty
Now, when they click on the form's submit button, it'll do the update.

Hope that helps ...


great idea!! im gonna start working on this soon!! thanks! also is there a way to get the whole cart into the reciept looking type of thing?
13 Aug 2007, 21:54
#6
buuurrb avatar

buuurrb

New Zenner

Join Date:
Mar 2004
Posts:
46
Plugin Contributions:
1

Re: adding a remove item button from checkout sidebox

For some reason its not working... i added the form field and everything... any ideas?
16 Aug 2007, 18:11
#7
buuurrb avatar

buuurrb

New Zenner

Join Date:
Mar 2004
Posts:
46
Plugin Contributions:
1

Re: adding a remove item button from checkout sidebox

still cant figure it out....