Smart Product Filter & Search by Globo
Platmart Color Swatches works with Smart Product Filter & Search by Globo. Globo filters the collection, and swatches show each product’s color choices on the filtered cards.
On current versions of Globo there’s nothing to set up. Turn on the Collection swatches app embed, and swatches appear on collection pages and stay there when shoppers filter.
If swatches don’t appear
Section titled “If swatches don’t appear”Older versions and customized setups draw product cards from Globo’s own Liquid template, so swatches need a container in that template.
-
In your theme editor, open App embeds and check that Collection swatches is on.
-
Add this marker to the first line of
globo.filter.product.liquidso Globo keeps your edit instead of regenerating the file:{% comment %}Do not edit this file{% endcomment %} -
In the same file, add the swatch container where you want swatches to appear:
<div data-pl-swatches-collection data-product-id="{{ product.id }}" data-product-url="{{ product.url }}"></div>
Swatches now show on filtered collection pages.