How to create a CRON Job for Subscription Expire status change of sellers

  • /

28th Oct, 2024

To create a CRON job to change the expiration status of sellers for Amazcart.


  1. First, Login into your cpanel

  2. After Login, Go to Cron Jobs 

AD_4nXc-rbwDutjcQTRigp_qHWhxRkoIBsX-iDLixmHUwhZIJGaYyLd8NrZclMVHl-mANu6D2UE0gOi0qFepKgBEyG_7MvWa1ozoH-iQtoZb0RBBPlSKd6y0d-XM_EwhqRRPzNOpaA2fI6khfa8imaJh4uIVWe-d?key=_umFLuxqr_f0LgxzWW3Wsg

  1. On the cron jobs page, It will show a form of common settings and PHP and root directory path


AD_4nXfH6lo07wYDjP3EeaoJgM62kSO6PJPPzC4-r-kV-FMJZ81T3W32Rl_w8zS6nR0tVCm9vpU_Bp-DtJp9YJMkipIKHwbEWmA4gtppy0DYmKhMEMU7MnU51S0HxOP3FGK1NPyB-owGaVPx0hbpotPW6ttmbsw?key=_umFLuxqr_f0LgxzWW3Wsg


AD_4nXeu_PCOYlJpU2oTGFQdpEHic3nqC4SCBsN6Wn0zyXp1w54p3Vkd6zVuDVFS2yCpJ8HS_WZi6xqDoIf3P5F20T79WtyuSSCHC_9YKCO7pKhuacl2Q_ihDG3rzxNyJgNAVBs0s2lOJPYUOtZcNf4gORqs30w?key=_umFLuxqr_f0LgxzWW3Wsg


In this image shows the PHP path and Your project root directory.


5. Now Select Twice per day from standard settings and select box
AD_4nXfZD1FxE8Ay1QT7-AXfxTRWrtOyzKDi2jI_KWu9Dt2Uce3A8-6jAgDDYQcGKko37_COJQl8o3EhAVvAtmyAtyPVvQ5BilAdHYabPpfnxU4dmrJ8qoOgD9YlJVJ53_uzjZHLcocxqwrRFlgmDMD5vN-ehdUH?key=_umFLuxqr_f0LgxzWW3Wsg


6. After selecting the common setting now, write the command for Running cron job


Command: /php_path /project_root/artisan command:sellerSubscription > /dev/null 2>&1


Example: /usr/local/bin/php /home/freesch2/public_html/artisan command:sellerSubscription /dev/null 2>&1


7. Now click on the save button to save the cron job.


Conclusion: After saving It will run the cron job per day  2 times, and It will update the expired status of sellers.

Categories