VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: aravot on September 05, 2007, 05:01:33 AM

Title: [NOT BUG] Adding 0 product should not be allowed
Post by: aravot on September 05, 2007, 05:01:33 AM
When trying to add 0 product or not selecting a child product a message is displayed (see image) however the message has the option to add to cart, once the add to cart button is pressed 'Your cart is currently empty' message is displayed (see image), I think the add to cart button shouldn't be there if no product quantity or variant is not selected 

(http://www.filefarmer.com/aravot/joomla/vm/vm921-emptycart-notice.gif)

(http://www.filefarmer.com/aravot/joomla/vm/vm921-emptycart.gif)
Title: Re: Adding 0 product should not be allowed
Post by: macallf on September 05, 2007, 05:06:54 AM
Then that would have to happen for all pages.

With the add to cart with child lists with one add to cart you can select 0 to clear a product in the cart. Because in this mode it updates the cart, it does not add.

You would also have to many inline js to test for none 0 quantity to enable the addtocart button. The message is quite clear. You have to have a quantity to add a product variant to the cart, it is just a tip. You selected add to cart but you didn't enter a quantity to add.

By the way the message does not have "an add to cart button" it has a button to display the cart!
Title: Re: Adding 0 product should not be allowed
Post by: aravot on September 05, 2007, 05:12:28 AM
Quote from: macallf on September 05, 2007, 05:06:54 AM
By the way the message does not have "an add to cart button" it has a button to display the cart!

That is what I meant.
Title: Re: Adding 0 product should not be allowed
Post by: macallf on September 05, 2007, 05:14:55 AM
My previous post still applies!

Just because you haven't select a product variant or actually added anything to the cart, you may have other items in your cart. So thae ability to display the cart from here is still valid.

Mark
Title: Re: Adding 0 product should not be allowed
Post by: aravot on September 05, 2007, 05:19:20 AM
That makes sense didn't think about it thanks for clarifying.