E-Junkie Forum http://www.e-junkie.com/bb/ E-Junkie Forum RSS en-us Copyright 2012, 19.5 Degrees. All rights reserved. webmaster@e-junkie.com webmaster@e-junkie.com Mon, 3 Aug 2009 15:03:15 GMT Fri, 10 Feb 2012 18:22:44 GMT 681 E-JUNKIE 5 E-Junkie Forum http://www.e-junkie.com/bb/ http://www.e-junkie.com/ej/logo.gif 290 104 Post #3 http://www.e-junkie.com/bb/topic/3558/pg/0#post10938 http://www.e-junkie.com/bb/topic/3558/pg/0#post10938 Mon, 3 Aug 2009 15:03:15 GMT
I added a line to also change the page title:
document.title = "[%item_name%] - Merci pour votre achat";

New script:

=============================


<style type="text/css">
.mybox
{
margin:10px 30px;
font-size:16px;
text-align:center;
border:solid 1px #000000;
padding:10px;
background-color:#ECECEC;
}
.mybox a
{
font-weight:bold;
text-decoration:underline;
}
</style>

<div id="myinfo" class="mybox" style="display:none;">
Veuillez <a href="javascript:document.forms[0].submit();">cliquer ici</a> pour télécharger [%item_name%]
</div>

<script language='JavaScript'>
document.forms[0].style.display = "none";
document.getElementById("myinfo").style.display = "block";
document.title = "[%item_name%] - Merci pour votre achat";
</script>

<noscript>
<div id="myinfoNoJs" class="mybox">
Veuillez cliquer sur le bouton "Click here" ci-dessus pour télécharger [%item_name%].
</div>
</noscript>


=============================]]>
E-junkie Discussions; jl
Post #2 http://www.e-junkie.com/bb/topic/3558/pg/0#post10938 http://www.e-junkie.com/bb/topic/3558/pg/0#post10938 Mon, 27 Jul 2009 15:47:19 GMT E-junkie Discussions; DingalaBlog Post #1 http://www.e-junkie.com/bb/topic/3558/pg/0#post10938 http://www.e-junkie.com/bb/topic/3558/pg/0#post10938 Wed, 22 Jul 2009 20:35:32 GMT

Modify and use this html as your "Message" on your thank you/download page to change its language.

What it does:

- If javascript is disabled, it only adds a message in the language you target: "click the 'click here' button above to download [YOUR PRODUCT]".

- If javascript is enabled, it hides the current english "Click here to download" text and it adds a custom text and link to download the product, in the language you want.


I hope e-junkie team will develop a way to change this text in our account, without the need to use such workaround!


The following example is in french. You can change the text to fit the language you want to use. Of course you can also change the css.

=============================


<style type="text/css">
.mybox
{
margin:10px 30px;
font-size:16px;
text-align:center;
border:solid 1px #000000;
padding:10px;
background-color:#ECECEC;
}
.mybox a
{
font-weight:bold;
text-decoration:underline;
}
</style>

<div id="myinfo" class="mybox" style="display:none;">
Veuillez <a href="javascript:document.forms[0].submit();">cliquer ici</a> pour télécharger [%item_name%]
</div>

<script language='JavaScript'>
document.forms[0].style.display = "none";
document.getElementById("myinfo").style.display = "block";
</script>

<noscript>
<div id="myinfoNoJs" class="mybox">
Veuillez cliquer sur le bouton "Click here" ci-dessus pour télécharger [%item_name%].
</div>
</noscript>


=============================]]>
E-junkie Discussions; jl