![]() |
MultiSkin
When you go to http://www.x-cart.com/shopping_cart_demo.html you have a choice to demo different schemes. It adds ?multiskin=skin# to the end of the url and you get the corresponding skin.
Are they using the Skin Swap mod? Or something else? Thanks |
been looking at that - they have a slightly modified version of the xcart there for the demo - this includes a session/cookie that sets the skin to use.
nice mod - shame they haven't released it :( |
Isn't that false advertising? :lol:
|
be nice if this was the exact code that was released :)
|
Would be nice... Even if it was an add-on (that way I know updates would work).
It would really solve the problem that I have with personalized pages. Mabey it is unstable and that is why they haven't released it? |
Mabey it is unstable and that is why they haven't released it?
I doubt that's the reason. No further comment on why I think that... ;) |
it wouldn't be unstable - just want to keep it to themselves maybe :)
come on rrf - how about releasing it??? :wink: |
promise we wouldn't tell anyone :lol:
|
Ok.. so first off i'm not the php wiz (or smarty wiz at that) but I was/am screwing around with this.
What about going into smarty.php and putting in an if statement: Code:
if( $HTTP_GET_VARS['skin'] == 2){ Code:
if( $HTTP_GET_VARS['skin'] == 2){ It seems to work, but I know 0 (<-- thats a zero) about cookies. Will this break anything??? [Edit] I guess it would help if i finish a thought. I know 0 about putting this in a cookie, so the url doesn't always have ?skin=# in it [/Edit] |
Ok.. I'm about to go home from work and wont be able to play with this for awhile but:
Code:
if( $HTTP_GET_VARS['skin']){ Not being a php guru is there a way to use a switch statement to make this cleaner/add more skins easier? Also, there is the problem of switching back to the 1st skin, when the cookie is set to skin2 and you put a ?skin=1, the cookie is updated but skin2 shoews till you hit refresh because of : Code:
if(( $HTTP_COOKIE_VARS['skin'] == 2) || ( $HTTP_GET_VARS['skin'] == 2)){ Again, this just shows how little I know of php. :( Going to do some looking, but any help is apprecieated. |
All times are GMT -8. The time now is 05:10 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.