X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   best practices? (https://forum.x-cart.com/showthread.php?t=55998)

upupcreative 10-12-2010 05:31 PM

best practices?
 
So, I'm new to X-Cart, and so far I feel like I'm figuring things out alright, but I have one question I'd love to have some of you experts weigh in on.

I've noticed that there is a lot of built-in overlap -- the main template files (i.e. those in the common_files directory) and then the skin templates (i.e. those in the directory of each skin.

I'm curious: when you make modifications, when do you choose to edit the skin version and when do you choose to edit the common version? Is there a reason to choose one or the other for a specific modification?

I've made so many customizations to my skin that it's practically its own new thing now and I don't anticipate EVER switching to another skin, but I'm just wondering what the experts advise.

Thanks!
Julie

cflsystems 10-12-2010 06:11 PM

Re: best practices?
 
Combine all in one css file, delete redundant code, clean it up and load only this file.

balinor 10-12-2010 07:27 PM

Re: best practices?
 
Yea, combine all into one CSS file. The templates don't actually overlap - there are a few in the actual skin directory and those take priority over the common_files ones, so you only need to edit in one place. Delete the duplicates if it makes it less confusing, I do.

xplorer 10-12-2010 11:02 PM

Re: best practices?
 
Hi!

The multi-folder template system makes sense when you have a base layout and several color variations. If your custom theme is based on a default X-Cart skin (and just overrides a couple of files) just copy and modify a skin template folder - that will allow you to apply X-Cart patches on the unmodified main templates files without affecting/corrupting your custom modifications. If your custom theme is a completely new solid skin, there is no need to split it into two folders. However, more likely, in this case you'll have to manually apply X-Cart patches on your template files (if needed).


All times are GMT -8. The time now is 07:33 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.