I'm using prestashop as a cms and i want to display specific products on a page.
I found a module to do so by writing for example this line of code : [ph-product-cms id="1"]
which will be converted at the execution into many lines of code with multiple quotes to display the products
The thing is when i try to use innerhtml like this : document.getElementsByClassName('test0 prod')[0].innerHTML = "[ph-product-cms id="1"]";
it shows Uncaught SyntaxError : Unexpected identifier
I tried single quotes but it doesn't work either.
elements.*" - that's usually not what you want. – Bergi Apr 04 '22 at 14:20