wc_prices_include_tax()
Are prices inclusive of tax?
Description #Description
Return #Return
(bool)
Source #Source
File: includes/wc-conditional-functions.php
function wc_prices_include_tax() { return wc_tax_enabled() && apply_filters( 'woocommerce_prices_include_tax', get_option( 'woocommerce_prices_include_tax' ) === 'yes' ); }
Related #Related
Uses #Uses
Uses | Description |
---|---|
includes/wc-conditional-functions.php: wc_tax_enabled() |
Are store-wide taxes enabled? |
Used By #Used By
Used By | Description |
---|---|
packages/woocommerce-blocks/src/StoreApi/Utilities/ProductQuery.php: ProductQuery::adjust_price_filters_for_displayed_taxes() |
If price filters need adjustment to work with displayed taxes, this returns true. |
includes/wc-update-functions.php: wc_update_230_options() |
Update options for 2.3 |
includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php: WC_Gateway_Paypal_Request::get_paypal_args() |
Get PayPal Args for passing to PP. |
includes/class-wc-structured-data.php: WC_Structured_Data::generate_product_data() |
Generates Product structured data. |
includes/legacy/api/v2/class-wc-api-server.php: WC_API_Server::get_index() |
Get the site index. |
includes/legacy/class-wc-legacy-cart.php: WC_Legacy_Cart::__get() |
Magic getters. |
includes/class-wc-cart.php: WC_Cart::get_cart_total() |
Gets the cart contents total (after calculation). |
includes/class-wc-cart.php: WC_Cart::get_cart_subtotal() |
Gets the sub total (after calculation). |
includes/class-wc-cart.php: WC_Cart::get_product_subtotal() |
Get the product row subtotal. |
includes/class-wc-cart.php: WC_Cart::get_cart_shipping_total() |
Gets the shipping total (after calculation). |
includes/class-wc-tax.php: WC_Tax::get_tax_location() |
Get the customer tax location based on their status and the current page. |
includes/wc-cart-functions.php: wc_cart_totals_shipping_method_label() |
Get a shipping methods full label including price. |
includes/wc-product-functions.php: wc_get_price_excluding_tax() |
For a given product, and optionally price/qty, work out the price with tax excluded, based on store settings. |
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/widgets/class-wc-widget-price-filter.php: WC_Widget_Price_Filter::widget() |
Output widget. |
includes/class-wc-query.php: WC_Query::price_filter_post_clauses() |
Custom query used to filter products by price. |
includes/class-wc-coupon.php: WC_Coupon::get_discount_amount() |
Get discount amount for a cart item. |
includes/class-wc-cart-totals.php: WC_Cart_Totals::calculate_discounts() |
Calculate COUPON based discounts which change item prices. |
includes/class-wc-cart-totals.php: WC_Cart_Totals::get_items_from_cart() |
Handles a cart or order object passed in for calculation. Normalises data into the same format for use by this class. |