We are using the new Behavioral triggers block and we are having an issue...
Most of the time, the product is showing twice. It appears to be showing the Master and Variant from the catalog. But I only need the Variant. I don't see a way of editing the block either. I'd be happy to create my own via AmpScript, but I am unsure how to convert the data column in the Abandoned Cart data extension to something I can use. Here's what it looks like:
I even tried taking the SSJS from the code and editing that. I didn't have much luck there either...
Has anyone had this issue?
Update: I was able to modify the code and add an if statement to limit this to just the IsVariant products. But I'd still much rather get to the root of this problem and use the out of the box block.
Update2: All of this is done by commerce cloud so I don't think it's the mismatch, although I haven't checked.
I do notice that I have master products and variants and the master is shared. Could that be an issue? See this screenshot.
I've added an example of the trackCart code for the product show below:
{"cart":[{"item":"a056g00000URaMoAAL","unique_id":"a046g00000PI0u9AAD","name":"Developing a Leading Edge Operations Strategy","url":"https://production-na01-mitsloanschoolexeced.demandware.net/s/MSEE/course/developing-a-leading-edge-operations-strategy/a046g00000PI0u9AAD.html","price":3900,"sale_price":3900,"item_type":"product"}],"url":"https://production-na01-mitsloanschoolexeced.demandware.net/s/MSEE/course/developing-a-leading-edge-operations-strategy/a056g00000URaMoAAL.html","user_info":{"email":"abXaUub0FMgVhW3HhHLDqkAvwz"}}
If it helps, I'll add that I am also getting a red ampscript/ssjs error when previewing if I add the ProductCode to the display.