Basket items with zero quantities

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
isaacdiaz74
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Fri Dec 19, 2008 2:15 pm

Basket items with zero quantities

Post by isaacdiaz74 » Wed Sep 01, 2010 1:41 pm

We are customizing a site and I need to support basket items with quantity of zero.

When I set the quantity to zero and save the basket Item it deletes the item from the basket. Is there a way to save a basket item with quantity of zero?

What options do I have?

Thanks.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Basket items with zero quantities

Post by mazhar » Thu Sep 02, 2010 12:59 am

I don't think so that you could make basket item stay in the basket with quantity zero. BTW what is the desired functionality that you want to achieve by setting quantity to zero.

isaacdiaz74
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Fri Dec 19, 2008 2:15 pm

Re: Basket items with zero quantities

Post by isaacdiaz74 » Thu Sep 02, 2010 10:48 am

Thank you mazhar. I was afraid this would be the answer.

The user can edit old baskets and set items to zero but we want to keep the item in the basket for historical purposes. We are migrating from an existing system and that's how they have been handling it with their clients forever. So it is important for my client.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Basket items with zero quantities

Post by mazhar » Fri Sep 03, 2010 4:12 am

If you need to maintain the history of items been added to basket then perhaps you should create some extra table in database with desired fields. Then maintain history of items being added to basket in new table via inserting records into it. Finally if you need to show a customer history of his/her cart then you need to create some customer to page to list their cart history.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Basket items with zero quantities

Post by AbleMods » Fri Sep 03, 2010 1:13 pm

You might try copying the basket items into a (new) wishlist during the checkout process - I don't think the wishlist cares about quantity like the basket code does.

And AC7 supports multiple wishlists per-user in the code, it's just not implemented in the pages. You're left with just having to make a page that lets the shoppers manage multiple wishlists and load items back into the basket.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply