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

Please Help, I'm going CRAZY!!!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-02-2004, 04:02 PM
 
thinksuccess thinksuccess is offline
 

Member
  
Join Date: Oct 2002
Posts: 27
 

Default Please Help, I'm going CRAZY!!!

I'mm trying to add a static html page and have a link to it from anywhere on my site. I dont' ahve the new template manager with the static page feature and every message I've tried from this board does not work. i can get a page to work under the help menu but I dont' wnat it to be under the help menu I want it to be it's own page that I can link to from wherever I want.

Any help would be greatl appreciated.

Thanks
Reply With Quote
  #2  
Old 01-02-2004, 07:21 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

Could you describe this more ? Or do you have an example - specific ?

I am not sure if I understand, but you could make a Static Page with any Editor like Frontpage, Golive or Dreamweaver (my favorite) or any text editor you like and upload the page to anywhere you like, and with the New Speedbar for example give it the exact location and Viola....

Not sure if that is what you mean ?
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #3  
Old 01-02-2004, 07:51 PM
 
thinksuccess thinksuccess is offline
 

Member
  
Join Date: Oct 2002
Posts: 27
 

Default

Well I want it to be integrated into the cart just like the pages in the help file are. So I created a static_page.tpl file and then did a link for home.php?mode=static_page blah blah

I put that link in the home.tpl file but it does not work.
Reply With Quote
  #4  
Old 01-02-2004, 09:39 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

Quote:
Originally Posted by thinksuccess
Well I want it to be integrated into the cart just like the pages in the help file are. So I created a static_page.tpl file and then did a link for home.php?mode=static_page blah blah

I put that link in the home.tpl file but it does not work.

Oh, if I get it right you are complicating things unnecesarily.

OPTION 1:
If it is to insert a some small page just on the left panel, you use the following line in your home.tpl file under the customers directory:
{include file="directory/to/file.html"}

OPTION 2:
On the other hand, if you have a complete page in mind (to appear in the middle of the site) but keeping all categories and menus visible, then just add a page thru your Admin Panel:
1. The last option on your admin panel says "Static Pages", click that.
2. There you can add information that will be automatically parsed thru your cart system and will appear under the help section, related to the language you are currently using for your admin.
3. Add a title and the text to the page, and simple HTML tags if you wish and save the file as enabled.
4. Go to your customers directory and you will see the link (with the title you gave the page) under the help section.

OPTION 3:
If you just need to add a link to some other page to open up on the site, but not within the cart system, just add this to your home.tpl file, in the area you want it to appear:
<center>
YOUR TITLE
</center>

Now remember that if you are trying to add a page to the home.tpl file as you described, it should work without problems, but if you are adding that link in a conditional section it will only appear if the section is enabled. (eg. if you added it to the section in home.tpl file under Bestsellers [before the closing IF tag] it will not appear unless you have bestsellers enabled).

Hope that can help.
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #5  
Old 01-03-2004, 05:52 AM
 
thinksuccess thinksuccess is offline
 

Member
  
Join Date: Oct 2002
Posts: 27
 

Default

I want to do option 2 but my version of x-cart does not have the static page feature. That is why I'm not being able to do this easily. I have a .tpl file that I want to show up in the middle of the page and have the link to that page show up in the left menu.
Reply With Quote
  #6  
Old 01-03-2004, 08:09 AM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

Ok, then you are going to have to use this:

- In your home.tpl file, under { include file="help.tpl" }, add this:
Your Title


- And your page file could look like this:
{* $Id: yourpage.tpl,v 1.13 2004/01/04 07:06:43 zorg Exp $ *}
Your content

But I would highly recommend you to update, it would make your life easier in the future, unless you are planning to only insert this page.
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #7  
Old 01-03-2004, 08:41 AM
 
thinksuccess thinksuccess is offline
 

Member
  
Join Date: Oct 2002
Posts: 27
 

Default

but will that showup within the cart?
Reply With Quote
  #8  
Old 01-03-2004, 08:49 AM
 
thinksuccess thinksuccess is offline
 

Member
  
Join Date: Oct 2002
Posts: 27
 

Default

I get page not found it says it's looking for:

http://mydomain.com/customer/mypage.tpl?SESSID=9d1d6252841d00b07c4a28a9ecae44c7
Reply With Quote
  #9  
Old 01-03-2004, 12:02 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

Oh shoot, sorry about that, obviously a tpl file needs to be parsed first, so please use it this way:

Quote:
Originally Posted by leon
- In your home.tpl file, under { include file="help.tpl" }, add this:
Your Title


Keep the rest the same, but remember to save your file (yourpage.tpl) under skin1/help/ directory
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #10  
Old 01-03-2004, 03:12 PM
 
thinksuccess thinksuccess is offline
 

Member
  
Join Date: Oct 2002
Posts: 27
 

Default

I appreciate your help but if you look at my original post you will see that i don't want the page to be under the help section. I want the page to be a link under category or wherever i choose to place it. So if i made mypage.tpl I want it under say Categories and when you click on it the page comes up in the cart template.

Does that make sense?
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 09:41 AM.

   

 
X-Cart forums © 2001-2020