VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: paolo.tateo on December 27, 2012, 14:50:09 PM

Title: Bug prices children products
Post by: paolo.tateo on December 27, 2012, 14:50:09 PM
I must point out this problem with version 2.0.16 born

When I save a parent product, VirtueMart creates record price of € 0 for all the children, and these override the prices for the father.
Title: Re: Bug prices children products
Post by: paolo.tateo on January 03, 2013, 22:06:34 PM
I understand the problem better.

When there are multiple prices for different price lists, does not work the management of the product child prices.
If I save the product, the price of all the children becomes 0.

When instead there is only one list (only one group of customers) this problem does not occur.

Tested on 2.0.16a
Title: Re: Bug prices children products
Post by: paolo.tateo on January 03, 2013, 22:17:56 PM
Only one list price: (no bug)
(http://www.bindcommerce.com/images/vmbug/2012-01-03-1.png)

Two lists price: (bug)
(http://www.bindcommerce.com/images/vmbug/2012-01-03-2.png)
Title: Re: Bug prices children products
Post by: Milbo on January 04, 2013, 15:36:38 PM
crazy :-)
took me sometime to reproduce it. It works good, except you have a null price, then it is overwriten by 0.0. Hmmmm ... I take a look.
Title: Re: Bug prices children products
Post by: Milbo on January 04, 2013, 16:16:54 PM
thanks, I think I found a good solution.

Problem left is that if you open the child, then the price is again displayed. Grummel, grummel
fu php and their sloopy variable types. if ($bla=='0') is true for 0.00, okey lets do it with strcmp(), fu... the same

But should be managed now
delete a price to make a null price,.... if you want to overwrite the parent with a 0 price then use 0.0.

new c version is this evening. you was the last fix.
Title: Re: Bug prices children products
Post by: paolo.tateo on August 23, 2013, 15:27:26 PM
Thank you very much late!
I had not received notification of a reply!

Paolo