Announcement

Collapse
No announcement yet.

Problem with new Variables

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

    Problem with new Variables

    I've created a new variable against products to be able to mark a product as being a special offer. I then use that variable in a blockif to create a list of special offers to display in a scrolling list (final piece of that jigsaw - thanks Gabe!).

    However, the list is picking all fragments as well. Having done an export, it appears to be because the fragments all have an entry of "Standard Fragment Image" in the same column/field as the new variable. My code is then equating that as true and displaying.... well, there's nothing to display!

    It can be seen at :

    http://www.woodworkingcentreshop.co....Home_Page.html

    - it's the right hand of the two scrolling lists (the left hand list was an attempt to use the best seller or marketing list)

    the code I'm using is in a fragment on the page :

    Code:
     
    <actinic:block type="EntireSectionList" >
    <actinic:block type="ProductList" >
    <actinic:block if="%3cactinic%3avariable%20name%3d%22SpecialOffers%22%20%2f%3e%20%3d%3d%201" >
    <hr>
    &pound;[ProductPriceRaw]: [ProductName]<br> 
    <a href="Special_Offers.html"><img src="[ProductImageFileName]" alt="[ProductName]" title="[ProductName]" width="100" height="120" class="frameleft"></a>
    <br/>
    [ProductName]
    <br/>
    <s>£189.00<span class="incvat"> inc VAT</span><br></s>
    <br/>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%20%21%3d%200">
    <span class="productSpecialPrice">[PriceListRetail] inc VAT</span><br>
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3d%3d%200">
    <span class="productSpecialPrice">SORRY - It's sold!</span><br>
    </actinic:block>
    <hr>
    </actinic:block>
    </actinic:block> 
    </actinic:block>

    V8.5.1
    compacting of database done.


    Anyone else come across this before?

    regards

    Andy
    Elysium:Online - Official Accredited SellerDeck Partner
    SellerDeck Design, Build, Hosting & Promotion
    Based in rural Northants

    #2
    Amend the code to provide a diagnostic display of the variables used in those block if statments. That will let you see better what's happening.

    There are posts about detecting if an item is a Product List is a Product or Fragment.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Hi Norm

      sorry - should have thought of that.

      I've done it locally and it's hightlighted a problem with my fragments in the catalog - in the Layout tab, they all have layouts listed that relate to products e.g. Price Layout; Product Image Layout; Product Layout; PushButtonGrid. They even have Column Count For Attributes with a value of "Standard Fragment Image". Not sure that's how it should be.

      I need to revert back a couple of snapshots once I've done this testing so I'll do that now and see what it looks like there.

      thanks

      Andy
      Elysium:Online - Official Accredited SellerDeck Partner
      SellerDeck Design, Build, Hosting & Promotion
      Based in rural Northants

      Comment

      Working...
      X