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::select_shipping_rate()

Method: Selects a shipping rate.

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

Used by 0 functions | Uses 2 functions

CartController::apply_coupon()

Method: Based on the core cart class but returns errors rather than rendering notices directly.

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

Used by 0 functions | Uses 5 functions

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

wooocommerce_store_api_validate_cart_item

Action Hook: Fire action to validate add to cart. Functions hooking into this should throw an \Exception to prevent add to cart from occurring.

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

Used by 1 function | Uses 0 functions

CartController::validate_cart_coupons()

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

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

Used by 0 functions | Uses 3 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
« Previous 1 2 3 4 Next »
Proudly powered by WordPress