Thanks for the module. The 0 Quantity is really an issue solved by this module (not by default, but by manual config).
If I have the xnumber Field disabled on the Default form-display-mode. The quantity input field is disabled on the cart:
// Do not allow to change the default quantity if the quantity widget
// is hidden on the 'Add to cart' form display.
'#disabled' => $attr['add_to_cart_quantity_hidden'],
Now - i want the quantity hidden on the add to cart form (doing this by css right now), but displayed (not disabled) in the cart.
This should be possible via config - not ?
Comments
Comment #2
ytsurkComment #3
drugan commentedA bit later I'll add an option whether to disable quantity on a Shopping cart or not. The main idea behind the decision was if you don't allow customer to change the quantity on the Add to cart then possibly you want to force them buy some particular quantity (default value).
Before I'll do the option you may resort by commenting out the line in your example.
Comment #5
drugan commentedDone. Please, update to 8.x-1.0-alpha3 or use dev version. Then disable the quantity on the /cart page for your needs.
https://github.com/drugan/commerce_xquantity#disable-on-cart
Note that it might be disabled not only on a Default form display mode but on the Add to cart, too. For example, you may expose the quantity on an Add to cart form but disallow customer to change their mind on the Shopping cart.
Comment #6
drugan commented@ytsurk
Not sure why but somehow I can't give a credit for you. Might be it because you did not specified attribution on your page?
Anyway, thank you!
Comment #8
drugan commentedAdjusted test to the changes