Amount of products – NOT whole numbers
-
Hello,
I have an eshop on Flatome theme where the customer should by able to order for example 1,26 pieces of my product, simply: It doesn’t have to be the whole number, it could be anything. How is this possible in Woocommerce?
I have read an advice to add this to function.php:remove_filter( 'woocommerce_stock_amount', 'absint' ); add_filter( 'woocommerce_stock_amount', 'floatval' );
But is does’t work, where is the problem?
Thank you
- The topic ‘Amount of products – NOT whole numbers’ is closed to new replies.