I'd like to replace a link on the page with a dynamic link which pulls through the product's brand as a 3 letter acronym, so that I can then create specific html files with that brands size guide.. ie replace:
where SPY = the acronym for the Spyder brand.
I have put the value "product_brand" into the data layer of the page which is working correctly, I just don't know how to pull it into the content modification extension.
Any help on this would be gratefully received!
In the extension, if you add the following code snippet, and as long your website is running Jquery, this should do what you need it to do.
I took your requirements literally, so that all you are doing is replacing the anchor tag's href attribute with the replacement href, and that is what this code will do for you.
The code to put into the extension is below.
Hope this helps guide you in the right direction.