free
web stats

Fill the form & Get Installation Support

Connect With Us





captcha

Connect With Us





captcha

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!

 

Was this article helpful?
YesNo
Fill the below form if you have any Magento programming need.




captcha