With the new update cart callback system in place you can now update the quantity of items in the cart in bulk. Simply pass the item key and the quantity for each item you wish to change and the quantity of those items will update.
Articles
Articles for CoCart
Categories: Developer (1) · Getting Started (1) · Questions (14) · Requesting support from us (9) · Snippets (7) · WP-CLI (1)
Disable decimals in money response
Code snippet is included.
Can I install/update CoCart via Composer?
Yes. The best method would be to install/update CoCart from the GitHub repository but you can also do so via https://wpackagist.org/
Why CoCart and not WooCommerce Store API?
WooCommerce Store API is limited and designed mainly to focus on their Gutenberg blocks they have developed in React.
Why does CoCart use a custom session table in the database?
The default WooCommerce session table only stores the basics of a cart in session. CoCart provides additional data that maybe required to help you and other add-ons/extensions developed by CoCart or third-parties.
If you’re familiar with WooCommerce, you may be wondering, why using a custom session handler at all instead of the WooCommerce default session handler?