Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2008
    Posts
    397
    Plugin Contributions
    0

    Default How to add text on all product page?

    Where can I add some text on APP PRODUCTS page? (above the Sort option menu).

    I posted on other topic but I think better to post with new title here.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: How to add text on all product page?

    You will need to edit the template file that compiles the All Products listing, AND the Language file for the all_products defines.

    includes/templates/template_default/templates/tpl_products_all_default.php

    FIND

    PHP Code:
    <?php
    /**
     * Page Template
     *
     * @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_products_all_default.php 2603 2005-12-19 20:22:08Z wilt $
     */
    ?>
    <div class="centerColumn" id="allProductsDefault">

    <h1 id="allProductsDefaultHeading"><?php echo HEADING_TITLE?></h1>

    <?php
    ADD MY BIT IN, AS SEEN:-

    PHP Code:
    <?php
    /**
     * Page Template
     *
     * @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_products_all_default.php 2603 2005-12-19 20:22:08Z wilt $
     */
    ?>
    <div class="centerColumn" id="allProductsDefault">

    <h1 id="allProductsDefaultHeading"><?php echo HEADING_TITLE?></h1>

    <div id="allProductsMessage"><?php echo TEXT_ALL_PRODUCTS_MESSAGE?></div>
    <?php
    SAVE THIS NEW EDITED FILE TO:
    includes/templates/YOUR_CUSTOM_TEMPLATE/templates/


    Now... the Language File

    includes/languages/english/products_all.php

    FIND:-
    PHP Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2004 The zen-cart developers                           |
    // |                                                                      |   
    // | http://www.zen-cart.com/index.php                                    |   
    // |                                                                      |   
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    // $Id: products_all.php 1969 2005-09-13 06:57:21Z drbyte $
    //

    define('NAVBAR_TITLE''All Products');
    define('HEADING_TITLE''All Products');

    define('TEXT_DATE_ADDED''Date Added:');
    define('TEXT_MANUFACTURER''Manufacturer:');
    define('TEXT_PRICE''Price:');

    define('TEXT_PRODUCTS_MODEL','Model: ');
    define('TEXT_PRODUCTS_WEIGHT','Weight: ');
    define('TEXT_PRODUCTS_QUANTITY','In Stock: ');
    define('TEXT_OUT_OF_STOCK','Out of Stock');
    ?>
    ADD MY BIT IN, AS SEEN:-
    PHP Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2004 The zen-cart developers                           |
    // |                                                                      |   
    // | http://www.zen-cart.com/index.php                                    |   
    // |                                                                      |   
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    // $Id: products_all.php 1969 2005-09-13 06:57:21Z drbyte $
    //

    define('NAVBAR_TITLE''All Products');
    define('HEADING_TITLE''All Products');

    define('TEXT_DATE_ADDED''Date Added:');
    define('TEXT_MANUFACTURER''Manufacturer:');
    define('TEXT_PRICE''Price:');

    define('TEXT_PRODUCTS_MODEL','Model: ');
    define('TEXT_PRODUCTS_WEIGHT','Weight: ');
    define('TEXT_PRODUCTS_QUANTITY','In Stock: ');
    define('TEXT_OUT_OF_STOCK','Out of Stock');

    define{'TEXT_ALL_PRODUCTS_MESSAGE','This is my special message that I would like to appear on All Products Listing Page');
    ?>
    SAVE THIS NEW EDITED FILE TO:
    includes/languages/english/YOUR_CUSTOM_TEMPLATE/
    20 years a Zencart User

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: How to add text on all product page?

    As we have built this inside a DIV with an ID...

    div id="allProductsMessage"

    ... you can add STYLES to it in stylesheet.css

    EG:

    #allProductsMessage {
    font-size: 12px;
    text-decoration: underline;
    color: #ff0000;
    }
    20 years a Zencart User

  4. #4
    Join Date
    Sep 2008
    Posts
    397
    Plugin Contributions
    0

    Default Re: How to add text on all product page?

    Thank you so much Schoolboy. It perfectly works.

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: How to add text on all product page?

    It's a pleasure...

    When you are rich and famous, think of me...
    20 years a Zencart User

 

 

Similar Threads

  1. How to add text to pictures in product page?
    By Donanater in forum General Questions
    Replies: 0
    Last Post: 22 Mar 2011, 10:04 PM
  2. How can I add additional text on a product page?
    By DML73 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Mar 2010, 01:59 PM
  3. add one line of text to product description page -- how do we do that?
    By glogo in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Dec 2009, 12:57 AM
  4. Product Info page - how to add additional text and image on right side?
    By tat1973 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Nov 2007, 06:20 AM
  5. Add text to All Products Page
    By pinixdesign in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 5 Apr 2007, 10:21 PM

Posting Permissions

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