X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   1 popup per customer, how to? (https://forum.x-cart.com/showthread.php?t=51027)

bcam 11-29-2009 07:10 AM

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?

Pyro 11-29-2009 09:00 AM

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 [=

Pyro 11-29-2009 09:12 AM

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

bcam 11-29-2009 04:06 PM

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.


All times are GMT -8. The time now is 03:29 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.