Jump to content

Add link containing SKU No


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...