Jump to content

Product page "PopUp"


Recommended Posts

In that case, you will need to use Javascript. Try the following:

<a href="{$productLink}" title="{l s='View'}" onclick="[removed]window.open(url, 'myWindow', 'scrollbars=1,width=800,height=600,resizable=0')">{l s='View'}



Change [removed] to javascript followed by a :

This will open a popup that is 800x600, has scrollbars and isn't resizable. You can change those parameters if you want something different.

Link to comment
Share on other sites

  • 3 weeks later...

Bonjour
moi aussi ça m’intéresse se sujet.
je veux avoir un pop up qui s'ouvre automatiquement lorsque le client accède a la page nous-contacter,j'ai trouvé beaucoup descript java qui permettent d'ouvrir un pop up mais j'arrive pas a l'intégrer a la page contact-form.tpl
voici un exemple de code java

Place the following script between the <HEAD> and </HEAD> tags:

[removed]
function popup(Site)
{
window.open(Site,'PopupName','toolbar=no,statusbar=no,location=no,scrollbars=yes,resizable=yes,width=275,height=200')
}
[removed]

And add the following code into your <BODY> tag:

onLoad="popup('URL/to/popup.html')"



mais comme j'ai pas de balise <head> dans mon contact-form.tpl je l'ai mis a la fiche header.tpl mais smarty ne reconnait pas le syntaxe window.open

Pouvez vous m'aider?
cordialement

Link to comment
Share on other sites

×
×
  • Create New...