I am displaying different product variant titles in an abandoned cart email but when a product has no variant, it displays "Default Title" where the variant normally goes. How can I hide this?
Solved
Deafult title problem at product variants
Best answer by Taylor Tarpley
Hi there
Thanks for sharing your question with us, happy to help!
The "Default Title" variant is is built as a hidden placeholder in a store’s backend for any item that was not given a variant title, and therefore automatically synced to Klaviyo.
While there is no way to prevent or purge just these “Default Title” items, you can use our if-else tags to filter them out of templates. For example, within a template with the catalog lookup tag, you can use the following syntax to skip over any items titled "Default Title":
{% if catalog_item.variant.title != 'Default Title' %} {{ catalog_item.variant.title }} {% endif %}
Thanks for participating in the Community!
-Taylor
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.