Default quantity selector

Topic summary

  • Issue: Setting the default quantity to 6 for certain products made the quantity selector’s minus icon appear greyed out (as if disabled) even though it remained functional. Goal: keep the minus icon visually active so customers know they can reduce quantity.

  • Troubleshooting: Support requested the storefront URL and password to review the implementation. The merchant provided access credentials.

  • Solution: Support shared a replacement code snippet to adjust the minus icon’s styling/behavior. The merchant confirmed the fix worked.

  • Notes: A screenshot and code snippet were central to diagnosing and resolving the issue, but the exact code content isn’t visible in the provided text. Outcome: resolved; no further actions pending.

Summarized with AI on December 25. AI used: gpt-5.

I made the default quantity for certain product types 6. However, when this happens, the minus sign turns grey, but it is still functional. See the picture:

martijn18_0-1719927230082.png

I used this code for it:


How can I make it such that the minus sign does not turn grey such that customers can see that they can reduce the quantity?

Hi, Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.

Hi, store link is https://marwijn.com/

Password = help123

Thanks in advance!

Hi @martijn18 , You can change to code snippet below.


1 Like

Perfect, thank you so much!