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)
-   -   XCart 4 - How to know which template is used in a particular section of the page? (https://forum.x-cart.com/showthread.php?t=72652)

aneel13 08-23-2015 11:16 PM

XCart 4 - How to know which template is used in a particular section of the page?
 
I have a couple of questions concerning the XCart 4 templates:

1) How to know which template is used in a particular section of the page?
2) I am developing new modules, so how can I make sure that my tpl files are being used instead of tpl files from some other modules?

chamberinternet 08-24-2015 12:35 AM

Re: XCart 4 - How to know which template is used in a particular section of the page?
 
Not 100% on the answer to the 2nd question..
But on your 1st query - I would enable Debug Mode which outputs all the smarty variables and tpl files being used on any given page.

cflsystems 08-24-2015 05:14 AM

Re: XCart 4 - How to know which template is used in a particular section of the page?
 
1. admin general setting - debug mode.
You can also enable development mode from config.php if you want to see all php messages

2. XC4 is not like XC5 - whatever template you tell it to use that would be the one to use. The change is manual so another module will not run its templates unless files are modified to do so.

razortw 08-25-2015 04:11 AM

Re: XCart 4 - How to know which template is used in a particular section of the page?
 
Quote:

Originally Posted by aneel13
I have a couple of questions concerning the XCart 4 templates:

1) How to know which template is used in a particular section of the page?
2) I am developing new modules, so how can I make sure that my tpl files are being used instead of tpl files from some other modules?

1. Use the 'Webmaster mode', it will show you the whole structure of templates on the current page. Check the 'Tools' > 'Webmaster mode' section in your admin area to activate it.
2. You will need to manually specify templates you'd like to use in your code. X-Cart 4 will not overwrite them.

aneel13 08-25-2015 04:22 AM

Re: XCart 4 - How to know which template is used in a particular section of the page?
 
After debug and webmaster mode on. Only the colour has changed for the site. How to find out the tpl files being used?

razortw 08-25-2015 10:11 AM

Re: XCart 4 - How to know which template is used in a particular section of the page?
 
Quote:

Originally Posted by aneel13
After debug and webmaster mode on. Only the colour has changed for the site. How to find out the tpl files being used?

A popup with the tempalte structure should appear once you enable the webmaster mode.
Please make sure that popup windows are allowed in your browser.

aneel13 08-25-2015 08:08 PM

Re: XCart 4 - How to know which template is used in a particular section of the page?
 
Yes got it


All times are GMT -8. The time now is 12:57 AM.

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