• Resolved yoonlaserwp23

    (@yoonlaserwp23)


    Hello,

    I would like to change the sale end time to 22:00:00 on the scheduled date. How can I do that without scheduler plugin?

    I tried to modify woocommerce > include > admin > meta-boxes > class-wc-meta-box-product-data.php and changed the line #382 and line #530

    $date_on_sale_to = date( ‘Y-m-d 23:59:59‘, strtotime( $date_on_sale_to ) )

    to be like 10 minutes after the testing time, so the sale ends at the time, but the ‘sale’ price left instead of the ‘regular’ price after the time is up.

    So wonder if it’s possible to change the ending time as I want, and what caused the sale price left instead of the regular price after the sale ends?

    Also, was this the right part to edit to make the sale end time to be changed?

    $date_on_sale_to = date( ‘Y-m-d 23:59:59‘, strtotime( $date_on_sale_to ) )

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘set the sale end time to 22:00:00 instead of 23:59:59’ is closed to new replies.