Hi Guys,Just looking for help in formatting a macro results, I have this for loop for current shopping cart and want to create an array with bracket separators between the items in the basket, so looking to get a result like:@ItemNames@: [@Winnie the Pooh@, @A Tale of Two Cities@],
I have setup this macro :@ItemNames@: [@{% foreach(cartItem in ECommerceContext.CurrentShoppingCart.CartProducts){+ cartItem.SKU.SKUName + @,@} #%}@],
But cannot figure out how to apply to be able to get the brackets to enclosed each item, currently it only does the whole string:@ItemNames@: [@Winnie the Pooh, A Tale of Two Cities@],
Can you advise how I can change this so it works as I require please?Regards
Les
↧