| 
 | ||||||||||
|  | Shopping cart software Solutions for online shops and malls | |||||||||
|  |  |  | ||||||||
| 
			 
			#1  
			
			
			
			
		 | |||||||
| 
 | |||||||
|  popup image I want to get a popup when the customer come on our site. I found a generator for this, but where (which files) must i change to get the effect. This is the source of the generator. <!-- TWO STEPS TO INSTALL POPUP WINDOW: 1. Paste the first into the HEAD of your HTML document 2. Use the code to open the popup page on your site --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=1024,height=768,left = 0,top = 0');"); } // End --> </script> <BODY onLoad="javascript:popUp('http://www.mydomin.com/test/test.jpg')"> 
				__________________ ver 3.5.10 with a lot of customizing now testing 4.4.1 smartytemplate | |||||||
| 
			 
			#2  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   Both go in customer/home.tpl.  Just be sure to use {literal} tags around your code: {literal} insert code here {/literal} 
				__________________ Padraic Ryan Ryan Design Studio Professional E-Commerce Development | |||||||
| 
			 
			#3  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   Yes thats working, but when i click it away and then select a subcatory or a product the popup is comming up again? 
				__________________ ver 3.5.10 with a lot of customizing now testing 4.4.1 smartytemplate | |||||||
| 
			 
			#4  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   So you only want it on the front page?  You will need to put an {if} statement in there then. 
				__________________ Padraic Ryan Ryan Design Studio Professional E-Commerce Development | |||||||
| 
			 
			#5  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   sorry i'm a totaly newbie in that. Where must i put that? 
				__________________ ver 3.5.10 with a lot of customizing now testing 4.4.1 smartytemplate | |||||||
| 
			 
			#6  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   Try replacing your <body> tag in home.tpl with this: Code: 
 Replace the link to the popup with whatever you used. Be sure to make a backup of home.tpl first. 
				__________________ Padraic Ryan Ryan Design Studio Professional E-Commerce Development | |||||||
| 
			 
			#7  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   I did the the changes, the popup is showing but he's comming still again when i go to a subcat. 
				__________________ ver 3.5.10 with a lot of customizing now testing 4.4.1 smartytemplate | |||||||
| 
			 
			#8  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   Sorry, that code must only work for newer versions   
				__________________ Padraic Ryan Ryan Design Studio Professional E-Commerce Development | |||||||
|  | |||
| 
X-Cart forums © 2001-2020
 | |||