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 4

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

CartController

Class: Woo Cart Controller class.

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

Used by 0 functions | Uses 0 functions

CartController::load_cart()

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

Used by 0 functions | Uses 1 function

CartController::add_to_cart()

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

Used by 0 functions | Uses 9 functions

CartController::set_cart_item_quantity()

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

Used by 0 functions | Uses 3 functions

CartController::validate_add_to_cart()

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

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

Used by 1 function | Uses 10 functions

woocommerce_add_to_cart_validation

Filter Hook: Hook: woocommerce_add_to_cart_validation (legacy).

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

Used by 6 functions | Uses 0 functions
« Previous 1 … 3 4
Proudly powered by WordPress