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

Please help me add static page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 12-31-2003, 11:07 AM
 
thinksuccess thinksuccess is offline
 

Member
  
Join Date: Oct 2002
Posts: 27
 

Default Please help me add static page

Hi,

I want to add a static page to the Category section not the help section. Can someone please give me directions on what I need to do to make this happen.

I want it to still work and be embedded like a help section page is but want to place it in a different area of the xcart template.

I don't have the static page feature in my version.

Thanks
Reply With Quote
  #2  
Old 01-03-2004, 04:52 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

http://forum.x-cart.com/viewtopic.php?t=2158
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 01-03-2004, 08:29 PM
 
thinksuccess thinksuccess is offline
 

Member
  
Join Date: Oct 2002
Posts: 27
 

Default

Hi Shan,

This is the same post everyone sends me but I dont' want to have it under the help section. I want it to be under the category section. Can this not be done?
Reply With Quote
  #4  
Old 01-03-2004, 08:40 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

This is a double post.

http://forum.x-cart.com/viewtopic.php?p=35774
Reply With Quote
  #5  
Old 01-04-2004, 04:08 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Then do the same thing but add the link to the categories.tpl instead of the help.tpl or anywhere else for that matter
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #6  
Old 01-04-2004, 08:10 AM
 
John7 John7 is offline
 

Senior Member
  
Join Date: Jan 2003
Posts: 136
 

Default This is what you really want.

This is what you really want.

http://forum.x-cart.com/viewtopic.php?t=5412&start=0

John7
Reply With Quote
  #7  
Old 01-04-2004, 08:15 AM
 
John7 John7 is offline
 

Senior Member
  
Join Date: Jan 2003
Posts: 136
 

Default Re: This is what you really want.

Create a file called extrainfo.tpl in your skin1/customer/main/ directory.

Here is some sample code for your extrainfo.tpl file:
Code:
{ include file="location.tpl" last_location="Extra Info"} {capture name=dialog} {/capture} { include file="dialog.tpl" title="Extra Info" content=$smarty.capture.dialog extra="width=100%"}

Then go into skin1/customer/ and open the file home_main.tpl then insert these two lines of code
Code:
{elseif $smarty.get.mode eq "extra"} {include file="customer/main/extrainfo.tpl"}


Then you can create a hyperlink as such
Code:
http://www.yoursite.com/yourlink/customer/home.php?mode=extra




John7
Reply With Quote
  #8  
Old 01-04-2004, 08:15 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Nice mod John 7. You should get a moderator to move that to Custom Modifications. Handy thread.
Reply With Quote
  #9  
Old 01-18-2004, 04:37 PM
  CenturyPerf's Avatar 
CenturyPerf CenturyPerf is offline
 

eXpert
  
Join Date: Jun 2003
Location: Reno, Nevada
Posts: 396
 

Default

Is there an example somewhere of what this looks like when implemented?

I would like to add "manufacturer specific" pages to my website that are embedded, but NOT with links showing in Help.

In my post at: http://forum.x-cart.com/viewtopic.php?t=8272&highlight= you will see that I would like to be able to create say a Manufacturer drop-down above the Category list. When you select a manufacturer name it would redirect the customer to an embedded page I can build for that manufacturer.

I would need to be able to create an unlimited number of pages that I can link to. Say for example, once I have the main manufacturer page I may want to have an assortment of links built within that page to added information and content. (tech articles, instructions, warranty info, etc).

I see that the embedded pages contain no specific X-Cart code, meaning that it must be added by using include tags. From here knowing what to add or change, I'm stuck.
__________________
Best Regards,

Sam Solace - Pres/CEO
Century Performance Center, Inc.
http://www.centuryperformance.com

(3) sites using X-Cart 5.3.5.5
X-Payments Enterprise 3.1.4
Reply With Quote
  #10  
Old 01-18-2004, 04:45 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Create pages exactly as the mod tells you to, just rename them from extrainfo to whatever you want to call them ie. Manufacturer1 page is manufacturer1.tpl.

You need to do what this thread describes. Do it for a test page to see what it looks like. It will take you less than 5 minutes.

You can create an infinite number of pages with this mod.

It's a lot simpler than it looks.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:12 PM.

   

 
X-Cart forums © 2001-2020