VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: chri.mus on February 28, 2013, 17:48:15 PM

Title: Problem with ordered products (only children products)
Post by: chri.mus on February 28, 2013, 17:48:15 PM
Hello to all,
I am writing to describe a problem with children products.
My environment is virtuemart joomla 2.0.10 and 2.5.4. However, I also tried with the latest version of virtuemart 2.0.18a and the problem persists.

suppose in my store I have a product with quantity 2.
suppose also that a purchase is made by a customer for this product with quantity 1.
In the ordered products is correctly set the quantity to 1.
At the next purchase of the same product, if you enter quantity 2, it returns a message indicating that the maximum number of products purchased is 1.
That's all correct.

This same example, made ​​of a child product, causes the following problem:
At the time of the second purchase, inserting 2, please note 2 as quantity, virtuemart allows the purchase but in the stock had been only 1 of same product.
I noticed that the problem is on the calculation of the difference between products in stock and ordered products is carried out as follows:
stock chields product - parent product ordered instead of
stock chields product - child product ordered

In practice, the system calculates the stocks of products without count of child products ordered.
Is there a way to fix this?
I hope someone can help me otherwise it is useless to the implementation of virtuemart products child products.

Thank you all.
Title: Re: Problem with ordered products (only children products)
Post by: chri.mus on March 01, 2013, 11:58:36 AM
Anybody for this problem?

If you don't understand what i have described above, tell me so I can explain the problem better.

Thank you.
Title: Re: Problem with ordered products (only children products)
Post by: Milbo on March 02, 2013, 22:25:08 PM
Interesting problem, never noticed it. I will take a look.