News:

Support the VirtueMart project and become a member

Main Menu

Shopping Cart and Order/Stock Quantity Bug

Started by nileshkale, January 04, 2013, 11:13:35 AM

Previous topic - Next topic

nileshkale

Hello

I'm using Joomla! 2.5.8 and VM 2.0.16

I have one product with a custom field (type: Cart Variant, is a list:yes). The custom field is used to vary the price of the item (a room booking for a fixed date event) based on occupancy - single, double and triple.

I have set the inventory level to 5 and booked ordered level is 0 initially.

On the frontend when customer selects the product (one qty) and adds to the card the pop up shows with option to continue shopping. On clicking continue shopping & selecting the same product already in card, but this time by changing a attribute say to triple room, and adding say 6 qty).

BUG/PROBLEM?
1. VM does not now check the stock level to ensure that multiple items in the cart are for same product and there are actually only 5 available (where as 6 added in cart!).
2. VM allows the user to checkout and pay for order.

Is this a bug?
Please note that I'm not using stock variant plugin for custom field as the product is just one product (rooms) and only configuration decides the price - some may book single and other double or triple, hence i do *not* need the stocakble variant plug in as I do not have separate rooms for single, dbl or triple.

Thanks
Nilesh

Milbo

You should use dynamic childs, then you can exactly have what you want.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

nileshkale

Quote from: Milbo on January 04, 2013, 11:40:56 AM
You should use dynamic childs, then you can exactly have what you want.

Do you mean I should be using the custom field as Generic Child Variant or that my custom field of cart variant is correct, but I need to create one product with 2 child products. I would be thankful if you can clarify.