Hi all,
I have an issue with my site and i am putting it out there to your assistance. When I add a product to my cart and then select to view my cart, the cart displays as "uberoom.asia", as it should. But then when I proceed onto the "checkout" the url alters to "worldsystems" to which if I then click back through any of the menu links from the checkout form it holds the worldsystems url. Can i alter this in my site settings so that any reference to the "worldsystems" URL is displayed as "uberoom.asia"
Test for yourselves... http://www.uberoom.asia/chairs/chairs-dining/eames-dcw-pony
cheers
Shane
You will need to use JavaScript to achieve this. You'll need to place the JS code in the template's not assigned to the registration - buy and receipt - buy layouts where it will check what current URL is used. If it's not the default URL, you will then be redirected to that URL. An example of this can be found here: http://kb.worldsecuresystems.com/598/bc_598.html#main_Returning_a_cust omer_to_a_default_URL_after_viewing_the_receipt_page.
Hello....
Thanks for you assistance... However it didnt seem to work. I placed the following js into my shopping cart and reciept templates as you mentioned, but its still referring me back to the uberoom.worldsecuresystems.com url.??
---
var siteUrl = 'http://www.uberoom.asia';
var links = document.getElementsByTagName('A');
for (i = 0; i < links.length; i++)
{
if (links[i].getAttribute('href'))
{
var href = links[i].getAttribute('href');
if (href.substring(0,4) != 'http' && href.substring(0,1) == '/')
{
//this example requires your links to have absolute paths.
//document-relative paths and absolute URLs are not supported.
links[i].setAttribute('href', siteUrl + href);
}
}
}
---
cheers
Shane
North America
Europe, Middle East and Africa
Asia Pacific