Dev Resources

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

CartController::get_variation_id_from_variation_data()

Method: Try to match request data to a variation ID and return the ID.

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

Used by 1 function | Uses 2 functions

CartController::sanitize_variation_data()

Method: Format and sanitize variation data posted to the API.

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

Used by 1 function | Uses 3 functions

CartController::get_variable_product_attributes()

Method: Get product attributes from the variable product (which may be the parent if the product object is a variation).

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

Used by 1 function | Uses 2 functions

CartController::get_cart_items()

Method: Returns all cart items.

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

Used by 2 functions | Uses 1 function

CartController::filter_request_data()

Method: Filter data for add to cart requests.

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

Used by 1 function | Uses 2 functions

CartController::get_cart_hashes()

Method: Get hashes for items in the current cart. Useful for tracking changes.

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

Used by 0 functions | Uses 1 function

CartController::parse_variation_data()

Method: If variations are set, validate and format the values ready to add to the cart.

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

Used by 1 function | Uses 9 functions

CartController::empty_cart()

Method: Empty cart contents.

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

Used by 0 functions | Uses 1 function

CartController::has_coupon()

Method: See if cart has applied coupon by code.

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

Used by 1 function | Uses 1 function

CartController::get_cart_coupons()

Method: Returns all applied coupons.

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

Used by 3 functions | Uses 1 function
1 2 … 4 Next »
Proudly powered by WordPress