Skip to main content
Solved

Catalog Tag Inquiry

  • September 22, 2024
  • 2 replies
  • 23 views

Forum|alt.badge.img+1

Hi all,


Hope you're well. Hoping to get some answers about syntax. We have custom website. 

One of our trigger, “added to cart” will be triggered once every items is added to cart. Say, I have 5 products added to cart, there will be 5 events under my name showing I've added 5 items individually not all at once. While, we want to keep it that way, would there be any solutions I can get the products showing all at once in a dynamic table (for example showing 5 items in one email rather than showing just one item)?

This is the code we are using:

{% catalog event.sub_product_id unpublished="cancel" %}
[img]{{catalog_item.featured_image.full.src}}[/img]
Product Name: {{ catalog_item.title }}
Description: {{ catalog_item.description }}
Price: {% currency_format catalog_item.metadata|lookup:"price" %}
{% endcatalog %}

Thank you in advance. :)

Regards,
Layco

Best answer by ArpitBanjara

Hey @laycocupo 

Thanks for sharing this question with us.

This article contains some strategies you may find helpful to achieve your goal. However, Added to cart are individual events, so the flow will consider only the last added to cart event and will show the preview only for last added to cart event. (So maybe add filters like - has not been in the flow in X (30) days, to prevent profiles from entering the flow multiple times (5 times in your case) ).

on the contrary, “started checkout” event has the data for all the products in the cart, so we can fetch those products in the email, even if they are multiple products. 

I hope that’s helpful.

Cheers

Arpit

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

2 replies

ArpitBanjara
Principal User I
Forum|alt.badge.img+36
  • Principal User I
  • 371 replies
  • Answer
  • September 22, 2024

Hey @laycocupo 

Thanks for sharing this question with us.

This article contains some strategies you may find helpful to achieve your goal. However, Added to cart are individual events, so the flow will consider only the last added to cart event and will show the preview only for last added to cart event. (So maybe add filters like - has not been in the flow in X (30) days, to prevent profiles from entering the flow multiple times (5 times in your case) ).

on the contrary, “started checkout” event has the data for all the products in the cart, so we can fetch those products in the email, even if they are multiple products. 

I hope that’s helpful.

Cheers

Arpit


Forum|alt.badge.img+1
  • Author
  • Contributor I
  • 2 replies
  • September 26, 2024

Thank you, @ArpitBanjara! Will definitely consider this. :)


Reply