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

ytsurk created an issue. See original summary.

ytsurk’s picture

Issue summary: View changes
drugan’s picture

A 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.

  • drugan committed a3f47c4 on 8.x-1.x
    Issue #2939675 by ytsurk: Input on cart disabled
    
drugan’s picture

Version: 8.x-1.0-alpha2 » 8.x-1.0-alpha3
Status: Active » Fixed

Done. 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.

drugan’s picture

@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!

  • drugan committed b7350ba on 8.x-1.x
    Adjust the test to the #2939675 changes
    
drugan’s picture

Adjusted test to the changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.