Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello, I would appreciate your help 🙂
Each product in the store has a metafield in which other products are stored.
I want the same products from the metafield to be displayed on the product page, and each of them will have an Add To Cart button.
For example:
*If there are no products in the metafields... one normal Add To Cart button will be displayed.
I just added this code:
In this file:
product-template.liqiud
Currently it only works on the first product.
When I click -> the product is added and a cart opens for me from the side. And that's how I want it to work.
The problem starts with the second product onwards -> when I click the button it takes me to the cart page.. and I don't want that to happen.
I would appreciate any help 🙂
Many thanks in advance!
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