1and1 Help Centre Categories

print article

How to reload the shop frameset if a shop page is called up directly

To load your shop's frameset if a page is called directly, insert the following
JavaScript code under eShop -> Settings -> Advanced settings -> Text Modules 1
-> Global texts for all shop pages. Here you will see HEADER at the beginning of
all shop pages'


<script language="JavaScript">
<!--

if(top.frames.length ==0){
if (Function.encodeURICComponent) {
loc=encodeURICComponent(location.href);
} else {
loc=escape(location.href);
while(loc.match('/')) {
loc=loc.replace('/',"%2F");
}
while(loc.match(unescape('%5C')+'+')) {
loc=loc.replace('+',"%2B");
}
}

top.location.href='https://nowshopbetter.com/?main_url='+loc;

}
//-->
</script>
Change the text in red to reflect your website name. If you are using our
proxy SSL then, it will be https://sslrelay.com/yourdomain.com. If you have your
dedicated SSL Certificate, then use https://yourdomain.com