CartController::get_cart_coupon_errors()
Method: Validate all items in the cart and get a list of errors.
Source: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php:594
Method: Validate all items in the cart and get a list of errors.
Source: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php:594
Action Hook: Fire action to validate add to cart. Functions hooking into this should throw an \Exception to prevent add to cart from occuring.
Source: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php:225
Method: Generates the error message for out of stock products and adds product names to it.
Source: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php:236
Method: Takes a string describing the type of stock extension, whether there is a single product or multiple products causing this exception and returns an appropriate error message.
Source: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php:254
Class: Woo Cart Controller class.
Source: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php:17
Method: Makes the cart and sessions available to a route by loading them from core.
Source: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php:21
Method: Based on the core cart class but returns errors rather than rendering notices directly.
Source: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php:41
Method: Based on core `set_quantity` method, but validates if an item is sold individually first.
Source: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php:123
Method: Validate all items in the cart and check for errors.
Source: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php:159
Filter Hook: Hook: woocommerce_add_to_cart_validation (legacy).
Source: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php:201