VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: PRO on October 13, 2011, 17:27:42 PM

Title: Minimum Purchase Quantity and Maximum Purchase Quantity Does Not Save
Post by: PRO on October 13, 2011, 17:27:42 PM
Goes back to zero on save.

the database has is like this
product_order_levels
Which stores it like  "100,1000"   for 100 minimum, and 1000 maximum

in admin/product/view.html

/* Get the minimum and maximum order levels */
            $min_order = 0;
            $max_order = 0;
            if(strstr($product->product_order_levels, ',')) {
               $order_levels = explode(',', $product->product_order_levels);
               $min_order = $order_levels[0];
               $max_order = $order_levels[1];
            }


I cant tell if thats correct or not
Title: Re: Minimum Purchase Quantity and Maximum Purchase Quantity Does Not Save
Post by: Milbo on October 13, 2011, 20:14:02 PM
is fixed in the svn, remember to use the table update tool, product table has been changed.

But I dont know if it works as expected, maybe it works for the cart, but not for product add and things like this, so you may test it closly, the better the examination and explanation, the better I can add the lacking things.