0
Hello, I’m putting a script from Zanox on my site to retarget products in an e-commerce.
When I put the script to pull isolated variables everything works, but when I need to pull the variables inside an array, it doesn’t work.
Follow the script that’s right:
<script type="text/javascript">
var zx_identifier = "<%=RSProdutoDetalhe("Codigo")%>",
var zx_fn = "<%=RSProdutoDetalhe("Nome")%>",
var zx_category = "<%=RSProdutoDetalhe("Categoria")%>"
</script>
Follow the script that is wrong:
<script type="text/javascript">
var zx_products = [{
"zx_identifier" : "<%=RSProdutoDetalhe("Codigo")%>",
"zx_amount" : "<%=PrecoProdutoCarrinho%>",
"zx_currency" : "BRL",
"zx_quantity" : "<%=RSPedidoTempGrade("Quantidade")%>"
}];
</script>
Then you would need to make a loop to pick up any products from the page within that array
Can someone help me? Thank you
Which error is generated?
– BrTkCa
¿it would not have to be "zx_amount":"<%=Precoproductocarrinho("Preco")%>"
– user31050
The language used among the tokens
<%=
and%>
is PHP or something? I don’t know this Zanox...– Wtrmute