CoCart v3 in the Future

My plan for CoCart v3 is to introduce a major re-write of the cart system that the current API is relying on. Sounds big and your right, it is going to be a major achievement. 🦸‍♂️

While the API it’s self will not change much, the core of the API will have a new backbone rather than relying on the cart in the core of WooCommerce. Meaning that the majority of WooCommerce functions used will be in the core of CoCart with the necessary adjustments required.

This also insures that any changes made in the future to the cart in WooCommerce does not effect how CoCart functions in the long run.

Why the change?

In short, WooCommerce’s handle on sessions is not designed well for a REST API. Which is why I will be working on creating a new cart system that is designed for the REST API.

  • Better session control – will include the ability to switch between customers when authenticating. No more merged carts without clearing it first.
  • Additional fees support – will no longer run as an independent API.
  • Processing orders – cart is converted to an order ready to be paid so less coding and using WooCommerce’s REST API to do it.
  • and possibly more.

What about v2.1?

CoCart v2.1 is near, development was put on hold since December 2019 mostly for personal and technical reasons but I am back on track and making progress for beta 5.

While the cart improvements may not be perfect due to the session control system currently used, it is in the right direction and will provide a number of requested improvements.

CoCart v3 will include all the changes made in v2.1 and be improved upon.

Community and Feature Requests

The CoCart community has been great and a big help from the community has been the feedback. Without you, CoCart would not be possible.

There have also been many feature requests coming in. While I have started working on some of these features, they are not currently worth my time finishing and releasing until the core of CoCart is more stable and supportive of those features.

These features will of course be added as part of CoCart Pro or as an additional add-on depending on the support required for those features.

My hope is that with the new cart system, these features will be easier to provide and more open opportunities for developers will be available.

Some stats… everybody loves stats

CoCart currently has just over 900 active installs and 35.7% of them are still using version 1. On a surprising note, CoCart has been around for almost 2 years already since version 1 was released on WordPress.org on 26th February, 2018. That’s 20 days away from it’s 3rd birthday. 🎉

Version 2 was released on 3rd July, 2019 and the last release was 4 months ago so it’s been slow progress with the releases.

My hope is to increase the active installs and plan to release updates in shorter cycles. Right now there is too much of a gap.

How can you help

CoCart is currently developed in my free time, it’s not a full time gig yet. While I am making sales with CoCart Pro, the sales are slow coming and that’s to be expected I think due to the core of CoCart still needs addressing with the session issue.

At the moment I am still working freelance which takes my time away from developing CoCart. So I have come up with an idea that I think for those who like and use CoCart will appreciate and that is to become a founder.

As a founder you will be allowing me to work on CoCart more frequently, get a copy of CoCart Pro, all the add-ons and best of all unlimited site usage.

Your company logo will also be linked and displayed on a special page including the GitHub repository as a thank you.

You can if you wish still just purchase CoCart Pro. It’s up to you.

A big thank you for the customers I have had so far and all those using CoCart.

If you have any questions about this post or the founders edition, feel free to contact me or have an open discussion with me via Slack next Monday at 4PM GMT+1.

Thank you. 🙂

CoCart

The best and only REST API for the frontend of WooCommerce. Build your headless store today and join a fast growing community of developers to help you out.

Support Hours

Mon - Friday 10am to 6pm GMT+1

CoCart Pro Launched

Updated: 8th September 2019

I’m pleased to announce that CoCart Pro has now launched and it could not have come at a better time. Over 30% of the user base is now using version 2.0 of CoCart which is the minimum requirement to use CoCart Pro and CoCart has just passed 6000+ downloads. ?

I also like to thank those who have tested the beta’s, provided feedback and reported bugs found during it’s development. ?

It has been a great help to get the product ready and I have awarded you with a discount via e-mail as a thank you.

Support

Support will be provided via Slack. There you can contact me directly via DM when needed and use the other available channels to discuss with other users and developers, provide feedback, share ideas or even showcase what you have built with CoCart.

An invite will be sent to the customer via e-mail to which you must accept in order to receive the support.

Why Slack instead of e-mail? Well for one so I don’t get a full inbox, two, Slack is the perfect tool to communicate with my customers anywhere. We can see each other online and have a live conversation which is far more engaging than e-mail.

Lifetime Offer

For those who like to get on the best deals at launch, you can do just that.

For a limited time, you can get the lifetime tier for a one time purchase that will allow you to use CoCart Pro on unlimited sites, receive lifetime support and free updates.

What’s Next?

Over time I will be supporting more official WooCommerce extensions and improving the documentation for other code languages.

If you have any questions I recommend checking out the FAQ page. I may already have an answer.

CoCart

The best and only REST API for the frontend of WooCommerce. Build your headless store today and join a fast growing community of developers to help you out.

Support Hours

Mon - Friday 10am to 6pm GMT+1

Coming in v2: Totals

Fetching the cart totals is one of the most important parts of the CoCart API and while you do get all the information you need, they were not always returned in the same format when it came to the actual totals and did not have the currency symbol applied.

I’m sure developers would have to convert the values and apply the currency symbol after fetching the totals which could also increase load time for their app with the additional code required.

For version 2, I wanted to make it faster and easier for developers by returning the results pre-formatted ready to simply display them.

All totals can now return as a string with the currency symbol automatically applied according to the store currency set in the WooCommerce settings.

To get these results, simply set the new property as true.

See documentation for example.

That’s it!

Feedback NO LONGER Required!

CoCart v2 is now available.

CoCart

The best and only REST API for the frontend of WooCommerce. Build your headless store today and join a fast growing community of developers to help you out.

Support Hours

Mon - Friday 10am to 6pm GMT+1

Coming in v2: Responses

Getting the correct returned response are important when using the REST-API so providing the option to return the whole cart without the need to call it again is also important.

Now when you add an item to the cart, update item quantity, remove item or restore an item. You can now return the whole cart contents rather than the default response if requested.

For e.g. by default when adding an item to cart, only that item would return it’s details. So before that happens if the return cart parameter is used, the whole of the cart is instead returned with that added item.

Pretty sweat right!

I’m sure developers will find this useful. What do you think of this improvement coming?


Version 2 is still in development so please come back for more news as it develops.

Thank you.

CoCart

The best and only REST API for the frontend of WooCommerce. Build your headless store today and join a fast growing community of developers to help you out.

Support Hours

Mon - Friday 10am to 6pm GMT+1

Coming in v2: Getting the Cart

I thought I share some more news on what is coming to v2 of CoCart. Progress is being made the project is not dead though with the release of v3.6 of WooCommerce I thought it was going to be but that was solved quickly.

Now one popular request was to get a specific customers cart. I thought this might be a difficult challenge maybe by creating a new cart table in the database but it turns out WooCommerce already has a feature that is probably only known to those who read the whole of the WooCommerce source code.

So those with administrator capabilities can now add a new parameter for the customers ID number. When called it will get the cart contents from that specific customer from when they were logged in last. I don’t see any other user role that would need to access a customers cart. Feel free to comment below if you feel otherwise.

FYI

However, this feature will only work if the site owner has left persistent cart enabled and the session has not cleared or expired. If no cart data is stored for that customer it will fallback to the cart in use.

On top of that I have also applied a filter that allows you to apply additional information to return for the items in the cart.

Version 2 is still in development so please come back for more news as it develops.

Thank you.

CoCart

The best and only REST API for the frontend of WooCommerce. Build your headless store today and join a fast growing community of developers to help you out.

Support Hours

Mon - Friday 10am to 6pm GMT+1