Woocommerce Conditions, If Statement, Functions

Woocommerce Conditions

is_ajax() Returns true when the page is loaded via ajax.
is_shop() Returns true when on the product archive page (shop).
is_account_page() Returns true on the customer’s account pages.
is_checkout() Returns true on the checkout page.
is_cart() Returns true on the cart page.
is_product() Returns true on a single product page. Wrapper for is_singular.
is_product_tag() Returns true when viewing a product tag archive
is_product_category() Returns true when viewing a product category archive.

Endpoint

is_wc_endpoint_url()
Returns true when viewing a WooCommerce endpoint
is_wc_endpoint_url( 'order-pay' )
When the endpoint page for order pay is being displayed.
is_wc_endpoint_url( 'order-received' )
When the endpoint page for order received is being displayed.
is_wc_endpoint_url( 'view-order' )
When the endpoint page for view order is being displayed.
is_wc_endpoint_url( 'edit-account' )
When the endpoint page for edit account is being displayed.
is_wc_endpoint_url( 'edit-address' )
When the endpoint page for edit address is being displayed.
is_wc_endpoint_url( 'lost-password' )
When the endpoint page for lost password is being displayed.
is_wc_endpoint_url( 'customer-logout' )
When the endpoint page for customer logout  is being displayed.
is_wc_endpoint_url( 'add-payment-method' )
When the endpoint page for add payment method is being displayed.