Zen Cart Logo
Forums / Features Wish List / Web theme

Web theme

Locked

Views: 1,898

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
12 Jun 2006, 4:38 AM
#1
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Web theme

hi all,

i wish ZC v1.3.0.1 have the web color theme where visitor may switch the color apperance of the website according to their like! that's all, thanx... :thumbsup:

12 Jun 2006, 9:22 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Web theme

tajul_ashyqin:

hi all,

i wish ZC v1.3.0.1 have the web color theme where visitor may switch the color apperance of the website according to their like! that's all, thanx... :thumbsup:Split your stylesheet into two to separate those bits that will change when the user selects a different color scheme. Then create buttons on your site that load a different stylesheet depending upon which button is pressed. Normally this controlled using javascript, but we use so much php in Zen Cart that you might prefer to keep it simple and allow the whole page to refresh.

Then you have to decide whether this will be a temporary change for this user i.e. just stored in a session variable, or whether you want it to be persistant. If it's the latter, then you will need to store the user's color preference which means either creating and writing a new field in the customer record in your database, or writing a cookie to the users PC.

13 Jun 2006, 12:14 AM
#3
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: Web theme

thanx kuroi for the suggestion! actually, its beyond my capabilities as i am not only new to ZC but also new to pHp and mySQL things...but since i used ZC, i learn a lot especially thru these forum! if you have time, can you assist me on these only if it is possible to do?! btw, can we do advertisement something like when visitor visit the first page, there's some sort of splash advertisement suddenly popup to yor screen!

see here: http://www.utusan.com.my the splash advertisement (i think that's the name!) by HONDA.

13 Jun 2006, 8:56 AM
#4
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: Web theme

any thoughts kuroi?! :mellow:

13 Jun 2006, 7:08 PM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Web theme

Hi Tajul

My suggestion for switching stylesheets is completely independent of anything in Zen Cart and can be applied to any site. Here's a step-by-step explanation of how it can be implemented.

The technical term for what you are enquiring about in your second post is a "pop up ad". These are generally frowned upon. Personally I have them blocked by my browser and avoid sites that try to foist them on me and other users. Not surprisingly then, I have never spent time working out how to make them and have no useful advice on the matter other than ... don't do it! :no:

14 Jun 2006, 12:24 AM
#6
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: Web theme

thanx buddy! :thumbsup: your totally zenned!:yes:

17 Jun 2006, 12:10 PM
#7
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Web theme

Theme switcher demo at
http://mistily.com/zendemo/index.php
together with event countdown box, which changes
to mp3 player box on login

19 Jun 2006, 1:02 AM
#8
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: Web theme

wow misty,

that was great! your awesome...how did you do that?! and i like the templates design of yours...:thumbsup: