cancel
Showing results for 
Search instead for 
Did you mean: 

Delete cart item from checkout page

Delete cart item from checkout page

I have found some issue in magento 2.3 core of both version community and enterprise 

add product in  cart item and go to checkout page and try to delete items 

see how it showing 404  error

2 REPLIES 2

Re: Delete cart item from checkout page

Hi @rajeshdnw 

 

I had same issue with 2.3. I suggest you to run these commands in same order on Magento root directory.

 

sudo rm -Rf pub/static/frontend/* var/pre_processed/* pub/static/_requirejs/*
sudo rm -Rf var/generation/* var/di/* var/cache/*
sudo php bin/magento setup:upgrade
sudo php bin/magento setup:di:compile
sudo php bin/magento setup:static-content:deploy -f
sudo php bin/magento cache:clean
sudo php bin/magento cache:flush
sudo chmod -R 777 var/ pub/ generated/

I hope it will work for you.

 

Thanks

 

--
If my answer is useful, please Accept as Solution & give Kudos

Re: Delete cart item from checkout page

no, issue is not run any command line 

I found that solution which was mistake done by magento 

we are try to delete cart item using get method but magento controller follow the post method 

class Delete extends \Magento\Checkout\Controller\Cart implements HttpPostActionInterface

it should be 

class Delete extends \Magento\Checkout\Controller\Cart implements HttpGettActionInterface