Hi folks,
Currently working on a client site which as a list of product items - Item name, Price and Image (with popup window on hover)
They are running a special offer on certain products with a reduced price, so I want to show this on certain products with a simple ‘line-through’ the price. Now I have used the {if segment_*} on the actual single items pages to show the reduced price field no probs.
Obviously I cant do this on the listings page as they are all sat on the same segment (co.uk/products), so I thought I would try the {count} variable to target specific entries on that page….but I’ll be damned if I can get it to work!!
Really need some advice on this folks :( I have popped the snippet of code I currently have for testing purposes -
<div class="c-f">
<ul id="tooltips">
{exp:channel:entries category="{segment_to_category_id}" channel="bras" orderby="reorder" sort="asc" disable="categories|category_fields|member_data|pagination|trackbacks" dynamic="no" rdf="off"}
<li>
<span class="tooltip product{count}">
{product_image_tooltip}
<strong class="tooltip-title">{title}</strong>
<span class="tooltip-colours">
<span class="s-h-o"> Colours:</span> Available in {product_colours}{if {row_count} == {total_rows}} and {if:elseif {row_count} != 1}, {/if}{colour_name}{/product_colours}
</span>
{if count == '1'}
A Reduced Price
{if:else}
<span class="tooltip-price">£{product_price}</span>
{/if}
{if product_featured_message} <span class="tooltip-message">{product_featured_message}</span>{/if}
</span>
</li>
{/exp:channel:entries}
</ul>
</div><!-- .c-f -->