shaun_imakr Posted October 15, 2014 Share Posted October 15, 2014 On one of the product in the home-featured box "Add to Cart" button is missing When I had a look to a code, I found this line as an IF statement for showing this button: {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} When I display all variables used in this condition, I'm getting this: So, obviously the problem can be either in $product.id_product_attribute or in $product.minimal_quantity which are different then other products in the box. I checked minimal quantity and it is set to 1, but I don't know for what $product.id_product_attribute is used for. The link is http://www.imakr.com/us/ Maybe useful fact is that the same product works fine in the main shop ( http://www.imakr.com ) but no in other 3 ( http://www.imakr.com/us/ or http://www.imakr.com/global/ or http://www.imakr.com/eu/ ) Link to comment Share on other sites More sharing options...
vekia Posted October 16, 2014 Share Posted October 16, 2014 $product.id_product_attribute is an id number of combination does this product contain default combination? can you check it? Link to comment Share on other sites More sharing options...
shaun_imakr Posted October 16, 2014 Author Share Posted October 16, 2014 Yes, it does. I tried to change it couple of times. I also tried to change minimum qty to bigger number and then to return it back to 1. But still no luck Link to comment Share on other sites More sharing options...
shaun_imakr Posted October 17, 2014 Author Share Posted October 17, 2014 I removed all product combinations and then it worked. After that I added only one and I still have "Add to Cart" button but it's faded (disabled) now. Link to comment Share on other sites More sharing options...
mickeyboy1 Posted October 20, 2014 Share Posted October 20, 2014 Did you add a quantity to the attribute Link to comment Share on other sites More sharing options...
Recommended Posts