Welcome to WebmasterWorld Guest from 18.104.22.168 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Wordpress - How to break out of URL frame on secure checkout rooze msg:4602170 5:58 pm on Aug 15, 2013 (gmt 0) Hi Folks, 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? Any ideas? Cheers Rooze
lorax msg:4605430 1:56 pm on Aug 28, 2013 (gmt 0)
Welcome to WebmasterWorld rooze, If I understand you correctly, you want the URL to switch to the .com version when the user clicks checkout. Technically this could be accomplished using htaccess but before doing this I would ask the question of how does woocommerce track the items in the cart? Will the user lose their cart contents when the switch is made? Which also leads me to ask, why are you using .au? Why not just focus your marketing efforts on Australian resources and stick with the .com?