SA Request a Quote, Hide Price
Keep SA Request a Quote, Hide Price working correctly on product cards inside the filtered product grid.
What this does
SA Request a Quote normally attaches its “request a quote” button (and price-hiding logic) to a product card once, when the page first loads. Because Smart Product Filter & Search re-renders product cards every time a shopper filters, sorts, or paginates, it needs to be re-attached on each refresh — otherwise it stops working after the first interaction. This app also needs two snippets added to your theme.
Turn on the integration
- In the app, go to Settings > Integration, find SA Request a Quote, and turn on Enable integration.
Add the theme snippets
- Go to Online Store > Themes > Edit code.
- Open
snippets/globo.filter.product.liquid(see Customize the app’s product list template if this file doesn’t exist yet) and add:
<script data-id="{{product.id}}" id="rfq-collection-script-{{product.id}}" class="rfq-collection-script"> var GRFQCollection = GRFQCollection || {}; GRFQCollection[{{product.id}}] = {{ product | json }}; GRFQCollection[{{product.id}}]['collection'] = []; {% for collection in product.collections %} GRFQCollection[{{product.id}}]["collection"].push('{{ collection.id }}'); {% endfor %}</script>- Open
theme.liquidand add this below the{% include 'rfq_script' %}line:
<script> window.addEventListener('globoFilterRenderCompleted', function () { if (typeof GRFQApp != "undefined") { GRFQApp.init(GRFQApp.$); } });</script>- Save.
Related pages
Was this helpful?
Thanks for your feedback! Tell us what was missing
Report an issue