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.


Top ↑

Source Source

File: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php




Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.