Maybe for someone it's easy to do, but I can not write well this code:
$("<div id='conferm'></div>")
.appendTo("#contact")
.html("<span>Your products is Add!<br>check your cart <a href='<?= $config->urls->root ?>cart'>here</a> or keep to shopping</span>")
The problem is the link not work, because the php $config->urls->root
doesn't print the URL but just print it like a text.
If I add this code inside my php page works well, but inside a js file not works.
How I can write it for let the link work well?
Thank you!