concretecms-community-store / community_store

An open, free and community developed eCommerce system for Concrete CMS
https://concretecms-community-store.github.io/community_store/
MIT License
106 stars 66 forks source link

Set step of quantity inputs accordingly to current product settings #754

Closed mlocati closed 1 year ago

mlocati commented 1 year ago

When we say that a product has only integer quantities:

immagine

we still have that the browser lets them insert non-integer quantities:

immagine

With this change, the step attribute is dynamically updated accordingly to the value of the pAllowDecimalQty and pQtySteps input fields.

mlocati commented 1 year ago

When we say that a product has only integer quantities:

Whoops, wrong screenshot: the selected value is obviously "No"