Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How do I add new page under Help section

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-04-2005, 08:38 PM
 
graybeard2k graybeard2k is offline
 

Member
  
Join Date: Dec 2005
Location: Wisconsin
Posts: 22
 

Default How do I add new page under Help section

I want to add a new page with shipping information and put it under the Help section. I tried immitating the privacy notice. I went into admin/languages and I was able to add the heading and text. I went to the help.tpl, copied the code for the privacy statement and then added that code right under the privacy code. Then I changed the $lng.lbl from privacy statement to the one I created for shipping info.

The new link appears in the help section but when you click on it, it goes to the privacy notice, not the new text about shipping that I created in languages.

I think I need to add/change something related to the ?section= code on the help.tpl. But I don't know what ?section= refers to and I couldn't find anything in the manual or FAQ.

Any suggestions?
__________________
Graybeard, Xcart Gold 4.0.17
Linux
Reply With Quote
  #2  
Old 12-04-2005, 10:22 PM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

Just create new static page from admin area.
__________________
X-Cart Version 4.1.8
Hosted on Linux
Reply With Quote
  #3  
Old 12-05-2005, 08:32 AM
 
graybeard2k graybeard2k is offline
 

Member
  
Join Date: Dec 2005
Location: Wisconsin
Posts: 22
 

Default

Thanks. That helps. I created a static page in the root level and changed the <a href> code in help.tpl to that static page. That will work but I'd like to make it display like a regular help page, in the 3-col format I'm using for the rest of the site.

Is the only way to get the 3 column display to add all the template info to the static page? Isn't there a way using Edit Templates, Help Files, Create New Files to do this? I played with it but was unsuccessful.

I tried creating a static page in the embedded level but had a permissions problem. It looked like the software was trying to create the embedded file in skin1/pages/US/. I have a skin1 folder, but no "pages" or "US" folders under it. The skin1 permission is set at 777.

Confused and frustrated.
__________________
Graybeard, Xcart Gold 4.0.17
Linux
Reply With Quote
  #4  
Old 12-05-2005, 08:53 AM
 
blue-dreamer blue-dreamer is offline
 

eXpert
  
Join Date: Dec 2002
Location: Northampton UK
Posts: 213
 

Default

Quote:
Originally Posted by graybeard2k
Is the only way to get the 3 column display to add all the template info to the static page? Isn't there a way using Edit Templates, Help Files, Create New Files to do this? I played with it but was unsuccessful.

I tried creating a static page in the embedded level but had a permissions problem. It looked like the software was trying to create the embedded file in skin1/pages/US/. I have a skin1 folder, but no "pages" or "US" folders under it. The skin1 permission is set at 777.

Confused and frustrated.

When you add an embeded static page X-cart will automatically put your header, left/right columns and footer in. All you have to do is enter the info you want displayed in the central area.

To sort your permissions issue out...

FTP into your site and navigate to the skins1 folder
- create a new folder called 'pages'
- navigate to the new pages folder
- create a new folder called 'US'
- chmod the US folder to 777

you should now be able to save static pages.
__________________
Various
Reply With Quote
  #5  
Old 12-05-2005, 10:53 AM
 
graybeard2k graybeard2k is offline
 

Member
  
Join Date: Dec 2005
Location: Wisconsin
Posts: 22
 

Default

Thanks blue-dreamer. That was a big help. I created the pages I wanted in the 3 column display.

Something goofy is still happening, though. After your help allowed me to create the static pages on the embedded level, I deleted the pages I had created on the root level in admin. I updated the links in help.tpl so it is just to the embedded pages in skin1/pages/US. But the root level links are still displaying under Help as well as the new embedded level links.

Here's is what is even weirder, to me. When you mouse over the links, the old root level links show a path that includes skin1/pages/US. The new embedded level links appear as dynamic php pages. I thought that because we had to create the folders named pages and US in order to create embedded level static pages, that is where those pages would be saved.

I FTP into the site to see if the two root level html files were still in the root directory. They were and I deleted them. Links to those root level pages still appear on the site, though, and when you click on them, these static pages created in the root level display with an address in skin1/pages/US, not in the root level.

Main thing I need is to learn how to get rid of the links to the root level static pages. A bonus would be understanding it all better.

Just had an idea that might work. Maybe the embedded pages don't need to be linked in the help.tpl. Since the root level pages appear to be located in skin1/pages/US, maybe if I delete the help.tpl links to skin1/pages/US (that I thought would be to the embedded pages but appear to be to the root level pages instead), that will solve the problem.

Many thanks for helping me create the embedded pages. I will post the results of deleting the links in help.tpl.
__________________
Graybeard, Xcart Gold 4.0.17
Linux
Reply With Quote
  #6  
Old 12-05-2005, 11:03 AM
 
graybeard2k graybeard2k is offline
 

Member
  
Join Date: Dec 2005
Location: Wisconsin
Posts: 22
 

Default

It worked. I don't understand it, but it worked.

Apparently, static pages created on the embedded level will appear under the Help section without modifying the help.tpl.

Now I just need to figure out how to add these new embedded pages to the Help Zone list. Looks like I should be able to do it through either help/index.tpl or help/general.tpl.

Thanks again for the help.

__________________
Graybeard, Xcart Gold 4.0.17
Linux
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:51 AM.

   

 
X-Cart forums © 2001-2020