Announcement

Collapse
No announcement yet.

Hiding Elements if Component Attributes are present

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

    Hiding Elements if Component Attributes are present

    Hi everyone,
    I'm redeveloping a site for client that we have at the moment and are implementing the Single Product Per Page option.

    Previously my client used two different templates to display whether a prodcut price displayed or not as his catalogue varied with products that have no attribute options to products which do.

    I am working on the Product Summary template at the moment and wanted to check whether it would be possible to hide the top level product price if the product uses component attributes.

    Thanks in advance for any help regarding this.
    Regards.

    Lee Jackson
    Creative Director

    Centurius Design & Marketing
    Centurius Website
    Portfolio of Work

    #2
    We do something similar on our website, were we take the price from the associated products. It makes it easier keeping prices up to date.

    Easiest way is probably to check if to see if "No order line for main product" is checked.
    Jethro

    TridentUK.com, the yacht and dinghy shop on the web

    Comment


      #3
      Try this:
      Code:
      <div <actinic:block type="ComponentList"><actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%201" >style="display:none;"</actinic:block></actinic:block>>
      	CODE TO HIDE IF COMPONENTS PRESENT
      </div>
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Norman,
        What are star. Exactly what I needed. Thanks again.
        Regards.

        Lee Jackson
        Creative Director

        Centurius Design & Marketing
        Centurius Website
        Portfolio of Work

        Comment

        Working...
        X