Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2007
    Location
    Singapore
    Posts
    12
    Plugin Contributions
    0

    Idea or Suggestion 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


  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,039
    Plugin Contributions
    31

    Default 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.

  3. #3
    Join Date
    Jan 2007
    Location
    Singapore
    Posts
    12
    Plugin Contributions
    0

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

    Quote Originally Posted by clydejones View Post
    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

  4. #4
    Join Date
    Jan 2007
    Posts
    15
    Plugin Contributions
    0

    Default About Us Mod didn't work...HELLLLP!

    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

  5. #5
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    191
    Plugin Contributions
    0

    Default Re: About Us Mod didn't work...HELLLLP!

    Quote Originally Posted by DarinLand View Post
    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?

  6. #6
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    191
    Plugin Contributions
    0

    Default Re: About Us Mod didn't work...HELLLLP!

    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

  7. #7
    Join Date
    Jan 2008
    Posts
    13
    Plugin Contributions
    0

    Default Re: About Us Mod didn't work...HELLLLP!

    Quote Originally Posted by paul3648 View Post
    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

  8. #8
    Join Date
    Jan 2008
    Posts
    5
    Plugin Contributions
    0

    help question 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 ?


  9. #9
    Join Date
    Jan 2008
    Posts
    5
    Plugin Contributions
    0

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

    Quote Originally Posted by tingsryd View Post
    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 =)

  10. #10
    Join Date
    Jan 2008
    Posts
    6
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. Continue Shopping - Link to a different page?
    By Ripper in forum General Questions
    Replies: 4
    Last Post: 11 Jul 2007, 12:57 AM
  2. can I add a text link on the shopping cart page
    By jdsmith8 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Nov 2006, 12:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •