CartController::validate_add_to_cart( WC_Product $product, array $request )
Validate all items in the cart and check for errors.
Description Description
Parameters Parameters
- $product
-
(Required) Product object associated with the cart item.
- $request
-
(Required) Add to cart request params.
Source Source
File: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php