Jump to content

product_attribute?


Recommended Posts

What is product_attribute?

I've only got the default products installed and the values are 0 and null for every product except one:


Belkin Leather Folio for iPod nano - Black / Chocolate


This in phpmyadmin has a cache_default_attribute of 8, which means, despite being out of stock it's displaying a buy now button on the product list page, due to this line of code:

{if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}




I could of course just do this:

{if ($product.id_product_attribute == 0 || $product.id_product_attribute == 8 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}



But I think it'd be wiser to know what it actually is referring to.

Cheers in advance!

Link to comment
Share on other sites

×
×
  • Create New...