| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
x-cart 4.1.3 Xmas Lights, Snow, countdown to xmas auto start in December | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
x-cart 4.1.3 Xmas Lights, Snow, countdown to xmas auto start in December
Ok, this is a mod which incorporates Boomers Xmas Lights and TelaFirma snow mod and my run up to xmas wording. It automatically starts in December with a IF command, so you can keep this always on your site and the 1st December (or any date you want) it will come into action in your x-cart :
If anyone knows any other neat JavaScripts for Christmas I would like to see them posted here if possible. OK, let▓s start, 1st of all, the link to Boomers / TelaFirma code on this forum ( http://forum.x-cart.com/showthread.php?t=17695 ) just for a reference, but I will post it in my posting here anyway. The two files we are changing are: /your_shopcart/skin1/customer/home.tpl and /your_shopcart/skin1/head.tpl The two JavaScripts we are adding are: /your_shopcart/skin1/snow.js and /your_shopcart/skin1/daystochristmas.js The Image and Flash file we are adding are: /your_shopcart/skin1/images/snow3.gif http://www.theshisha.com/shopcart/skin1/images/snow3.gif /your_shopcart/skin1/images/lights.swf To make life easy for you I have attached these 4 files in a downloadable zip file with there directory structure. (4 KB) The snow.js which needs to be uploaded to /your_shopcart/skin1/snow.js Code:
The daystochristmas.js which needs to be uploaded to /your_shopcart/skin1/daystochristmas.js Code:
Now to the changes of you 4.1.3 xcart files, please make backups before changing the head.tpl and home.tpl files. First the home.tpl file at /your_shopcart/skin1/customer/home.tpl After your </head> place the following code: Code:
Now the mod to the head.tpl at /your_shopcart/skin1/head.tpl Find this codeing: Code:
And replace it totaly with: Code:
I have selected that this code will display at the begining of November as a count down to Christmas, so my customers can be reminded You may find a better way to insert this code, but i wanted the code to be displayed on every page at the top. If you are looking at this post in November you can go to http://www.theshisha.com/shopcart/home.php to see this code in action, and in December you can go to the same site to see the Lights and Snow and anything else I think of between now and December. Please feel free to comment and make the code better, I know we have some xcart experts on this forum that can improve this code, thats why i posted what i have done up to now
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24 PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART Shop carts at http://www.nightscene.co.uk/shop/home.php http://www.theshisha.net/shopcart/home.php http://www.system-maintenance.com/maint/home.php http://www.tabac4u.com |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: x-cart 4.1.3 Xmas Lights, Snow, countdown to xmas auto start in December
Here is another version of the head.tpl change keeping the original x-cart build code intact and adding the new days to christmas code. You may not want the "Printable Version" to appear to the right on your main front page.
You will notice the code is within the IF statements and I have selected 11, being November, so any month greater than 11 (November) which will be December the above (Snow and Christmas lights) will be displayed. To test just set > 11 to > 9 for this month (10) October. Now the mod to the head.tpl at /your_shopcart/skin1/head.tpl Find this original codeing: Code:
And replace it totaly with: Code:
This way you keep the original x-cart code and the "Printable Version" does not appear on the main home page. But when the month is November (in this displayed code), you get the reminder to christmas message displayed on the home page without the "Printable Version" being displayed. But this message will not be displayed on any pages that has the "Printable Version" command if you have it enabled, like the categories menu or the products page or compare page (if you have this installed) Also if you have the "Printable Version" switched off (un ticked) in you admin section (General settings - Appearance Options - Miscellaneous - Enable printable version of categories and products pages in customer area) then you will get the "Just a reminder.... There are ?? days to christmas" message on all pages with this above code. I prefer the 1st head.tpl code I posted as I am happy to have the "Printable Version" displayed on my home page, if they want to print it out why not, it should always be enabled for me
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24 PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART Shop carts at http://www.nightscene.co.uk/shop/home.php http://www.theshisha.net/shopcart/home.php http://www.system-maintenance.com/maint/home.php http://www.tabac4u.com |
|||||||||
#3
|
|||||||
|
|||||||
Re: x-cart 4.1.3 Xmas Lights, Snow, countdown to xmas auto start in December
will this work under 3.5.10?
__________________
ver 3.5.10 with a lot of customizing now testing 4.4.1 smartytemplate |
|||||||
#4
|
|||||||||
|
|||||||||
Re: x-cart 4.1.3 Xmas Lights, Snow, countdown to xmas auto start in December
Yo can also added a walking santa, snowman or tree in the head page.
For the santa all you need is the santa.gif file thats attached and place this in your_shop_cart/skin1/images/custom/santa.gif. Then in your head.tpl at /your_shopcart/skin1/head.tpl look for the following code: Code:
And replace it with: Code:
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24 PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART Shop carts at http://www.nightscene.co.uk/shop/home.php http://www.theshisha.net/shopcart/home.php http://www.system-maintenance.com/maint/home.php http://www.tabac4u.com |
|||||||||
#5
|
|||||||
|
|||||||
Re: x-cart 4.1.3 Xmas Lights, Snow, countdown to xmas auto start in December
1) It's October
2) It slows your site down completely 3) You're insane
__________________
xcartmods.co.uk |
|||||||
#6
|
|||||||
|
|||||||
Re: x-cart 4.1.3 Xmas Lights, Snow, countdown to xmas auto start in December
Quote:
Phil, you crack me up. LOL. I guess for some merchants, it's never too soon for Christmas. I'm in full swing on my holiday prep right now -- just went to press on the holiday catalog, we just closed a deal to be in 2 big charity (holiday) events in December, and we got picked up by a national US "afternoon talk show that isn't Oprah" for their "holiday gift show" (fortunately/unfortunately, Oprah's Favorite Things is no longer... after everyone in the audience received a Pontiac - it was no longer about Oprah finding cool products and giving them away -- it was how much the sponsors were willing to pay for the spot... Oprah got wise and just pulled the plug) -- -- so with that said, it's Ho-Ho-Ho around here 24/7 -- but I wouldn't put snowflakes on my site for at least 5 more weeks.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#7
|
|||||||||
|
|||||||||
Re: x-cart 4.1.3 Xmas Lights, Snow, countdown to xmas auto start in December
philJ, i am testing it at the moment with other scripts, so thats why i have got it working today, if you look now its turned off until December.
As for slowing the site down, yes it does, thats why i have been just looking at the snow effect on the header only and not all the page, and below is the mod for this. Attached is the snow_header.js file, its currently set at 150 height, just adjust to your setting. Then in the head.tpl file at /your_shopcart/skin1/head.tpl place the code: Code:
The > 11 means it only will work in December PhilJ Attached are some snow flakes you might want to use, naturally the small the file size the better it will load. I loaded the snow flakes into /your_shopcart/skin1/images/ directory. Oh and PhilJ, I am not insane, just testing to see if it works, there is a difference
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24 PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART Shop carts at http://www.nightscene.co.uk/shop/home.php http://www.theshisha.net/shopcart/home.php http://www.system-maintenance.com/maint/home.php http://www.tabac4u.com |
|||||||||
#8
|
|||||||
|
|||||||
Re: x-cart 4.1.3 Xmas Lights, Snow, countdown to xmas auto start in December
Are you serious? You are actually putting an animated santa on a live e-commerce site? Might as well add blinking text, a visible hit counter and one of those animated e-mail icons from the 90s too...
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||||
|
|||||||||
Re: x-cart 4.1.3 Xmas Lights, Snow, countdown to xmas auto start in December
Or a snowman, yes, why not its only for one month of the year, might put a christmas tree as well, will see how i feel.
It will get my customers into the Christmas spirit Balinor, good idea for the blinking text and the hit counter, and animated e-mail icon from the 90's do you have any that i can use
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24 PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART Shop carts at http://www.nightscene.co.uk/shop/home.php http://www.theshisha.net/shopcart/home.php http://www.system-maintenance.com/maint/home.php http://www.tabac4u.com |
|||||||||
#10
|
|||||||
|
|||||||
Re: x-cart 4.1.3 Xmas Lights, Snow, countdown to xmas auto start in December
Shisha ...
As PhilJ says, you are insane ... but ... I love your site and all its oldies ... At least ... it is the more original site I've seen for a long time. And your mods are always a source of great inspiration ... My best regards Erick
__________________
X-Cart 4.0.18 Telafirma Mod - Bcse Mods Ruby Mod - Firetank Mods |
|||||||
|
|||
X-Cart forums © 2001-2020
|