Hello,
I am trying to add "login/logoff" text to the footer. I copied the following code from "header.tpl" file in "catalog/template/default/module" .
________________________________
">
">
________________________________
I am getting the following message in the footer:
________________________________
Notice: Undefined variable: text_logout in /home/handy/www/store/catalog/template/default/layout.tpl on line 90
When I deleted the "?>">" or
"
">"
nothing shows up on the footer. But when I delete
Any help is appreciated. Thank you
I am trying to add "login/logoff" text to the footer. I copied the following code from "header.tpl" file in "catalog/template/default/module" .
________________________________
">
">
________________________________
I am getting the following message in the footer:
________________________________
Notice: Undefined variable: text_logout in /home/handy/www/store/catalog/template/default/layout.tpl on line 90
When I deleted the "?>">" or
"
">"
nothing shows up on the footer. But when I delete
Any help is appreciated. Thank you
The code you have edited in a .tpl file is looking for data called by a corresponding .php file. The relevant login/logout code is in catalog/extension/module/header.php and the results are displayed by catalog/template/default/module/header.tpl.
If you want the login/logout to display in the footer you will need to put code that corresponds to the above in both catalog/extension/module/footer.php and catalog/template/default/module/footer.tpl
Hope this makes sense!
If you want the login/logout to display in the footer you will need to put code that corresponds to the above in both catalog/extension/module/footer.php and catalog/template/default/module/footer.tpl
Hope this makes sense!
Chris @ SiteE@se Web Design
What? Do you mean you are not calling things like the language, search, cart, currency, information modules & tpl's from within layout.tpl? If you aren't you must already have hacked a lot of code to get things to work. OC's design is modular to allow add-ons to be easily done. headers/footers are simple modular add-ons that can easily be edited and customised. Unless you have very good reasons for doing otherwise, I'd stick to using them ... otherwise you run into problems like you've outlined.bharat wrote: I put all the code in "layout. tpl" file.
Chris @ SiteE@se Web Design
I edited "default.css" in "catalog/template/default/css" and "layout.tpl" files only. I didn't need currency, search, language etc. So I deleted them from "layout.tpl" in "catalog/template/default". The only thing I added to the "layout.tpl" file is header and footer stuff.
As you mentioned, I added the following code to "footer.tpl" file and got the same error message.
">
">
As you mentioned, I added the following code to "footer.tpl" file and got the same error message.
">
">
Best not to delete such module code - better to turn the functionality on or off from the admin side: go to Extensions->Modules and click on the spanner next to the relevant module to bring up the enable/disable options.
You also have to add code to footer.php - lift it from header.php as I described earlier ......
You also have to add code to footer.php - lift it from header.php as I described earlier ......
Chris @ SiteE@se Web Design
Who is online
Users browsing this forum: No registered users and 2 guests