Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2008
    Posts
    19
    Plugin Contributions
    0

    Default Pre installed Product Descriptions

    Has anyone any idea how I can edit Product Descriptions to include a 'standard' paragraph in each new product added?

    I want to put a footer to each Product Description that includes delivery info, etc and whilst I know I can cut and paste it each time there are other users of the store that forget to add this extra info.

    Is there something I've missed in earlier posts or Add-Ons that will allow me to do this and if not where can I alter the code?

  2. #2
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Pre installed Product Descriptions

    You could add the info to includes/templates/your_template/templates/tpl_product_info_display.php

  3. #3
    Join Date
    Apr 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: Pre installed Product Descriptions

    Quote Originally Posted by RescoCCC View Post
    You could add the info to includes/templates/your_template/templates/tpl_product_info_display.php
    Thanks for the reply. I assume I need to enter something in Product Description part of tpl_product_info_display.php but everything I try messes up the programme. My php skills just aren't up to the task

    <!--bof Product description -->

    <?php if ($products_description != '') { ?>

    <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>

    <?php } ?>

    <!--eof Product description -->

  4. #4
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Pre installed Product Descriptions

    Try it like this:

    <!--bof Product description -->
    <?php if ($products_description != '') { ?>
    <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
    <?php } ?>
    Your additional information here.
    <!--eof Product description -->

  5. #5
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Pre installed Product Descriptions

    This would work better.

    <!--bof Product description -->
    <?php if ($products_description != '') { ?>
    <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>

    <br /><br />
    <div id="standardProductFooter"> your info here </div>

    <?php } ?>
    <!--eof Product description -->

    Putting it before the closing PHP tag makes sure it is included as part of the Product Description; showing just after the description but before pricing. Styling your footer text within its own DIV means you can easily adjust styling to your needs from within the main CSS file.

  6. #6
    Join Date
    Apr 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: Pre installed Product Descriptions

    Many, many thanks to all of you. That works great! I will save me so much time instead having to go back and check every new product for correct information...

    Merry Christmas and a Great New Year to everyone

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,537
    Plugin Contributions
    127

    Default Re: Pre installed Product Descriptions

    For a single consistent block of text, this technique works well, but if you have multiple blocks of text with product dependencies, you might want to look at my Boilerplate Text Addition help instructions here:

    http://www.thatsoftwareguy.com/zenca...scription.html
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. Show (small) product images to the left of product descriptions on Category pages
    By karine in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 May 2012, 03:39 AM
  2. Pre Populate Product Description Field?
    By PGlad in forum Basic Configuration
    Replies: 4
    Last Post: 10 Nov 2010, 06:58 PM
  3. Link multiple product descriptions to one main product
    By gigabiter in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 7 May 2009, 02:26 PM
  4. Pre-populating product description
    By Ryk in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 1 May 2008, 04:22 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