Solved

Blocking Products from Reviews

  • 26 February 2021
  • 6 replies
  • 36 views

Badge

Curious if anyone has ran into this issue or has an idea for a workaround. 

All of the dropdown options for our products have SKU’s assigned to them for our inventory management system. 

We want to create a Product Review Flow, however, the drop down options are showing up as individual products in the Review Email. And since there is no actual product page for that product, the review link lands on a 404 papge.

We have attempted to add a minimum spent to trigger a review, but the drop down options are still showing up as our main products will always be well above a minimum we could set. 

Ideally if there was way to block a specific group of SKU’s from being pulled for the review emails that would work, but I don’t see options for that. 

 

 

icon

Best answer by caroline 2 March 2021, 17:37

Hi there,

If you have a list of SKUs that you don’t want to send these emails for, you may be able to bring them into Klaviyo via a web feed, and then add a snippet of code to your email template which would compare the current item’s SKU to that list of SKUs. If the current item’s SKU is found in the feed of SKUs, you could then cancel the email by creating a catalog lookup with “unpublished = cancel” for a product ID which does not exist (this will cancel the email).

Essentially something along the lines of the following pseudocode (with HideSKUs as the name of the web feed and assuming you don’t have a product in your catalog with the ID of 12345):

{% if item.SKU in feeds.HideSKUs %}

{% catalog 12345 unpublished=“cancel” %}

{% endcatalog %}

{% endif%}

Best,

Caroline

View original

6 replies

Userlevel 4
Badge +4

Hi there,

Thank you for sharing this experience with the Community! Would you be able to clarify which e-commerce platform you are using? This sounds like Magento but just want to be sure before I make any recommendations.

Best,

Caroline

Badge

Sorry about that, we are using Big Commerce.

Userlevel 4
Badge +4

Hi there,

Are the products that have the “dropdown” variants of products with options or are they just normal products that you’ve set to not be visible on your site?

Best,

Caroline

Badge

Our dropdown options are normal products that are active, but they are inside of an invisible category. 

 

 

Userlevel 4
Badge +4

Hi there,

If you have a list of SKUs that you don’t want to send these emails for, you may be able to bring them into Klaviyo via a web feed, and then add a snippet of code to your email template which would compare the current item’s SKU to that list of SKUs. If the current item’s SKU is found in the feed of SKUs, you could then cancel the email by creating a catalog lookup with “unpublished = cancel” for a product ID which does not exist (this will cancel the email).

Essentially something along the lines of the following pseudocode (with HideSKUs as the name of the web feed and assuming you don’t have a product in your catalog with the ID of 12345):

{% if item.SKU in feeds.HideSKUs %}

{% catalog 12345 unpublished=“cancel” %}

{% endcatalog %}

{% endif%}

Best,

Caroline

Badge

Thanks for your help Caroline, we will look into this and see if we can get it to work. I appreciate your time and help! 

 

 

Reply