| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
how to add a new 'help' file/template | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
how to add a new 'help' file/template
Hello,
I am trying to add a new file to show up under my help section. I realize i could do it as a simple php/htmlfile, but Iam trying to do it within the template system I have checked the docs and tried doing a search in the forums, but in the fourms apparently have not come up with the proper search terms to find an answer. Basically I want to add a 'sizes' page for product sizing/fit. I created the file using the admin interface and even copied the text in one of the other files. I created the proper new variable in the languages section, but if I clickon an existing helpfile (faqs, terms etc) with the name of my new file, the browser just goes to the main help page. What/where doI need to let the system know of new files? Thanks Dale |
|||||||
#2
|
|||||||||
|
|||||||||
Here you go,
create your new help file and save it in skin1/help, lets call it mynewfile.tpl and add the content as follows.... Code:
dont forget to change the title etc Next, open up skin1/help/index.tpl and replace Code:
with this ... Code:
in other words, add a new elseif section to show your new file if requested. Next, open up skin1/help.tpl and add the link to your new page along with the other links Code:
And that should be about it. Just change every instance of mynewfile for whatever you want it to be and change the titles and link text and you should be ok. Ive not tested this just written off the top of my head so let me know how you get on...
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#3
|
|||||||
|
|||||||
The following was taken from the FAQ page of the members section - http://www.x-cart.com/faq.html.
Hope this helps. Quote:
|
|||||||
#4
|
|||||||
|
|||||||
Foolish me, I was looking in the offline docs for this info
Thanks to both of you for the info. I am traveling and staying with a work at home relative that has 1 phone line for internet access so I am doing as much offline as possible, hence using the docs. Dale Quote:
|
|||||||
#5
|
|||||||
|
|||||||
Question about this very thing
I am trying to add a page under help that would be for login. I put the
{if $login eq "" } { include file="auth.tpl" } {else} { include file="authbox.tpl" } {/if} in the login.tpl file and it shows up. I login and after directs me back to the main page, but when I try to click on the link and then press "log out" it comes up with an error. Not a php or smarty error but the little error picture in the browser status window. Any idea? |
|||||||
#6
|
|||||||
|
|||||||
If you click on the error it should give you the line it is occurring on. Use that as your guide, or try posting it here. The problem could be so many things that it's like asking a mechanic to diagnose a problem over the phone when all you know is that you car is making a noise.
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat] |
|||||||
#7
|
|||||||
|
|||||||
This is what it shows. Any help would be appreciated.
Line: 1 Char: 1 Error: Object doesn't support this property or method. Code: 0 URL: ........./customer/help.php?section=login |
|||||||
#8
|
|||||||
|
|||||||
any ideas yet?
|
|||||||
#9
|
|||||||
|
|||||||
can you send me a URL where I can look at it? it could be something with the form tags.
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat] |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|