Announcement

Collapse
No announcement yet.

Can I identify a new product in a layout?

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

    Can I identify a new product in a layout?

    Hi,

    Similar to my last post ( See http://community.actinic.com/showthread.php?t=47537), I now want to put some special code in for new products.

    e.g blockif a new product

    add code

    end blockif

    I've tried looking through the variables available but there don't seem to be any to identify a product as a new product.
    Lance

    www.brightkidz.co.uk

    "High visibility clothing and accessories for children and adults"

    #2
    Not really straightforward, however the following works within a product layout:

    Code:
    <actinic:block php="true" >
        $thisProdRef = '<actinic:variable encoding="perl" name="ProductReference" selectable="false" />';
    <actinic:block type="NewProductsList" >
                if ('<actinic:variable encoding="perl" name="ProductReference" selectable="false" />' == $thisProdRef) {
                    echo 'NEW PRODUCT HTML';
                }        
            
        </actinic:block>
    </actinic:block>
    Fergus Weir - teclan ltd
    Ecommerce Digital Marketing

    SellerDeck Responsive Web Design

    SellerDeck Hosting
    SellerDeck Digital Marketing

    Comment


      #3
      Thanks for your help. That worked fine.
      Lance

      www.brightkidz.co.uk

      "High visibility clothing and accessories for children and adults"

      Comment

      Working...
      X