Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2004
    Posts
    46
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Mar 2004
    Posts
    46
    Plugin Contributions
    0

    Default 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?

  3. #3
    Join Date
    Mar 2004
    Posts
    46
    Plugin Contributions
    0

    Default Re: adding a remove item button from checkout sidebox

    nobody?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: adding a remove item button from checkout sidebox

    Quote Originally Posted by buuurrb View Post
    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.
    Quote Originally Posted by buuurrb View Post
    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 ...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Mar 2004
    Posts
    46
    Plugin Contributions
    0

    Default Re: adding a remove item button from checkout sidebox

    Quote Originally Posted by DrByte View Post
    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?

  6. #6
    Join Date
    Mar 2004
    Posts
    46
    Plugin Contributions
    0

    Default Re: adding a remove item button from checkout sidebox

    For some reason its not working... i added the form field and everything... any ideas?

  7. #7
    Join Date
    Mar 2004
    Posts
    46
    Plugin Contributions
    0

    Default Re: adding a remove item button from checkout sidebox

    still cant figure it out....

 

 

Similar Threads

  1. Remove Continue checkout button from step 2 of 3
    By barendfaber in forum General Questions
    Replies: 0
    Last Post: 21 Feb 2012, 09:42 AM
  2. Remove PayPal checkout Button from Shopping Cart page
    By jld in forum PayPal Express Checkout support
    Replies: 14
    Last Post: 26 Feb 2011, 09:57 PM
  3. Adding item to cart from a button outside of the store.
    By dwolfe in forum General Questions
    Replies: 1
    Last Post: 27 Jan 2011, 02:38 PM
  4. How to remove "test" item from bestseller sidebox?
    By wshelley in forum General Questions
    Replies: 2
    Last Post: 4 Jul 2009, 05:46 AM
  5. Remove item/button from Product Page
    By bjmhistory in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 25 Feb 2007, 09:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR