Testing Product Cards
Steps to test new product cards in development environment.
In the theme.liquid file add the following.
<script type="text/template" id="frenzy_product_grid_widget">
{% render 'frenzy_product_grid_widget' %}
</script>
Add
window.frenzyProductGridWidgetCallBack
function to the filefrenzy-callback-function.liquid
.
window.frenzyProductGridWidgetCallBack = function(){
const getHHTML = document.querySelector('#frenzy_product_grid_widget');
return getHHTML.innerHTML;
}
Save your development Product Card HTML to snippets folder- Shopify Liquid File frenzy_product_grid_widget.liquid.
Once the testing is over, save the Product Card HTML to the Settings -> Product Grid Widget.
Last updated
Was this helpful?