Liquid, JavaScript, themes, sales channels
Currently, I add a 'buy sample' button beneath the 'buy button' once it's rendered.
A click event on this button currently adds a single sample to the buybutton.js cart - this is working fine (sample is setup as a variant).
However, my client wants to set up a rule where customers can buy up to a maximum of 5 samples (these are posted in a box that can only fit up to 5 samples).
This order of samples will always cost £5, even if they decide to buy less than 5 samples due to the size of the box the sample come in and the associated postage fees.
Any help on this would be tremendously appreciated - open to using storefront API buybutton buy js etc...
Hi HolstDigital! Hope you are doing well!
Should the user, for example, be able to add 7 samples to the cart to place it as one order, but at the same time these products will be divided into two boxes by 5 and 2 samples and the price for it will be £10?
Hey Alex!
Thanks for the reply.
My client's happy with only giving customers the option to buy up to 5 samples. They don't really want users to order more than that.
Obviously, If a customer does want more, they can always do this through a separate checkout process.
Hope that helps?
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