Forums / All Other Contributions/Addons / Add a about us page to your cart and link with information sidebox

Add a about us page to your cart and link with information sidebox

Locked

Views: 3,574

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
8 Jan 2007, 4:30 AM
#1
cafe99 avatar

cafe99

New Zenner

Join Date:
Jan 2007
Location:
Singapore
Posts:
12
Plugin Contributions:
0

Add a about us page to your cart and link with information sidebox

This is how to do it:

assumption : using murasakibox template

Step 1:
Added a about_us_filename.php at includes/extra_datafiles.
which define the about_us page, eg :

<?php /** * @package about_us module * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @copyright Portions Copyright 2003 Jason LeBaron * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ define('FILENAME_DEFINE_ABOUT_US', 'define_about_us'); define('FILENAME_ABOUT_US', 'about_us'); ?>

Step 2:

add a referral link in the information.php (information sideboxes)
create and modified :
includes/modules/sideboxes/murasakibox/information.php
added a link eg :

$information[] = '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . 'about us</a>';

Step 3:

create and murasakibox folder under includes/languages/english
eg : includes/languages/english/murasakibox
create a about_us.php which define :

define('NAVBAR_TITLE', 'About Murasakibox');
define('HEADING_TITLE', 'About us!');

step 4:

create a folder under includes/modules/pages named about_us
eg: includes/modules/pages/about_us
under this folder create header_php.php which define the contain of the page eg:

<?php /** * about us murasakibox.com * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: header_php.php 3230 2006-03-20 23:21:29Z drbyte $ */ require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php')); $breadcrumb->add(NAVBAR_TITLE); // include template specific file name defines $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_ABOUT_US, 'false'); ?>


step 5:

under includes/templates/murasakibox create a folder called templates eg :
includes/templates/murasakibox/templates
create a templete file called tpl_about us_default.php

<?php /** * tpl_about us_default.php * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_about us default.php */ ?> <div class="centerColumn" id="about us"> <h1 id="aboutusHeading"><?php echo HEADING_TITLE; ?></h1> <div id="aboutusMainContent" class="content"> <?php /** * load the html_define for the about us default */ require($define_page); ?> </div> <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div> </div>


step 6:

under includes/languages/english/html_includes create a about_us.php, eg:
includes/languages/english/html_includes/about_us.php
cr
eate a body contain about the page

step 7:

under the admin page goto define page and modified the contain of the about us page.

done!

Hope this will help someone to create it.
Choong Leng from Singapore

8 Jan 2007, 12:59 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Add a about us page to your cart and link with information sidebox

Why not just download the About Us page mod available in the downloads section.

All the work is already done.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

8 Jan 2007, 3:29 PM
#3
cafe99 avatar

cafe99

New Zenner

Join Date:
Jan 2007
Location:
Singapore
Posts:
12
Plugin Contributions:
0

Re: Add a about us page to your cart and link with information sidebox

clydejones:

Why not just download the About Us page mod available in the downloads section.

All the work is already done.
Yes, you are right!
I does the exactly the same concept.
Thanks for telling me that!

Cheers!
Choong Leng from Singapore

28 Jan 2007, 4:36 PM
#4
darinland avatar

darinland

New Zenner

Join Date:
Jan 2007
Posts:
15
Plugin Contributions:
0

Re: Add a about us page to your cart and link with information sidebox

I just tried to use the About Us mod to add a "Security Statement" page to my Information sidebox, and I followed all the instructions, changed and uploaded everything as stated, but I ended up like this:

In my ZenCart shop I have:

A "Security Statement" entry in the sidebox, it goes to a page titled "Security Statement", it says "Security Statement" in the nav bar, but...

The page text from "Define Pages" will not appear below the "Security Statement" heading

and the "Security Statement" link does not appear on my Sitmap page

In Admin I have:

An entry for "security.php" in my "Define Pages Editor" (and that shows the sample text, which does not appear on the actual page)

but, no entry for "Security Statement" appears in the Define Page Status area on Admin (not sure if it should)

So, clearly I'm missing something...

Can anyone help? I'm pretty stuck here--I feel like I'm one step away from making it work, but it still doesn't. I just need to get that text from Define Pages to show up on the Security Statement page, and get the Security Statement link into the Sitemap.

Thots?

--Michael

11 Mar 2007, 4:10 PM
#5
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Re: Add a about us page to your cart and link with information sidebox

DarinLand:

but, no entry for "Security Statement" appears in the Define Page Status area on Admin (not sure if it should)

I've done this mod and it works properly without the page showing up on the Define Page Status area.

Can anyone tell me, though, if it's possible to define metatags for these pages?

Can I just use something like

define('HEADING_TITLE', 'About us!');but for keywords, description, and title? How do I do that - and what other code would I need to add or change?

21 Mar 2007, 1:22 AM
#6
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Re: Add a about us page to your cart and link with information sidebox

If anyone is interested, metatags can be added with

/includes/modules/your_template_dir/meta_tags.php

as explained in this thread:

http://www.zen-cart.com/forum/showthread.php?t=51891

17 Jan 2008, 5:04 AM
#7
aussieny avatar

aussieny

New Zenner

Join Date:
Jan 2008
Posts:
12
Plugin Contributions:
0

Re: Add a about us page to your cart and link with information sidebox

paul3648:

I've done this mod and it works properly without the page showing up on the Define Page Status area.

Did you ever get a way to show it in the Define Page Status?
How do you activate it to show up in the Information box? I have a all caps "BOX_INFORMATION_ABOUT_US" link that does go to the correct page showing in my Information box.

I just cannot figure out how to fix it to show "About Us" in the information side box as it should.

Any help on what I did wrong would be appreciated.

Cheerrs

20 Jan 2008, 5:17 PM
#8
tingsryd avatar

tingsryd

New Zenner

Join Date:
Jan 2008
Posts:
5
Plugin Contributions:
0

Re: Add a about us page to your cart and link with information sidebox

I installed the "about us"-files and the header shows, but not the body and the footer!!

Look here: http://tryd.com/index.php?main_page=about_us

Why is this ?

:(

20 Jan 2008, 5:21 PM
#9
tingsryd avatar

tingsryd

New Zenner

Join Date:
Jan 2008
Posts:
5
Plugin Contributions:
0

Re: Add a about us page to your cart and link with information sidebox

tingsryd:

I installed the "about us"-files and the header shows, but not the body and the footer!!

Look here: http://tryd.com/index.php?main_page=about_us

Why is this ?

:(

NOW I FOUND OUT!! Thanks anyway =)

23 Jan 2008, 1:25 AM
#10
qwest4life avatar

qwest4life

New Zenner

Join Date:
Jan 2008
Posts:
6
Plugin Contributions:
0

Re: Add a about us page to your cart and link with information sidebox

I read this thread and then I re-read this thread and then I scratched my head and said to myself. "why wouldn't zen cart be distributed with such an essential feature to begin with.

About us page is about as common as any other.

Still baffled for sure.