Woocommerce Conditions, If Statement, Functions

Woocommerce Conditions

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.




    Full-Service Agency

    Here at PrefrCo, we’re on a mission to create opportunities for clients. We believe nothing is more important than partnerships that drive long-term business success. Our diverse team maximizes impact for our clients. We outthink the competition, not outspend them.

    It goes without saying that we’re big fans of purpose-driven design. We craft innovative digital experiences to give your customer’s the most effective interaction with your brand. We understand the time and effort it takes to build an audience in today’s digital world, which is why we value efficiency, security and custom solutions above all else.

    • Website Development 
    • Responsive Design
    • Website Accessibility
    • Search Engine Optimization
    • Hosting & Server Management
    • Email Marketing

    Looking to take control of your online social presence? Look no further. We’ll monitor your brand, industry and competitors and create relevant content that keeps your business ahead of the curve. All with the goal of gaining customer loyalty and confidence in your brand.

    • Platform & Reputation Management
    • Review Monitoring
    • Organic Posting
    • Paid Social Advertising

    Customized conversion tracking? Personalized analytics programs? Dedication to data-informed decisions? Check, check and check! Our in-house data team sifts through large data sets every day to provide our clients with valuable insights and the highest possible return on investment. In short, data drives everything we do.

    • Ad Tracking & Measurement
    • Custom Reporting & Analysis 
    • A/B Testing
    • Market & Industry Research
    • Conversion Rate Optimization