woocommerce / storefront

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

Fractional product quantity shown as 0 #2124

Closed olegabr closed 9 months ago

olegabr commented 10 months ago

https://github.com/woocommerce/storefront/blob/ee50498a7b9c1634fc01a71e85f9163cdd73a501/inc/woocommerce/storefront-woocommerce-template-functions.php#L93

If the product quantity is not an integer, like 0.5, then 0 is shown instead.

Solution: add a filter to replace the format string in plugins.

danieldudzic commented 9 months ago

Hi @olegabr,

We really appreciate you taking the time and creating this issue.

There is an investment of time needed by our team to consider the impact of addressing the fractional product quantity issue that you have raised. Because at this time, this does not fall into one of the criteria "buckets", we will go ahead and close it.