Link to product in Shopify-enabled replenishment flow

  • 11 February 2021
  • 1 reply

Badge +3

Hi everyone,

I have a replenishment flow built, and it’s working great except for one thing: I can’t get the product image and title to link to the product page. The image and title are populating correctly; it’s only the URL that doesn’t work. When constructed as in the code snippet seen here, it directs to the all-product page; it seems to be ignoring the {{ item.product.handle }} part of the code. Is that even the correct code to use?

I’m a Klaviyo/Shopify newb so I’m not really sure how this is done. 

Thanks in advance!

<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation">
<td style="text-align:center;"><a href="{{ organization.url }}products/{{ item.product.handle }}"> <img alt="{{ event.extra.line_items.0.product.title }}" border="0" src="{{ event.extra.line_items.0.product.images.0.src }}" style="width: 100%; max-width: 200px; height: auto; background: #ffffff; font-family: sans-serif; font-size: 15px; line-height: 15px; color: #555555; margin: auto; display: block;" width="200" /></a> </td>

Best answer by PaulApostu 12 February 2021, 12:14

View original

1 reply

Userlevel 1
Badge +3

Hi there,

Have you tried this?

href="{{ organization.url }}products/{{ event.extra.line_items.0.product.handle }}"