| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
working on new skin | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
working on new skin
I'm working on a new skin for my store, and you know what it's like, it's much easier and quicker to test on the actual site than on a copy etc...I know, not a good idea...
so, I'd like to be able to work on a new skin on the live site, without disrupting the current one. My thought was why can't I add in an if statement somewhere, so that if a particular user was logged in, it used the skin2 directory rather than skin1, then as long as I am logged in with the right user, I will see the new skin, but everyone else will still see the old one. I've narrowed it down to smarty.php that sets the skin folders etc, but I can't tell when this file actually runs, it doesn't appear in my webmaster mode, can I just add an if to this to change the settings for 1 user?
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
#2
|
|||||||
|
|||||||
Re: working on new skin
Amy,
If I were you, I would clone your site into a /dev/ directory The only pitfalls is that if you don't clone the database, any language variables that you edit will appear on the old (live) store. So clone the database too for dev purposes, and KEEP A LOG of the language vars that you edit. When you're ready to bring dev live, hopefully you have command line SSH access, as that makes this EXTREMELY easy.... just backup, make a tarball, etc... then expand whee you need it. update the language vars and that's that. This is not the ONLY way, but one way that preserves your live site and allows you to really test the new skin. Good luck. Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#3
|
|||||||||
|
|||||||||
Re: working on new skin
Thanks,
thats just a real hassle, and takes up a huge amount more server space, we've got thousands of products and images etc, and without it all it's easy for a skin to break, It's not huge changes I'm trying to make to the skin, and I've nearly got it working where it uses a different skin folder for me, in smarty.php: Code:
I just keep getting the error: Error: Smarty error: the $compile_dir '' does not exist, or is not a directory I have created the new folders in xcart/var but it doesn't like it. If I leave the $compile_dir as templates_c it works, but I'm worried about it overwriting complied files etc and messing up the live skin.
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: working on new skin
there is a skin swap mod out there.
__________________
xcart 5.1.2 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|