Skip to main content
Contributor I
September 22, 2024
Solved

Catalog Tag Inquiry

  • September 22, 2024
  • 2 replies
  • 85 views

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

    This topic has been closed for replies.
    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

    2 replies

    ArpitBanjara
    Principal User II
    Principal User II
    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

    Arpit Banjara - Lead Email Marketing Specialist at Flowium
    laycocupoAuthor
    Contributor I
    September 26, 2024

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