Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I'm using the Spark theme. I have the Cart settings set to Fly-out. It works when I click "add to cart" on a product details page. However, I have a custom section that lists products in a grid, and I added the 'product-form' to it to add the 'add to cart' button to each product in the grid, however, the fly out menu does not work from my custom section. It always redirects to the cart page after adding to the cart. I'm using the exact same 'product-form' that the product details page is using. Not sure what I'm doing wrong, or if there's another setting somewhere that I'm missing
<div class="grid-uniform grid-link__container">
{%- for product in collections['new-arrivals'].products -%}
{%- assign grid_item_width = 'post-large--one-quarter medium--one-quarter small--one-half' -%}
<div class="grid__item {{ grid_item_width }}">
{% render 'product-item' with
product: product
%}
{%
render 'product-form' with
product: product,
current_variant: product.variants.first
%}
</div>
{%- endfor -%}
</div>
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024