• Resolved RandomDude

    (@gazuots)


    Hello,
    How to setup cronjobs? I have 3k+ products, but everytime i use /?slw-crons… it updates same maybe 1000product SKU, how to update stock in all products?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Cronjobs usually work through the hosting panels, you can set an interval for this curl based command and number of products can be set with the parameter provided there. Each round of cron job scripts will update the fresh batch of products, reconsider parameter will help you to touch the products again after second, minute, hour, day etc. so you can calculate accordingly that when a product should be updated next time.

    Thread Starter RandomDude

    (@gazuots)

    How to check is it working correctly?

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    It is simple, check the following examples:

    Example #1
    yourwebsite.com/?slw-crons&action=update-stock&limit=10&reconsider=day

    accessing this URL again and again, you should go through all of your products with the limit number and within this day/date (current date), the same item should not be repeated. Same like this you can increase the limit.

    You can change the reconsider to other available options under the settings page as follows:

    yourwebsite.com/wp-admin/admin.php?page=slw-settings&tab=crons

    • This reply was modified 2 years, 3 months ago by Fahad Mahmood.
    Thread Starter RandomDude

    (@gazuots)

    Thank you its working now

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Your questions will help others to get it working straight, thank you so much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to setup cronjobs?’ is closed to new replies.