add_action( 'woocommerce_thankyou', 'whatconverts_tracking' ); function whatconverts_tracking($order_id) { if ($order_id > 0) { $order = wc_get_order($order_id); if ( $order instanceof WC_Order ) { $completion_date = empty($order->get_date_paid()) ? strtotime($order->get_date_created()) : strtotime($order->get_date_paid()); $current_date = new Datetime(); $time_difference = $current_date->format('U') - $completion_date; if ($time_difference < 180) { $email = $name = $phone_number = $company = $address_1 = $address_2 = $city = $state = $postcode = $country = ''; if (!empty($order->get_billing_email())) $email = $order->get_billing_email().' '; if (!empty($order->get_billing_first_name())) $name .= $order->get_billing_first_name().' '; if (!empty($order->get_billing_last_name())) $name .= $order->get_billing_last_name(); if (!empty($order->get_billing_phone())) $phone_number = $order->get_billing_phone(); if (!empty($order->get_billing_company())) $company = $order->get_billing_company(); if (!empty($order->get_billing_address_1())) $address_1 = $order->get_billing_address_1(); if (!empty($order->get_billing_address_2())) $address_2 = $order->get_billing_address_2(); if (!empty($order->get_billing_city())) $city = $order->get_billing_city(); if (!empty($order->get_billing_state())) $state = $order->get_billing_state(); if (!empty($order->get_billing_postcode())) $postcode = $order->get_billing_postcode(); if (!empty($order->get_billing_country())) $country = $order->get_billing_country(); echo ''; } } } }
Free Shipping over $100
ROYAL SLEEP SUPPORT

Frequently Asked Questions

We accept Visa, MasterCard, Paypal and Zip. No surcharges

You may view the full terms and conditions for warranty here: Warranty Terms & Conditions
We can be contacted through our enquiry form here: Enquiry Here or by phone on 1300 133 599 You may also directly email us at sales@royalsleep.com.au

For metro delivery to Sydney, Melbourne, Brisbane or Adelaide please allow 3 - 6 working days. For all other metro and regional areas allow an extra 2 - 6 working days. Islands and other far remote areas may not be eligible for delivery.

You may view the full terms and conditions for returns here: Return & Refund Policy
Yes we do! We are located at Unit 1/191 The Horsley Drive, Fairfield NSW 2165 Opening hours are 9am to 5pm Mon - Fri and 9am to 3pm Saturdays. Closed Sunday