Skip to content

Used to keep track of cart changes made to a previously loaded cart when passing a guest cart to a logged in customer.

Notifications You must be signed in to change notification settings

cocart-headless/cocart-sync-carts

Repository files navigation

CoCart - Sync Carts

CoCart Logo


Description

Used to keep track of cart changes made to a previously loaded cart (using "Load Cart from Session") when passing a guest cart to a logged in customer.

It allows for the customer to keep the same cart in two different states.

Let me explain. Your user (customer) started shopping as a guest via the decoupled site but was then redirected to the main site that is running the store where the cart was loaded, but your user was logged in there which transfers over the cart session to their user ID.

Now the main site that the user is logged in as is controlling the cart. The cart the user had before as a guest is no longer keeping track of changes made to the cart.

This plugin is designed to do just that. It logs the cart key of the session that was loaded and updates the cart data for that session once the main session in control has completed it's actions.

Now both carts for your customer, guest or logged in are a match.

That's it.

Requirements

You will need CoCart v3.8.0 or above for this plugin to work.

Support

This is currently an experimental feature plugin and may change over time before being added to CoCart Pro but is in no way supported at this time.

Use at your own risk and provide feedback if you can but don't expect an immediate response if you are experiencing any issues.

If you find this feature plugin helped you, please show some support by purchasing CoCart Pro.

Thank you.

License

Released under GNU General Public License v3.0.


CoCart Channels

We have different channels at your disposal where you can find information about the CoCart project, discuss it and get involved:

Twitter: cocartapi CoCart GitHub Stars

  • 📖 Docs: this is the place to learn how to use CoCart API. Get started!
  • 🧰 Resources: this is the hub of all CoCart resources to help you build a headless store. Get resources!
  • 👪 Community: use our Slack chat room to share any doubts, feedback and meet great people. This is your place too to share how are you planning to use CoCart!
  • 🐞 GitHub: we use GitHub for bugs and pull requests, doubts are solved with the community.
  • 🐦 Social media: a more informal place to interact with CoCart users, reach out to us on Twitter.
  • 💌 Newsletter: do you want to receive the latest plugin updates and news? Subscribe here.

Credits

CoCart - Sync Carts is developed and maintained by Sébastien Dumont.

Founder of CoCart - Sébastien Dumont.


Website sebastiendumont.com  ·  GitHub @seb86  ·  Twitter @sebd86

About

Used to keep track of cart changes made to a previously loaded cart when passing a guest cart to a logged in customer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published