includes/admin/class-wc-admin-post-types.php:
WC_Admin_Post_Types::set_new_price()
|
Set the new regular or sale price if requested.
|
includes/class-wc-discounts.php:
WC_Discounts::get_object_subtotal()
|
Get the object subtotal
|
includes/class-wc-discounts.php:
WC_Discounts::apply_coupon_percent()
|
Apply percent discount to items and return an array of discounts granted.
|
includes/class-wc-discounts.php:
WC_Discounts::get_discounted_price_in_cents()
|
Get discounted price of an item to precision (in cents).
|
includes/wc-formatting-functions.php:
wc_hex_darker()
|
Make HEX color darker.
|
includes/wc-formatting-functions.php:
wc_hex_lighter()
|
Make HEX color lighter.
|
includes/wc-formatting-functions.php:
wc_legacy_round_half_down()
|
Round half down in PHP 5.2.
|
includes/wc-formatting-functions.php:
wc_round_tax_total()
|
Round a tax amount.
|
includes/wc-core-functions.php:
wc_round_discount()
|
Round discount.
|
includes/wc-core-functions.php:
wc_add_number_precision()
|
Add precision to a number and return a number.
|
includes/wc-core-functions.php:
wc_get_image_size()
|
Get an image size by name or defined dimensions.
|
includes/cli/class-wc-cli-rest-command.php:
WC_CLI_REST_Command::do_request()
|
Do a REST Request
|
includes/import/abstract-wc-product-importer.php:
WC_Product_Importer::get_percent_complete()
|
Get file pointer position as a percentage of file size.
|
includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php:
WC_Gateway_Paypal_Request::round()
|
Round prices.
|
includes/class-wc-cart.php:
WC_Cart::get_tax_totals()
|
Get taxes, merged by code, formatted ready for output.
|
includes/class-wc-ajax.php:
WC_AJAX::variation_bulk_adjust_price()
|
Bulk action – Set Price.
|
includes/class-wc-tax.php:
WC_Tax::round()
|
Round to precision.
|
includes/data-stores/class-wc-product-data-store-cpt.php:
WC_Product_Data_Store_CPT::update_visibility()
|
Update visibility terms based on props.
|
includes/tracks/class-wc-tracks-client.php:
WC_Tracks_Client::build_timestamp()
|
Create a timestap representing milliseconds since 1970-01-01
|
includes/wc-product-functions.php:
wc_get_price_including_tax()
|
For a given product, and optionally price/qty, work out the price with tax included, based on store settings.
|
includes/abstracts/abstract-wc-order.php:
WC_Abstract_Order::get_line_subtotal()
|
Get line subtotal – this is the cost before discount.
|
includes/abstracts/abstract-wc-order.php:
WC_Abstract_Order::get_item_total()
|
Calculate item cost – useful for gateways.
|
includes/abstracts/abstract-wc-order.php:
WC_Abstract_Order::get_line_total()
|
Calculate line total – useful for gateways.
|
includes/abstracts/abstract-wc-order.php:
WC_Abstract_Order::calculate_totals()
|
Calculate totals by looking at the contents of the order. Stores the totals and returns the orders final total.
|
includes/abstracts/abstract-wc-order.php:
WC_Abstract_Order::set_total_tax()
|
Sets order tax (sum of cart and shipping tax). Used internally only.
|
includes/abstracts/abstract-wc-order.php:
WC_Abstract_Order::get_total_discount()
|
Gets the total discount amount.
|
includes/abstracts/abstract-wc-order.php:
WC_Abstract_Order::get_subtotal()
|
Gets order subtotal.
|
includes/class-wc-coupon.php:
WC_Coupon::get_discount_amount()
|
Get discount amount for a cart item.
|
includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:
WC_Shipping_Free_Shipping::is_available()
|
See if free shipping is available based on the package and cart.
|
includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php:
WC_Shipping_Legacy_Free_Shipping::is_available()
|
Check if package is available.
|
includes/class-wc-webhook.php:
WC_Webhook::deliver()
|
Deliver the webhook payload using wp_safe_remote_request().
|
includes/class-wc-cart-totals.php:
WC_Cart_Totals::calculate_totals()
|
Main cart totals.
|
includes/class-wc-cart-totals.php:
WC_Cart_Totals::get_fees_from_cart()
|
Get fee objects from the cart. Normalises data into the same format for use by this class.
|
includes/class-wc-cart-totals.php:
WC_Cart_Totals::remove_item_base_taxes()
|
Ran to remove all base taxes from an item. Used when prices include tax, and the customer is tax exempt.
|