Search code examples
joomlajoomla1.5cartvirtuemart

Joomla 1.5, Virtuemart 1 - Products are not being added to the cart if they have attributes set in the "product status" section


I'm using Joomla 1.5 and Virtuemart 1. My problem is that products are not being added to the cart if they have attributes set in the "product status" section. Attributes would be extra toppings followed by a price. It works if there are no attributes for a product.


Solution

  • Comment the condition under \administrator\components\com_virtuemart\ps_product.php line no. 2356 or just find the following code in ps_product.php and comment 4th condition.

    if (USE_AS_CATALOGUE != 1 && $show_addtocart && isset( $GLOBALS['product_info'][$product_id]['price']['product_price_id'] ) /*&& !$this->product_has_attributes($product_id, true) */ )