Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8374277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:53:18+00:00 2026-06-09T14:53:18+00:00

I am implementing an e-commerce website in core PHP. Currently, if a guest user

  • 0

I am implementing an e-commerce website in core PHP. Currently, if a guest user adds some products to the cart and later logs in then all the items in his existing cart are replaced with the new items. I wanted to ask is it the best way or should I merge the guest user cart items in cookie to that of that with user’s cart items which are stored in the database.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:53:19+00:00Added an answer on June 9, 2026 at 2:53 pm

    I would do it like this: when user added some cart items and then logs in, a prompt appears (if logged user old cart is not empty):

    This account had X older items in the cart, do you want to load these too ?

    (Product X, Product Y).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am implementing an e-commerce website using django. The product catalog will be big
When implementing SuperBoxSelect (http://www.sencha.com/forum/showthread.php?69307-3.x-Ext.ux.form.SuperBoxSelect), I've realized that it currently does not support shift +
We are working on implementing Solr on e-commerce site. The site is continuously updated
implementing publishActivity in PHP using the REST API using this code: $activity = array(
Implementing the very first scala example I ran into some problems probably tipical for
Im Implementing a video broadcasting website. For that I planned to use silverlight player
The contents of a commerce website (ASP.NET MVC) are regularly crawled by the competition.
Implementing ArrayAccess Interface in PHP , We can access Object Properties as Array Keys
I am working a e-commerce website (in asp.net & c#) where which I want
While implementing the remember me feature for a website, why do we complicate things

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.