Web Analytics

Fill the form & Get Installation Support

How to Remove cart item Automatically after 30 Minutes in Magento2?

Step 1: create a “Registration.php” file inside our extension at the following path.

Path: app\code\Magemonkeys\Removecart

Step 2: After that,  create a “Module.xml” file inside extension etc folder. app\code\Magemonkeys\Removecart\etc

Step 3: After that, create “crontab.xml” file inside extension etc folder. app\code\Magemonkeys\Removecart\etc

Step 4: Lastly, Create the “Removecart.php” file inside the Cron folder of extension. app\code\Magemonkeys\Removecart\Cron

Run below command in your command prompt

php bin/magento cron:install

php bin/magento cron:run

Every 30 minutes, the cron is executed. If there is an item available in the cart, it will be then removed, automatically!

 

Fill the below form if you have any Magento programming need.





    Recent Articles

    Author Info

    Author Image

    Magento Certified Developer

    Hire J. Lakum

    Get a Free Quote





      /* second popup */

      Connect With Us