0

creating new quote on page reload when empty cart in magento2

I have add a item in cart.....after that remove that item from cart.Now I'm reloading cart page ,it creating a new quote for every page reload when empty cart.

How to fixed new quote creating issue when cart empty in magento2

3
  • Are you using localhost in base url like localhost?
    – Hariharan
    Commented Jul 25, 2018 at 8:19
  • Yes... .........
    – Mahi M
    Commented Jul 25, 2018 at 8:20
  • Use ip address 127.0.0.1 insteadof localhost
    – Hariharan
    Commented Jul 25, 2018 at 8:20

1 Answer 1

0

Follow below steps If you are running magento 2 in local system

Go to Admin Store -> Setting -> Configuration-> Web ->Base URLs

Change localhost to 127.0.0.1 on Base Url. Then it solved the problem.

6
  • Can u explain for that issue ...@Hari
    – Mahi M
    Commented Jul 25, 2018 at 8:50
  • Magento 2 cannot work properly in single domain name, like localhost, testsite, magento2site etc, So use ip address or domainname like 'testsite.local', also magento 2 returns null for $.mage.cookies.get('form_key'); when using localhost
    – Hariharan
    Commented Jul 25, 2018 at 9:11
  • Form key issue is the main reason for create new quote in localhost domain?
    – Mahi M
    Commented Jul 25, 2018 at 9:35
  • Yes............
    – Hariharan
    Commented Jul 25, 2018 at 9:36
  • I changed the base url localhost to ipaddress.still create a new quote for every reload empty cart page
    – Mahi M
    Commented Jul 25, 2018 at 9:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.