- Tested with WooCommerce v9.2
- Tested with CoCart v4.4
- Fixed the cart key returning for guest customers in API v1.
- Tested with WordPress v6.6
- Tested with WooCommerce v9.1
- Tested with CoCart v4.3
- Tested with WordPress v6.5
- Tested with WooCommerce v8.8
- Tested with CoCart v4.0
- Fixed Uncaught TypeError for
cocart_prepare_money_response()
with CoCart v5 (In development).
- Added parent ID for a variation.
- Added visible product attributes for other products that is not a variation product.
- Added more validation should required fields not be available in the request.
- Removed WooCommerce plugin headers to prevent incompatibility warning message when using "HPOS" feature.
- Tested with WooCommerce v7.9
- Return discount type for any coupons applied.
- Tested with CoCart v3.8
- Tested with WooCommerce v7.5
- Tested with WordPress v6.2
- Tweaked: Prices returned are consistent with other monetary values.
- Tested with CoCart v3.1 and up
- Tested with WooCommerce v6.3
- Tested with WordPress v5.9
- Each item now returns the regular and sale price just before price discounted.
- Corrected discounted price value per item.
- Updated POT file to change language team email address.
- Tested with WooCommerce v5.9
- Tested with WordPress v5.9
- Dev: Package file added for better composer packaging support.
- Dev: Minimum requirement for WordPress is now v5.5
This release keeps up with WordPress code standards.
- Fixed: Yoda conditions.
- Dev: Documented parameter comments for functions that were missing.
- Dev: Change the use of
strip_tags()
function towp_strip_all_tags()
function instead.
- Fix: Escape any HTML passed when returning the cart key.
- NEW: Returns the discount status of items and the discounted price if any. - Enhances API v2 ONLY
- Compatible: CoCart v3.0
- Fixed: Undefined
$code
by removing it as it returns nothing of important. One less error. - Tweaked: Moved
$available_methods
container up a few lines so each package returns fully. - Tested: Compatible with WooCommerce v4.9
- Corrected: Coupons now return as an object if more than one coupon is applied.
- Enhanced: Shipping details now return along with each package and the available rates.
- Dev: New
cocart_shipping_package_details_array
filter for filtering package details listed per package. - Dev: New
cocart_shipping_package_name
filter for renaming the package name.
- Corrected: Package version with the version of the plugin.
- Enhanced: Cross sells is cleaner if you are previewing the cart response for CoCart v3.0 API v2.
- Dev: Re-done the main file so the plugin can be packaged with composer.
- NEW: Preview cart response for CoCart v3.0 API v2 (Requires
cocart_preview_api_v2
settrue
to enable). - NEW: Added a check for items in cart for validity and stock before returning the updated cart.
- NEW: Added a check for coupons applied to the cart for validity before returning the updated cart.
- Tested: Compatible with PHP 8
- Tested: Compatible with CoCart v2.8
- Tested: Compatible with WooCommerce v4.8
Previewing the new cart response is still a working progress and is by no means complete. Use only for experimenting and to provide feedback.
- NEW: Product returns virtual and downloadable status.
- NEW: Returns shipping methods available if any and which one is chosen.
- Enhanced: Cart totals are calculated again to be sure they are correct before returning totals.
This is a community release by @joelpierre
- Fixed: Get product slug if variable product detected.
- Tested: Compatible with CoCart v2.7
- Tested: Compatible with WooCommerce v4.6.1
- Fixed: Always empty product categories and tags.
- Tested: Compatible with WooCommerce v4.5.2
This is a community release by @tomsotte
- Fixed: Coupons returned without losing special characters applied.
- NEW: Cross sell items now returns the product slug.
- Fixed: Product slug returns from the parent product even if the product type is a variation.
- NEW: Each item now returns the product slug.
- Added: Requirements to plugin header.
- Added: Before and After screenshots.
- Corrected: Requirements to match with CoCart Lite's current requirements.
- NEW: Each item now returns the product type.
- Dev: Added
cocart_enhanced_totals
filter for totals.
- Fixed: Undefined variable
name
for formatted variable product data.
- Fixed: Array to string conversion error for notices.
- Tweaked:
cocart_notice_types
filter to return info notices. - Tweaked: Cross sells to return product type.
- Fixed: Invalid argument supplied for
format_variation_data()
.
- Fixed: Undefined method for
get_session_cookie()
. - Compatible: CoCart Lite v2.1.2
- Fixed: Undefined default values for cross sell
orderby
,order
andlimit
. (Woops 🤦♂)
- NEW: Cross sell items return based on items in the cart.
- NEW: Added minimum quantity of item can be purchased.
- Tweaked: Variables that have no data now just return empty. Easier for developers to check if the variable exists.
Cross sell has a number of filters. Check source code for them. 😄
- Fixed:
wc_deprecated_argument
for WC_Productget_dimensions()
.
- NEW: Returns the product dimensions if any.
- Fixed: Cart fees echoing.
- NEW: Returns item price without currency symbol.
- NEW: Returns variation data formatted.
- NEW: Cart returns currency.
- NEW: Cart returns total weight.
- NEW: Cart now returns items removed under extras.
- NEW: Cart returns enhanced for empty carts.
- Fixed: Coupon partially echoing results.
- NEW: Returns cart key.
- NEW: Returns product price raw so no currency symbol.
- Tweaked: Product weight so now returns as an array with weight unit.
- Compatible: CoCart Lite v2.1
- NEW: Added plugin activation and deactivation check in preparation for coming feature in CoCart Pro.
- NEW: Returns any notices. For example a product is no longer purchasable so you are able to notify the customer.
- Initial version.