Remove option enabled by default, or add setting option
-
Currently, the Bulk Discount option is applied by default to all new products; this results in users seeing inappropriate (Incl. 0% discount applied) promo messages on any products without bulk discount enabled, and creates unnecessary work on the part of site admins. This becomes big problem for any automatically generated products (either by external API or internal generation tools). Bulk Discounts should be disabled by default, and need to be explicitly enabled by an admin or API when creating a product.
It’s a pretty quick change on line 633 of woocommerce-bulk-discount.php
Change:
woocommerce_wp_checkbox( array( 'id' => '_bulkdiscount_enabled', 'value' => get_post_meta( $thepostid, '_bulkdiscount_enabled', true ) ? get_post_meta( $thepostid, '_bulkdiscount_enabled', true ) : 'yes', 'label' => __( 'Bulk Discount enabled', 'wc_bulk_discount' ) ) );
To:
woocommerce_wp_checkbox( array( 'id' => '_bulkdiscount_enabled', 'value' => get_post_meta( $thepostid, '_bulkdiscount_enabled', true ) ? get_post_meta( $thepostid, '_bulkdiscount_enabled', true ) : 'no', 'label' => __( 'Bulk Discount enabled', 'wc_bulk_discount' )) );
https://www.ads-software.com/plugins/woocommerce-bulk-discount/
- The topic ‘Remove option enabled by default, or add setting option’ is closed to new replies.