• Resolved abbeycrombie

    (@abbeycrombie)


    Hi,

    Currently we are able to select a date, but I was wondering if it’s possible to be able to set up a specific time for products to become available. My new product sales usually begin at around 7pm CST.

    Thank you for your time!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Mohaiminul Islam

    (@skshaikat)

    Please do the following,

    1. Replace the following line

    wp_schedule_event( time(), 'twicedaily', 'wup_expired_upcoming_product' );

    by

    wp_schedule_event( time('07:00:00'), 'daily', 'wup_expired_upcoming_product' );

    probably line number 116 and 160 in woocommerce-upcoming-product.php.

    2. Deactivate the plugin.
    3. Activate the plugin.

    Hope this will work for you.

    Thank you.

    Plugin Author Mohaiminul Islam

    (@skshaikat)

    I am resolving this issue. please let me know if you have any further problems.

    thanks.

    Thread Starter abbeycrombie

    (@abbeycrombie)

    Hi, I made the changes but it won’t allow me to select today’s date to see if it will work. Is there any thing I can change to allow for this? Thank you.

    EDIT: It wouldn’t allow me to select it from the calendar pop up, but I was able to manually enter it. I will test now to see if it will go available on the time I specified. Thank you.

    • This reply was modified 7 years, 8 months ago by abbeycrombie.
    Thread Starter abbeycrombie

    (@abbeycrombie)

    Hi, I am not sure if it is working. Could it be because I couldn’t select it from the drop down and manually entered the date? It is July 1 10AM here and I set the time to 10:43:00 and it has not switched over to available yet as of 10:45 AM.

    • This reply was modified 7 years, 8 months ago by abbeycrombie.
    Plugin Author Mohaiminul Islam

    (@skshaikat)

    Hi, you can try this plugin to manually run the cron wup_expired_upcoming_product. And input the date manually with correct format is not a problem.
    Please let me know the update.

    Thank you.

    Thread Starter abbeycrombie

    (@abbeycrombie)

    Hi there, the product went available so I think this is working. Just one more question though. If I set the time to, for example, 07:00:00, would this make the product available at 7AM or 7PM? Thank you!

    Plugin Author Mohaiminul Islam

    (@skshaikat)

    07:00:00 is 7AM and 19:00:00 is 7PM

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Specifying a specific time’ is closed to new replies.