Profillageret.dk Posted February 2, 2020 Share Posted February 2, 2020 Hello Guys, I am tryling to change my PRODUCT.TPL and add a link where SKU is a part of the URL. The problem is that most products has combinations, and the SKU is changing. How can I add the dynamic SKU to this link line ? <a aria-hidden="true" href="https://www.addon.com/widget/backlink/434443?sku=SKU-HERE" rel="nofollow"> Link to comment Share on other sites More sharing options...
Kogkalidis Posted February 6, 2020 Share Posted February 6, 2020 You can set the default <a aria-hidden="true" href="https://www.addon.com/widget/backlink/434443?sku={$default_combination_here}" rel="nofollow" data-link="https://www.addon.com/widget/backlink/434443?sku=" data-sku="{$default_combination_here}"> You will update the data-sku on each combination update and then combined with the data-link you will update the href. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now