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)
-   -   templating in 4.2.2 and folder structures (https://forum.x-cart.com/showthread.php?t=57941)

zone1creative 02-07-2011 02:47 AM

templating in 4.2.2 and folder structures
 
Hi,

I have built a number of xcart stores in 4.2.2 and have just started using 4.4.2 today.

From what I can see the skin folder now contains a common files and a folder for each template.

I can understand why this has been done, so that you can switch between the pre installed themes easily.

However, I am finding it difficult to implement a new custom theme as i have to find template files across two folder structures.

What decides if a file should be in common_files/customer or {yourtheme}/customer?

Should I not touch the files in common_files at all and just edit {yourtheme}/customer?

Is the idea that a file in your theme folder overrides a file in the common_files folder.

I have read through the latest menual updates and there is no explanation for this.

Any ideas?

cflsystems 02-07-2011 02:57 AM

Re: templating in 4.2.2 and folder structures
 
I think the way ot works is that XC is looking for the file in {yourtheme} - if it finds one will use it if not will use the one form common_files. You can leave common_files as is and any template you want to change just recreate files structure in {yourtheme} and have copy of that file there.

zone1creative 02-07-2011 03:04 AM

Re: templating in 4.2.2 and folder structures
 
Thanks for that.

Should have asked this from the beginning before hacking away at the common_files.

That all makes sense and much better way of doing it


All times are GMT -8. The time now is 11:53 PM.

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