Parent product stock problem on Virtuemart 2.6.6
Posted: Wed Jun 04, 2014 11:56 am
Dear friends, if your shop is configured to use Parent products with no stock level and you only assigned the stock level to the child products, your add to cart functionality will not work and will give "out of stock" error message.
To solve this within Virtumeart 2.6.x you may need to edit:
\components\com_virtuemart\helpers\cart.php
comment this line (on my install it's line 732):
so it looks like this:
within
commenting the line solves the problem.
Best Regards,
Stan
To solve this within Virtumeart 2.6.x you may need to edit:
\components\com_virtuemart\helpers\cart.php
comment this line (on my install it's line 732):
- Code: Select all
$product = $product_model->getProduct($product->virtuemart_product_id);
so it looks like this:
- Code: Select all
// $product = $product_model->getProduct($product->virtuemart_product_id);
within
- Code: Select all
private function checkForQuantities($product, &$quantity=0,&$errorMsg ='') {
commenting the line solves the problem.
Best Regards,
Stan