| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Change background according to season | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Change background according to season
Just a simple little mod to change the background according to the season
Create your background images - winter.png / spring.png / summer.png / autumn.png Upload your images to skin/common_files/images/seasons ( v4.3.x and below, upload to skin1/images/seasons ) Then add this code to the end of skin/common_files/service_head.tpl ( v4.3.x and below, add to skin1/customer/home.tpl before </head> ) Code:
Or, here's a pure Smarty version... Code:
__________________
xcartmods.co.uk |
|||||||
|
#2
|
|||||||||
|
|||||||||
Re: Change background according to season
Very funny. Thanks my friend. Christmas is coming!
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
|
#4
|
|||||||||
|
|||||||||
Re: Change background according to season
Please note starting with Smarty v3, {php}{/php} tag is deprecated. Those who use Smarty 3 patch supplied by qualiteam should know this is not working at all. You should make modification in php file then call the variable in template file.
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
|
#6
|
|||||||||
|
|||||||||
Re: Change background according to season
Nice!
Seems you could avoid {php} and use something like this: PHP Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|