
Originally Posted by
Ajeh
To make the Add to Cart code not show when there are attributes, take out that code and change the one line:
Code:
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
to read:
Code:
if (zen_has_product_attributes($_GET['products_id']) || CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
and the Add to Cart button will not show ...
Thanks for steering me in the right direction. I actually had to change your replacement code to
Code:
if ((zen_has_product_attributes($_GET['products_id'])) || (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '')) {
It needed the brackets separating the conditions to get it to work.
Bookmarks