• Mino

    (@dlmino)


    Hey!

    I’ve been using your plugin for a while and recently noticed a issue that i think is easy to fix.

    The default WooCommerce behaviour for the end date of a sale is setting the ending hour to 23:59:59 so it ends right at the end of that day as you can see in the woocommerce code here: https://github.com/woocommerce/woocommerce/blob/759d903d925df7ec00e1693d179444ceb5112e8c/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php#L513

    However bulky does not set the ending hour in it’s code which makes the sale wrongly end at the start of the day of the end of the sale.

    I fixed this issue momentarily by changing the following line in “/bulky-bulk-edit-products-for-woo/admin/handle-product.php”

    $product->set_date_on_sale_to( $value );

    to this just like WooCommerce does it in it’s core:

    $product->set_date_on_sale_to( date( 'Y-m-d 23:59:59', strtotime( wc_clean( $value ) ) ) );

    Please consider changing this so we can have proper end of sale date behavior in this plugin as it’s crucial to how we interact with products on sale!

    Thank you for providing such a useful plugin for free! ??

    Best Regards

Viewing 1 replies (of 1 total)
  • Plugin Support villasupport

    (@villasupport)

    Hi,

    A new version was just released, please update the plugin and check again.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Issue regarding time of sale_price_dates_to’ is closed to new replies.