Globo Docs
Smart Product Filter & Search
Smart Product Filter & Search
  • Basic Knowledge
    • Getting Started
    • Integrate app to theme
    • Disable app from theme
  • Supported shopify themes
  • Sync Product Data
  • App pricing
  • Translate app to different languages
  • Filter sidebar management
    • Enable filter sidebar on search page
    • Show rating stars in filter sidebar
  • Use AND filtering condition in same filter option
  • Change filter tree style
  • Configure filter sidebar
    • Default filter sidebar
    • Create filter sidebar for specific collection
    • Disable filter sidebar for specific collection
    • Enable filter on search result page
  • Configure filter options
    • Add new filter option
    • Manage filter option values
      • Select filter option values manually
      • Select filter option values by value prefix
      • Delete a filter option value
    • Sort order of filter option values
      • Sort values alphabetically
      • Sort values manually
    • Delete filter option
  • Expand filter options by default
  • Hide matching product count in filter options
  • Color swatch for filter option
    • Show color swatch for filter option
    • Change color swatch shape & size
  • Configure collection data source
    • Add sub-collections to filter option
    • Display all collection values in filter option
  • Merge filter option values into group
  • Product Grid layout
    • Use theme product list layout
    • Use app product list layout
    • Customize app's product list template
  • Product Grid Management
    • Product variants under product card
      • Configure product variants underneath product cards
      • Change product variants shape
    • Hide specific products on collection & search page
    • Show product options under product cards
    • Show variants as separate products
  • Manage sorting products
    • Sort product order manually
    • Remove entire sort by dropdown
    • Enable/disable a sort option
    • Configure a default sorting option
  • Hide total number of products
  • Push sold-out products to bottom
  • Display in-stock products on top
  • Hide out-of-stock products
  • Manage paging style
  • Display chosen variant image after filtering
  • Search products on collection page
  • Product/variant metafields
    • Enable product metafield
  • Filter products by Metafield
  • Search products by Metafield
  • Sort products by Metafield
  • Year - Make - Model (YMM) form
    • Create YMM form
    • Configure YMM metafield values
    • Display values on YMM form
      • Select YMM values manually
      • Select YMM values by value prefix
  • Instant search widget
    • Enable instant search widget
    • Instant search widget layout
      • Customize instant search layout
      • Change product list style
    • Search for blog posts & pages
  • Manage search fields
  • Use Search Analytics
  • Synonyms settings
    • Configure Synonyms
    • Understanding synonym relationships
  • Configure pinning products
  • Configure search redirect
  • Show suggestion when no search result found
  • Show suggestions before typing
  • Recommendations
    • Add a recommendation section
  • Adjust number of products by screen size
  • Change recommendation widget name
  • App Integrations
    • Product review apps
  • Multi-language apps
  • Wishlist apps
  • Product Label apps
  • Multi-currencies apps
  • Other apps
  • Frequently Ask Questions
    • What happens after Trial ends?
Powered by GitBook
On this page
  • 1. Enable File Editing in the App Settings
  • 2. Access Your Theme's Code
  • 3. Create a new file
  • 4. Save Your Changes
  • 5. Add Code to the theme.liquid for customization to take effect
  • ⚠️ Important Notes:
  1. Product Grid layout

Customize app's product list template

PreviousUse app product list layoutNextProduct variants under product card

Last updated 15 days ago

​Customizing the product list template in your Shopify store allows you to tailor the appearance and functionality of your collection pages to better align with your brand and enhance the shopping experience. The Smart Product Filter & Search app facilitates this customization. Here's how to proceed:​

1. Enable File Editing in the App Settings

  • Open the Smart Product Filter & Search app from your Shopify admin panel.​

  • Navigate to the Settings section.​

  • Ensure that the option to allow file editing is enabled. This setting permits you to customize the app's files directly.

2. Access Your Theme's Code

  • From your Shopify admin, go to Online Store > Themes.​

  • Locate the theme you wish to edit and click on Edit code.​

3. Create a new file

  • In the Snippets directory, create the globo.filter.product.liquid file.​

  • Copy the code as screenshot below, then insert it into this new file.​

  • Proceed to make your desired customizations within this file.​

4. Save Your Changes

  • After completing your edits, click Save to apply them.

5. Add Code to the theme.liquid for customization to take effect

After customizing the template, you need to insert the following code into your theme.liquid file to ensure your changes render properly.

How to Add the Code:

  1. In your Shopify admin, go to Online Store → Themes.

  2. Click Actions → Edit Code.

  3. Open the theme.liquid file.

  4. Scroll to the bottom and find the </body> tag.

  5. Paste the following code right above the </body> tag:

{%- capture productTemplate -%}{% render 'globo.filter.product', themeTranslation: shop.metafields.globoFilter.themeTranslation.value[request.locale.iso_code] %}{%- endcapture -%}{%- unless productTemplate contains 'Liquid error' -%}<script id="gspfProduct" type="template/html">{{- productTemplate | replace: "script>", "scripttag>" -}}</script>{%- endunless -%} 
{%- capture treeTemplate -%}{% render 'globo.filter.tree' %}{%- endcapture -%}{%- unless treeTemplate contains 'Liquid error' -%}<script id="gspfFilterTree" type="template/html">{{- treeTemplate | replace: "script>", "scripttag>" -}}</script>{%- endunless -%} 
{%- capture sortTemplate -%}{% render 'globo.filter.sort' %}{%- endcapture -%}{%- unless sortTemplate contains 'Liquid error' -%}<script id="gspfFilterSort" type="template/html">{{- sortTemplate | replace: "script>", "scripttag>" -}}</script>{%- endunless -%} 
{%- capture searchTemplate -%}{% render 'globo.filter.search' %}{%- endcapture -%}{%- unless searchTemplate contains 'Liquid error' -%}<script id="gspfSearchResult" type="template/html">{{- searchTemplate | replace: "script>", "scripttag>" -}}</script>{%- endunless -%} 
{%- capture paginationTemplate -%}{% render 'globo.filter.pagination' %}{%- endcapture -%}{%- unless paginationTemplate contains 'Liquid error' -%}<script id="gspfPagination" type="template/html">{{- paginationTemplate | replace: "script>", "scripttag>" -}}</script>{%- endunless -%} 
{%- capture YMMTemplate -%}{% render 'globo.filter.form' %}{%- endcapture -%}{%- unless YMMTemplate contains 'Liquid error' -%}<script id="gspfForm" type="template/html">{{- YMMTemplate | replace: "script>", "scripttag>" -}}</script>{%- endunless -%}
  1. Click Save


⚠️ Important Notes:

  • Preventing Overwrites: The Do not edit this file comment ensures that the app does not overwrite your customizations when settings are changed within the app.

  • Editable Product Attributes: When customizing, you can utilize various product attributes, including:​

    • product.available​

    • product.collections

    • product.compare_at_price​

    • product.description​

    • product.featured_image​

    • product.first_available_variant​

    • product.handle​

    • product.id​

    • product.images​

    • product.options​

    • product.price​

    • product.price_max​

    • product.price_min​

    • product.price_varies

    • product.tags

    • product.template_suffix​

    • product.title​

    • product.product_type​

    • product.url​

    • product.variants​

    • product.vendor


💬 Need Help? Contact us at [email protected] – we’re happy to assist! 😊