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…