X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Please help me add static page (https://forum.x-cart.com/showthread.php?t=5796)

thinksuccess 12-31-2003 11:07 AM

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

shan 01-03-2004 04:52 PM

http://forum.x-cart.com/viewtopic.php?t=2158

thinksuccess 01-03-2004 08:29 PM

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?

adpboss 01-03-2004 08:40 PM

This is a double post.

http://forum.x-cart.com/viewtopic.php?p=35774

shan 01-04-2004 04:08 AM

Then do the same thing but add the link to the categories.tpl instead of the help.tpl or anywhere else for that matter :wink:

John7 01-04-2004 08:10 AM

This is what you really want.
 
This is what you really want.

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

John7

John7 01-04-2004 08:15 AM

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

adpboss 01-04-2004 08:15 AM

Nice mod John 7. You should get a moderator to move that to Custom Modifications. Handy thread.

CenturyPerf 01-18-2004 04:37 PM

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.

adpboss 01-18-2004 04:45 PM

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.


All times are GMT -8. The time now is 03:31 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.