xejay Posted October 21, 2010 Share Posted October 21, 2010 Hello, i want make one thing, when click on product "view" button, page of product more information open in popup window.I know that changes must be in product-list.tpl at line 40 code: {l s='View'} Maybe anyone know how make this?Example here: http://auto.plius.lt/naudoti-automobiliai/?make_date_from=1994 click on article. Link to comment Share on other sites More sharing options...
rocky Posted October 22, 2010 Share Posted October 22, 2010 Change that line to: <a href="{$productLink}" title="{l s='View'}" target="_blank">{l s='View'} Link to comment Share on other sites More sharing options...
xejay Posted October 22, 2010 Author Share Posted October 22, 2010 I dont need blank page, i whant popup without navigation bar...Just only product page information Link to comment Share on other sites More sharing options...
rocky Posted October 23, 2010 Share Posted October 23, 2010 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 More sharing options...
overdoze Posted November 13, 2010 Share Posted November 13, 2010 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.tplvoici 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.openPouvez vous m'aider?cordialement Link to comment Share on other sites More sharing options...
Recommended Posts