Hi,
I am trying to add am image next to the price of some products, but not others. This is to show which products are included in the “order total discount”. I need the image to appear next to items that belong to Product Group A but not Product Group B or unallocated products. I have tried to do this with a “Block If” but I am not sure how to apply this to a Product Group.
I’ve tried productGroupID == “A” etc... but it’s clearly not as simple as that.
("A" is the name given in Marketing > Product Groups under Group Name)
The attached image shows what I am trying to achieve.
Thanks for any help.
Lee
I am trying to add am image next to the price of some products, but not others. This is to show which products are included in the “order total discount”. I need the image to appear next to items that belong to Product Group A but not Product Group B or unallocated products. I have tried to do this with a “Block If” but I am not sure how to apply this to a Product Group.
I’ve tried productGroupID == “A” etc... but it’s clearly not as simple as that.
("A" is the name given in Marketing > Product Groups under Group Name)
Code:
<actinic:block if="%3cactinic%3avariable%20name%3d%22productGroupID%22%20%2f%3e%20%20%3d%3d%20%22A%22" > <span class="actxxsmall">(<img alt="Info" title="Price with 15% discount applied" src="info.jpg"> <actinic:block php="true"> $rawprice = <actinic:variable name="ProductPriceRaw" selectable="false" />; { $savepercent = ROUND(($rawprice - $rawprice * 0.15), 2); echo " £$savepercent)"; } </actinic:block> </span> </actinic:block>
Thanks for any help.
Lee
Comment