Jump to content

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">

Share this post


Link to post
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.

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More