Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2010
    Posts
    263
    Plugin Contributions
    0

    Default Add text area for Featured Products on home page

    I am working on www.cksperformance.com. On the home page, we have Featured products. What I would like to do is add a text area between the heading Featured Products and the actual products. The type of featured products will change every month and the customer would like to write a bit more info for his customers.

    Any help is greatly appreciated!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Add text area for Featured Products on home page

    3 ways to do it is to customize the tpl_modules_featured_products.php in your templates and overrides and use one the the 3 methods in RED:
    Code:
    <?php if ($zc_show_featured == true) { ?>
    <div>My unique text is here</div>
    <div><?php echo FEATURED_PRODUCTS_CUSTOM_TEXT; ?></div>
    <div><?php
      $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_FEATURED_PRODUCTS_CUSTOM, 'false');
      require($define_page); ?>
    </div>
    <div class="centerBoxWrapper" id="featuredProducts">
    The first one, just keep changing this file when needed with the text wanted ...

    The second method add a define to something like:
    /includes/languages/english/extra_definitions/my_extra_defines.php

    by placing this in the file:
    Code:
    <?php
    define('FEATURED_PRODUCTS_CUSTOM_TEXT', 'This is my custom featured text');
    Or the third method, make a define for the define file:
    /includes/extra_datafiles/my_extra_filenames.php

    Code:
    <?php
    define('FILENAME_DEFINE_FEATURED_PRODUCTS_CUSTOM', 'define_featured_products_custom');
    and make a blank file:
    /includes/languages/english/html_includes/define_featured_products_custom.php

    /includes/languages/english/html_includes/your_template_dir/define_featured_products_custom.php

    and set that to 777 and you can edit it in the Admin in the Tools ... Define Page Editor ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Apr 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Add text area for Featured Products on home page

    You are simply the best!!!!!! All done, the text will now show on my home page! Thank you very much!

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Add text area for Featured Products on home page

    You are most welcome ... thanks for the update that this worked for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Mar 2011
    Location
    Pensacola, FL
    Posts
    88
    Plugin Contributions
    4

    Default Re: Add text area for Featured Products on home page

    Using method 3 above, I encountered a problem where the copy in define_featured_products_custom.php was replacing the copy in all of the other pages (about us, privacy, shippinginfo, etc). changing the function (variable?) name from $define_page to $define_my_page did the trick.

 

 

Similar Threads

  1. Custom Text Below Featured Product on Home Page
    By susb8383 in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 22 Feb 2011, 01:38 AM
  2. How to add an extra content area to the home page?
    By yamadan in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 24 Nov 2010, 01:51 PM
  3. Help with New Products and Featured Products on Home Page
    By AirsoftOutfitter in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Mar 2010, 01:28 AM
  4. Change order of home page - featured items above new products for december--
    By abs007 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Dec 2009, 02:25 PM
  5. Please help me to clone FEATURED Products box for home page
    By aly22 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Jul 2009, 04:00 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR