Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
214 views
in Technique[技术] by (71.8m points)

magento - Magento1.7:Facing issue with shopping cart

I am facing some critical issue in Magento:
When I logged in and added some products in cart and logged out, again logged in then those products were still remaining in shopping cart.

----> This should not have happened because I set "Clear Persistence on Log Out".

The steps involved in this case are:

  1. I logged in.
  2. Added 2 products to my cart.
  3. Now I logged out.
  4. Then without logging in , I browsed the website and added 4 products to cart.
  5. After that, at the time of checking out I was requested to login, so I logged in.
  6. Now instead of 4 products(which is intended), I see 2+4=6 products in my cart during payment.

I configure as below --

  • Enable Persistence -- Yes
  • Persistence Lifetime (seconds) -- 60
  • Enable "Remember Me" -- Yes
  • "Remember Me" Default Value --- No
  • Clear Persistence on Log Out -- Yes
  • Persist Shopping Cart -- Yes

But unable to figure out the problem, in configuration I put 60 second. I logged out and after 5 minutes again I logged in. I found products are remain in shopping cart.

According to configuration, product must be deleted from shopping cart after I logged out.

I messed up with this problem. Kindly help me.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It's the persistent cart feature introduced in Magento 1.5. You can disable it at:

System->configuration->Persistent Shopping Cart


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...