Dev Resources

  • Home
  • Reference
  • BuddyX Theme
  • Functions
  • Hooks
  • Classes
Filter by type:
Search
Browse: Home / Reference / packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php / Page 3

CartController::validate_cart_coupon()

Method: Validates an existing cart coupon and returns any errors.

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

Used by 2 functions | Uses 2 functions

CartController::get_product_quantity_in_cart()

Method: Gets the qty of a product across line items.

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

Used by 2 functions | Uses 1 function

CartController::get_remaining_stock_for_product()

Method: Gets remaining stock for a product.

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

Used by 2 functions | Uses 2 functions

CartController::get_cart_item_errors()

Method: Validate all items in the cart and get a list of errors.

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

Used by 0 functions | Uses 3 functions

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

Used by 0 functions | Uses 3 functions

wooocommerce_store_api_validate_add_to_cart

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

Used by 1 function | Uses 0 functions

CartController::add_product_names_to_message()

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

Used by 2 functions | Uses 1 function

CartController::get_error_message_for_stock_exception_type()

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

Used by 2 functions | Uses 0 functions

CartController::validate_cart_items()

Method: Validate all items in the cart and check for errors.

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

Used by 0 functions | Uses 8 functions

woocommerce_check_cart_items

Action Hook: Hook: woocommerce_check_cart_items

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

Used by 4 functions | Uses 0 functions
« Previous 1 2 3 4 Next »
Proudly powered by WordPress