Cart Enhanced

This free add-on enhances the data returned for the cart and the items added to it.

11th May 2021

The majority of these features will already be available in CoCart API v2. Only a few of these features will be used to enhance the cart response.
If you are still using API v1 then all features listed below will still be available.

Features

  • Added a check for items in cart for validity and stock before returning the updated cart.
  • Added a check for coupons applied to the cart for validity before returning the updated cart.
  • Cart returns currency.
  • Cart returns total weight.
  • Cart now returns items removed under extras.
  • Cart returns cross sell items based on items in the cart.
  • Cart returns enhanced for empty carts.
  • Cart returns the cart hash key.
  • Places the cart contents under a new array called items.
  • Cart returns the item count of all items in the cart.
  • Cart returns the shipping status of the cart.
  • Cart returns the payment status of the cart.
  • Cart returns coupons applied to the cart if enabled.
  • Cart returns shipping methods available if any and which one is chosen.
  • Cart returns additional fees applied to the cart.
  • Cart returns the cart totals.
  • Cart returns any notices.

Each item added to the cart will also return the following:

  • Returns virtual and downloadable status.
  • Returns the product slug.
  • Returns the product type.
  • Returns variation data formatted.
  • Returns the product dimensions.
  • Returns minimum and maximum quantity of item can be purchased.
  • Returns the product categories assigned.
  • Returns the product tags assigned.
  • Returns the product SKU.
  • Returns the product weight.
  • Returns the product stock status.
  • Returns the product gallery if any.
  • Returns the discount status of items and the discounted price if any. – Enhances API v2 ONLY

Details

  • Released: 20th February 2020
  • Version: 3.0.1
  • Last Updated: 17th May 2021
  • Changelog