Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Restoring templates in 4.4?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-20-2011, 01:48 AM
 
privateer privateer is offline
 

Advanced Member
  
Join Date: Apr 2011
Posts: 34
 

Default Restoring templates in 4.4?

Am currently evaluating X-cart 4.4. Have added test products, tweaked CSS and edited TPL files enough to have a good idea of how to proceed.

But, I can't see where the Restore templates commend has gone in the 4.4. admin control panel? It's mentioned in the Wiki/documentation as being on the Edit Templates page, but it's not visible on mine. I presume it's moved to a new position.

I'd like to revert to a standard set of files and and start again.

Anyone able to tell me where I should be looking?
__________________
X-cart 4.4.2 with:
* System Messages mod by CFL Systems
Reply With Quote
  #2  
Old 04-20-2011, 03:33 AM
 
privateer privateer is offline
 

Advanced Member
  
Join Date: Apr 2011
Posts: 34
 

Default Re: Restoring templates in 4.4?

OK. Have now gone through the individual templates and used the 'Restore File' button for each one in turn.

Bit of a chore, though, so a pointer as to where the 'Restore All' button went would be useful.
__________________
X-cart 4.4.2 with:
* System Messages mod by CFL Systems
Reply With Quote
  #3  
Old 04-20-2011, 03:55 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Restoring templates in 4.4?

Easier to just re-upload the skin files via FTP
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 04-20-2011, 06:30 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Restoring templates in 4.4?

Take a note that if you are editing templates outside admin (for example with FTP editor) XC will not save copy of the file so you cannot restore from admin. And with 4.4.x there is no original files repository. So always make a backup of files before editing them
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Steel (10-15-2011)
  #5  
Old 04-20-2011, 06:49 AM
 
privateer privateer is offline
 

Advanced Member
  
Join Date: Apr 2011
Posts: 34
 

Default Re: Restoring templates in 4.4?

Thanks, chaps.

cfl - that's shocking! Presumably it's a 4.4.x (.2 I think I have) bug that qualiteam already know about? Think I need to get a better copy/backup routine going, if the admin panel is lacking. Noted for when I try Live Edit from Firebug.

Speaking of which, using Firebug for Live editing of X-cart's CSS files looks tricky. Because main.css seems to be delivered to the browser with a long cached/temporary name such as .../var/cache/_5da7331b075a9d2e0484daeb5c1a21b0.css
__________________
X-cart 4.4.2 with:
* System Messages mod by CFL Systems
Reply With Quote
  #6  
Old 04-20-2011, 06:52 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Restoring templates in 4.4?

It is not a bug, at least for me. You can, after install, just copy the whole skin directory as say skin_original so you can have it in case.

The second one - turn off speed up tools for js/css in admin general settings
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following 2 users thank cflsystems for this useful post:
privateer (04-20-2011), Steel (10-15-2011)
  #7  
Old 04-20-2011, 07:09 AM
 
privateer privateer is offline
 

Advanced Member
  
Join Date: Apr 2011
Posts: 34
 

Default Re: Restoring templates in 4.4?

Steve - you're a gent. Thanks for sharing re CSS. (cannot abide editing main.css through the admin panel's editor!)

Yes - 'bug' was overstating it. Going from a good built-in restore feature to 4.4's better-remember-to-do-it-yourself arrangment is just a bit backwards.

Actually, it's the documentation being in need of a thorough rewrite that's the bigger issue for me. I'm guessing that with v5 on the horizon, it may never happen for v4.4. So I'll get busy with the Search function here.
__________________
X-cart 4.4.2 with:
* System Messages mod by CFL Systems
Reply With Quote
  #8  
Old 04-20-2011, 01:10 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Restoring templates in 4.4?

Generally related to this topic, make sure your host is backing everything up and test the restore feature regularly, make a backup of any files you edit, and if you've downloaded the installer you should have it on your computer with all of the original files.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #9  
Old 04-21-2011, 12:38 AM
 
privateer privateer is offline
 

Advanced Member
  
Join Date: Apr 2011
Posts: 34
 

Default Re: Restoring templates in 4.4?

Cherie - I think you're right. I'm guessing that a lot of experienced XC store developers have a set of tools to help do these tasks efficiently. I'm still getting these tools together, and jumping from one control panel to another trying to make sure I don't miss something.

I'm coming from a proprietary cart where design+maintenance was all client side (using Access runtime) and the store was just uploaded as HTML pages. Never had to do much online, and backing up was all local.

Just another learning curve
__________________
X-cart 4.4.2 with:
* System Messages mod by CFL Systems
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:10 PM.

   

 
X-Cart forums © 2001-2020