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 :
V8.5.1
compacting of database done.
Anyone else come across this before?
regards
Andy
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> £[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
Comment