WooCommerce Order Received Condition

This WooCommerce Order Received code simply allows you to check whether the page is the Order received condition simply checks to see if the page is the “Order Received” page and returns true if it is or false if it isn’t.

You can switch the true/false conditions manually as needed.

Breakdance Example

Go to Advanced > Conditions and select the Custom PHP condition. Then paste the code in the PHP Editor.

function Code

<?php

if ( is_checkout() && is_wc_endpoint_url('order-received') ) {
  return true;
} else {
  return false;
}

?>
Leave a Reply

Your email address will not be published. Required fields are marked *

    Table Of Contents

    Related Content

    © 2020-2024 Luxibay
    Name(Required)
    Please let us know what's on your mind. Have a question for us? Ask away.
    This field is for validation purposes and should be left unchanged.