Good Afternoon;
I have an issue with OpenCart; it seems no matter which template I use the default contact page doesn't use the contact.tpl file; even after forcing it via the page; I've created a new Layout and pointed it to /information/contact2 and even /information/contact2.tpl and it still doesn't work.
It always always always defaults to the information.tpl file instead;
Any Ideas? Because this is really annoying!
Thanks
I have an issue with OpenCart; it seems no matter which template I use the default contact page doesn't use the contact.tpl file; even after forcing it via the page; I've created a new Layout and pointed it to /information/contact2 and even /information/contact2.tpl and it still doesn't work.
It always always always defaults to the information.tpl file instead;
Any Ideas? Because this is really annoying!
Thanks
Version? Pointed how -- as A HREF or how? Why not an information2.tpl or similar? Calls accounted for among model/, controller/, language/, template/ .php and .tpl files (notice among directories and files that they cluster by same names)?
I know you're trying to help but I find it hard to bite my tongue when the answer to your questions mainly reside in the original post, but to clarify:
Default Contact TPL goes:
/information/contact
The version is however 1.5.5.1 and pointed via the site admin where you can select a different LAYOUT.
THanks
Tried:
/information/contact2
and also:
/information/contact2.tpl
/information/contact.tpl
Default Contact TPL goes:
/information/contact
The version is however 1.5.5.1 and pointed via the site admin where you can select a different LAYOUT.
THanks
Tried:
/information/contact2
and also:
/information/contact2.tpl
/information/contact.tpl
That it is NOT going TO where you thought you were pointing whatever you created means it is NOT "pointed" there. You are trying "contract" .tpl and it wants "information" .tpl. Asking POINTED HOW AND WHERE TO is scarcely ignoring your dilemma. If you are completely determined to do something a wrong or not quite right way, then what is "really annoying" isn't springing from OC, your saddle has swung under your high horse. Good luck with it.
Hey cwdltd, I am trying to do the same thing.
For some reason many of the developers seem to have a very low tolerance against noobs. Not the first time I have seen this type of answer to a completely legitimate question. One might wonder why they don't try to blind us with their brilliance by answering our questions instead of trying to be clever.
I am running OC 1.5.6, and have followed the guide on http://docs.opencart.com/display/opencart/Layouts, and am trying to change the template for an information page. I want to add a particular image to all pages using this layout and it looked simpler than using VQmod.
What I am starting to wonder is whether the tpl page needs a corresponding controller file, and if so, why isn't this stated in the guide in the docs?
Gonna give this another hour or so to see if I can come up with a solution, if so, I'll keep you posted here.
For some reason many of the developers seem to have a very low tolerance against noobs. Not the first time I have seen this type of answer to a completely legitimate question. One might wonder why they don't try to blind us with their brilliance by answering our questions instead of trying to be clever.
I am running OC 1.5.6, and have followed the guide on http://docs.opencart.com/display/opencart/Layouts, and am trying to change the template for an information page. I want to add a particular image to all pages using this layout and it looked simpler than using VQmod.
What I am starting to wonder is whether the tpl page needs a corresponding controller file, and if so, why isn't this stated in the guide in the docs?
Gonna give this another hour or so to see if I can come up with a solution, if so, I'll keep you posted here.
Nope, Have tried adding a controller, comparing it with an extension I am using. Still no luck. Have no idea why this doesn't work.
Added file: catalog/view/theme/whatever/information/infopayment.tpl
In OC admin: Under System>Design>Layouts, added a new layout with name Infopayment. Source set to information/infopayment
In my information pages, I created a new page and set the override layout to Infopayment.
When it didn't work, I went to the catalog/controller/information, and duplicated information.php into infopayment.php. Then I changed all references to "information/information" to "information/infopayment".
Still nothing. I think I have octochecked the page itself and I get nothing in the error logs. Any help in this subjects with layouts would be appreciated.
Added file: catalog/view/theme/whatever/information/infopayment.tpl
In OC admin: Under System>Design>Layouts, added a new layout with name Infopayment. Source set to information/infopayment
In my information pages, I created a new page and set the override layout to Infopayment.
When it didn't work, I went to the catalog/controller/information, and duplicated information.php into infopayment.php. Then I changed all references to "information/information" to "information/infopayment".
Still nothing. I think I have octochecked the page itself and I get nothing in the error logs. Any help in this subjects with layouts would be appreciated.
Update: OK, the controller does NOTHING. Not loaded at all. All information pages uses catalog/controller/information/information.php.
Have tracked it through model/catalog/information.php which is responsible for the SQL pulling out the layout information on line 18. The return is completely kosher with the correct ID from the database.
The layout_id is displayed correct throughout the whole operation... however on line 41 the information.php in controller calls in the information.tpl. Changing that line to point to your preferred tpl file DOES switch over for you, but for every single information page. Not the solution but a step there.
Oy, you OC gurus out there, is this line (catalog/controller/information/information.php:41) really supposed to be like this? Shouldn't it check whether there is a template corresponding to the DB_PREFIX_layout_route specified by the page layout_id?
The information seem to be pulled out in the model/catalog/information.php, but getInformationLayoutID only returns the layout_id.
How and where would this be implemented? I am completely lost and I have worked for 18 hours. Some input is much appreciated.
Have tracked it through model/catalog/information.php which is responsible for the SQL pulling out the layout information on line 18. The return is completely kosher with the correct ID from the database.
The layout_id is displayed correct throughout the whole operation... however on line 41 the information.php in controller calls in the information.tpl. Changing that line to point to your preferred tpl file DOES switch over for you, but for every single information page. Not the solution but a step there.
Oy, you OC gurus out there, is this line (catalog/controller/information/information.php:41) really supposed to be like this? Shouldn't it check whether there is a template corresponding to the DB_PREFIX_layout_route specified by the page layout_id?
The information seem to be pulled out in the model/catalog/information.php, but getInformationLayoutID only returns the layout_id.
How and where would this be implemented? I am completely lost and I have worked for 18 hours. Some input is much appreciated.
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot] and 20 guests