woocommerce / storefront

Official theme for WooCommerce
https://wordpress.org/themes/storefront/
960 stars 472 forks source link

Single Product Page > Maybe Hide Quantity Selector #2085

Closed barryhughes closed 1 year ago

barryhughes commented 1 year ago

Is your feature request related to a problem? Please describe.

In WooCommerce 7.2 we changed the way product quantity selectors render. As part of this change, we began rendering the quantity selector even when a product is set to be sold individually ... however, there was considerable resistance to this change.

Subsequently, we decided to restore the previous behavior. The preferred way of doing this, though, is now via CSS rather than setting the input type to hidden.

Describe the solution you'd like

We have already made the necessary change within WooCommerce core. However, since Storefront deqeues the default WooCommere stylesheet we need to echo the same change within Storefront.

Describe alternatives you've considered

We don't necessarily need to do anything, but the volume of recent feedback we received over in the core WooCommerce repo suggests making a change to Storefront may be wise.

Additional context

This change is only applicable to the single product page and not to other pages.

barryhughes commented 1 year ago

No longer required, following a further change in WC Core (see WC#36340).