Announcement

Collapse
No announcement yet.

Hiding Summary Add to Cart using Attribute Variables

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hiding Summary Add to Cart using Attribute Variables

    Hi everyone,
    I know this is a very common topic however what I am looking for is a slightly different approach (I think).

    We have a client who is using SPP so we have amended the product summary layout so that the product displays in 3 columns. What we found was that when an attribute is applied to a product then the value is also applied to the summary layout causing mis-aligment issues. Our dev site can be found here

    I can hide the attribute layout within the template however I need to hide the add to cart button option as this would simple by-pass the attribute option when applied the details to the cart. What I wanted to see was if anyone could suggest a way where the add to cart button could auto hide itself if any attribute variable is present.

    I have tried ideas such as
    Code:
    AttributeDisplayName != ""
    but nothing seems to work. If anyone has any suggestions that would be great.

    The last resort would be to create a new summary layout removing the add to cart and attribute layout. The client would then need to apply the specific layout to the specific prouct which has attributes.
    Regards.

    Lee Jackson
    Creative Director

    Centurius Design & Marketing
    Centurius Website
    Portfolio of Work

    #2
    Pseudo untested code as I'm away from an Actinic system:
    Code:
    <div 
    <actinic:block type="AttributeList">
      BlockIf ListIndex == 1
        style="display:none"
      Endif
    </actinic:block>
    <actinic:block type="AttributeList">
      BlockIf ListIndex == 1
        style="display:none"
      Endif
    </actinic:block>
    >
    CART BUTTON
    </div>
    This should put a <div> around the Cart code and set said div to style="display:none" if there are attributes or Components.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Norman,
      That did the trick!!!! Once again thanks for your help. Top man.
      Regards.

      Lee Jackson
      Creative Director

      Centurius Design & Marketing
      Centurius Website
      Portfolio of Work

      Comment

      Working...
      X