Hi,
I;m trying to get a dynamic "Add to cart" button to work.
This is the button code in the transformation:
<uc1:CartItemSelector id="cartItemSelector" runat="server" SKUID='<%# ValidationHelper.GetInteger(Eval("SKUID"), 0) %>' SKUEnabled='<%# ValidationHelper.GetBoolean(Eval("SKUEnabled"), false) %>' ShowProductOptions="false" AddToCartImageButton="add-to-cart-black.png" />
I would like each product to have a different "Add to cart" image.
Example: add-to-cart-black.png, add-to-cart-red.png , add-to-cart-orange.png...
I tried this:
<uc1:CartItemSelector id="cartItemSelector" runat="server" SKUID='<%# ValidationHelper.GetInteger(Eval("SKUID"), 0) %>' SKUEnabled='<%# ValidationHelper.GetBoolean(Eval("SKUEnabled"), false) %>' ShowProductOptions="false" AddToCartImageButton="add-to-cart-<%# HTMLEncode(ResHelper.LocalizeString(Convert.ToString(Eval("SKUName")))) %> .png" />
but i get an error:
[CMSDataProperties.LoadTransformation]: The server tag is not well formed.
How can I make this work?
Thanks :)