Hi
I am using a modified CSS Product Layout and would like to switch off the add to cart button per product if there are attributes or components, such that customers can order simple products from a listings page, but have to go through to a extended info page if there are choices to be made. This is in order to keep the listings page compact.
I have tried the following without success.
I notice that the AttributeCount and ComponentCount vars are bold in the condition dialogue, whereas the vars in the outer block if (factory) are not bold.
Perhaps I cannot use the Count vars here, or is the wrong tree being barked up?
Many thanks, Dan
I am using a modified CSS Product Layout and would like to switch off the add to cart button per product if there are attributes or components, such that customers can order simple products from a listings page, but have to go through to a extended info page if there are choices to be made. This is in order to keep the listings page compact.
I have tried the following without success.
Code:
<actinic:variable name="IsAddToCartButtonShown" /> AND (<actinic:variable name="NumberAttributesInPushButtonGrid" /> == 0) (<actinic:variable name="AttributeCount" /> == 0) AND (<actinic:variable name="ComponentCount" /> == 0) <br /><actinic:variable name="AddToCartButton" /> [close block if] [close block if]
Perhaps I cannot use the Count vars here, or is the wrong tree being barked up?
Many thanks, Dan
Comment