rooze - 5:58 pm on Aug 15, 2013 (gmt 0)
Here's the task I'm looking to accomplish -
I have a wordpress site running woocommerce.
My site is a USA .com and I want to target Australia, so I've registered a .au version of my domain.
I've setup the .au version to point to my .com using a URL frame. So my australia visitors browse the site with the .au in the browser window, works great.
The problem is, when they make a purchase, it retains the .au when they move to the secured checkout, and HTTPS isn't shown in the browser.
So I need to bust them out of the URL frame when they hit the checkout button.
Obviously woocommerce has a checkout.php page but it calls the standard theme header, so I can't use Java in the header, as it would break them out as soon as they load the home page.
I'm thinking maybe there's a way to do it in .htaccess but I've no idea how.
Or maybe there's a line of php which can go in the checkout.php page?