Skip to main content
Solved

Link to product in Shopify-enabled replenishment flow

  • February 11, 2021
  • 1 reply
  • 496 views

ajohns
Problem Solver I
Forum|alt.badge.img+6
  • Problem Solver I
  • 5 replies

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">
	<tr>
		<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>
	</tr>
</table>

Best answer by PaulApostu

Hi there,

Have you tried this?

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



 

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

PaulApostu
Partner - Gold
Forum|alt.badge.img+4
  • Partner - Gold
  • 4 replies
  • Answer
  • February 12, 2021

Hi there,

Have you tried this?

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