Can someone see what is wrong here, i think i am going mad. Trying to show:
Price: (insert price)
or
From: (insert lowest price)
on a section link layout using the following code:
What am i doing wrong, save me from php hell please.
All it keeps doing is showing the Price: condition, even on price break products.
Price: (insert price)
or
From: (insert lowest price)
on a section link layout using the following code:
Code:
<actinic:block type="ProductList" ><actinic:block type="PriceList" ><actinic:block php="true" > $pricecount="<actinic:variable name="ListCount" />"; $priceindex="<actinic:variable name="ListIndex" />"; if (($priceindex == 1) && ($pricecount == $priceindex)) echo "Price: <actinic:variable name="PreFormattedPrice" value="Product Price Excluding Tax" /> (<actinic:variable name="ListIndex" />/<actinic:variable name="ListCount" />)"; elseif (($priceindex > 1) && ($pricecount == $priceindex)) echo "From: <actinic:variable name="PreFormattedPrice" value="Product Price Excluding Tax" /> (<actinic:variable name="ListIndex" />/<actinic:variable name="ListCount" />)"; </actinic:block></actinic:block></actinic:block>
All it keeps doing is showing the Price: condition, even on price break products.
Comment