mesper
08/18/2025, 9:44 AMSteve Goldberg
08/18/2025, 10:33 AMSteve Goldberg
08/18/2025, 10:37 AMstep
attribute (eg step="5"
). This naturally forces validation/increases of 5.
• beforeAddToCart should have a listener put on it that validates the value and returns an error if it's not a multiple of 5
• Additional text should be added just above the input to say that it should be multiples 5
• If you want to go even further, you can add validation on the server side to prevent orders for lines that aren't the right multiplesmesper
08/18/2025, 2:45 PM