Liquid, JavaScript, themes, sales channels
So I have a build a box type product built in vueJs within shopify. It contains 5 steps in which the user must choose the initial product being a card front. Inside the product, it becomes a build-a-box type product. The steps are as follows:
On the fifth step, I would like to have the gifts be other products listed on the store under a different collection/tag. I have the ability to show the information for all of the gifts on the final step, however, I do not know how to add multiple gifts to the cart from the initial box/card product customizer.
The gifts will have a different occupancy to them similar to blackbowgiftco.ca or shopboxfox.com.
I am hoping this is possible to complete without the use of a shopify app. Is there any way to save the product id to an array and process the gifts with the original card (and the line item properties) on a single add to cart button click?
You can use the Ajax API to add multiple items to the cart with one call. https://shopify.dev/docs/themes/ajax-api/reference/cart#post-cart-add-js
Thank you! My dev team and I had been working with it and it was giving a few errors, we finally got it working. Appreciate the fast response.
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024