Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

1 popup per customer, how to?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-29-2009, 07:10 AM
 
bcam bcam is offline
 

Member
  
Join Date: May 2005
Posts: 26
 

Question 1 popup per customer, how to?

I'd like to add a DHTML popup to be displayed one time to every unique visitor regardless of which page they enter the store from. Any links or info would be appreciated. Thanks!

I found this page: http://www.htmlbasix.com/popup.shtml
It generates an html popup, but at least it has a cookie to prevent a visitor from seeing the popup multiple times.
The only thing I need to do is insert this code. How would I be able to do it so that it appears on every page?
__________________
X-Cart Gold 4.4.2
Linux VPS
Reply With Quote
  #2  
Old 11-29-2009, 09:00 AM
 
Pyro Pyro is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 506
 

Default Re: 1 popup per customer, how to?

Hi,

I do not know much about that particular pop up, but if you wanted it on every page I would put it in your footer.


/customer/bottom.tpl is the closest I could find to the footer. There should be a file with

</div> </div> </body> </html>

in it, but as of now, I dont know where exactly. If you find it, let me know [=
__________________
Best Wishes,
James

4.5.2 Gold (work in progress)
Reply With Quote
  #3  
Old 11-29-2009, 09:12 AM
 
Pyro Pyro is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 506
 

Default Re: 1 popup per customer, how to?

Just an update,


The code I mentioned before can be found in /customer/home.tgl

I would put your code before </div> </div> </body> </html>.



Good luck
__________________
Best Wishes,
James

4.5.2 Gold (work in progress)
Reply With Quote
  #4  
Old 11-29-2009, 04:06 PM
 
bcam bcam is offline
 

Member
  
Join Date: May 2005
Posts: 26
 

Default Re: 1 popup per customer, how to?

Great, thanks for the help. I'll try it and let you know.
I think something that can't be stopped by a popup blocker would be best, but anything will be good for now.
I think a small popup will help advertise coupon codes and other sales.
__________________
X-Cart Gold 4.4.2
Linux VPS
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:21 AM.

   

 
X-Cart forums © 2001-2020