| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
XCart 4 - How to know which template is used in a particular section of the page? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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?
__________________
Regards, Aneel Sarwar X-Cart version: 5.2.10 Windows: 7 Modules: Free version modules |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() 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.
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() 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.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Quote:
2. You will need to manually specify templates you'd like to use in your code. X-Cart 4 will not overwrite them.
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() After debug and webmaster mode on. Only the colour has changed for the site. How to find out the tpl files being used?
__________________
Regards, Aneel Sarwar X-Cart version: 5.2.10 Windows: 7 Modules: Free version modules |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() Quote:
Please make sure that popup windows are allowed in your browser.
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
|
#7
|
|||||||||
|
|||||||||
![]() Yes got it
__________________
Regards, Aneel Sarwar X-Cart version: 5.2.10 Windows: 7 Modules: Free version modules |
|||||||||
|
|||
X-Cart forums © 2001-2020
|