Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Adding text to specials page

    Is there a way to add text to the top of the specials page? I want to be able to add some text up there like the category pages.

  2. #2
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Re: Adding text to specials page

    I found out where to modify. Just edit this file:
    templates/YOUR_TEMPLATE/templates/tpl_specials_default.php

  3. #3
    Join Date
    Jan 2006
    Posts
    61
    Plugin Contributions
    0

    Default Re: Adding text to specials page

    Yes, this text will only show if you have at least one product activated under specials, otherwise text will not show.
    I want the text to display even if there's not a product activated, any suggestions on how to accomplish this?

    Thanks for all your help

  4. #4
    Join Date
    Sep 2007
    Location
    Manchester, England
    Posts
    168
    Plugin Contributions
    0

    Default Re: Adding text to specials page

    Hey issy,

    Have you worked this out yet? I'm currently trying to do this too.
    (Like create a holding page if no specials are available).

  5. #5
    Join Date
    Sep 2005
    Posts
    2
    Plugin Contributions
    0

    Default Re: Adding text to specials page

    Very Old thread, but no answer. I'm trying to find something for this as well. Using 1.3.8. I'll keep searching, but my search terms don't seem to be useful enough terms...

  6. #6
    Join Date
    Oct 2009
    Posts
    15
    Plugin Contributions
    0

    Default Re: Adding text to specials page

    I'd like a way to do this as well - to have text show there even if there isn't a product set as a special.

  7. #7
    Join Date
    Apr 2008
    Posts
    446
    Plugin Contributions
    1

    Default Re: Adding text to specials page

    Old thread but I'm interested in this as well, anyone?
    M.Valenti
    Contemporary Artist - Entrepreneur
    http://www.manuelavalenti.com - http://www.byvalenti.com

  8. #8
    Join Date
    Sep 2011
    Location
    Miami, FL
    Posts
    1
    Plugin Contributions
    0

    Default Re: Adding text to specials page

    I have come up with a solution for this. I am using zen cart 1.3.9h. This requires changing one file and creating a new file.

    The file to change is: includes/modules/pages/specials/main_template_vars.php.

    Do a search for this line:
    Code:
     require($template->get_template_dir('tpl_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_specials_default.php');
    After the next closing bracket, add this:

    Code:
     
    else{ 
      	require($template->get_template_dir('tpl_specials_none_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_specials_none_default.php');
      }
    I then found this file: includes/templates/YOUR_TEMPLATE/templates/tpl_specials_default.php

    and saved it as: includes/templates/YOUR_TEMPLATE/templates/tpl_specials_none_default.php

    I then found this line:

    Code:
    require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
    end replaced with this:

    Code:
    echo '<p>There are currently no specials. Please check back soon.</p>';
    Then I uploaded the new file to the respective template directory.

    Not the cleanest solution, but it works. Hope this helps.

  9. #9
    Join Date
    Sep 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: Adding text to specials page

    Thanks!

    I know this post has been going a while but i found this useful!!

  10. #10
    Join Date
    Jul 2011
    Posts
    23
    Plugin Contributions
    0

    Default Re: Adding text to specials page

    Quote Originally Posted by buckarddesign View Post
    I have come up with a solution for this. I am using zen cart 1.3.9h. This requires changing one file and creating a new file.

    The file to change is: includes/modules/pages/specials/main_template_vars.php.

    Do a search for this line:
    Code:
     require($template->get_template_dir('tpl_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_specials_default.php');
    After the next closing bracket, add this:

    Code:
     
    else{ 
      	require($template->get_template_dir('tpl_specials_none_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_specials_none_default.php');
      }
    I then found this file: includes/templates/YOUR_TEMPLATE/templates/tpl_specials_default.php

    and saved it as: includes/templates/YOUR_TEMPLATE/templates/tpl_specials_none_default.php

    I then found this line:

    Code:
    require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
    end replaced with this:

    Code:
    echo '<p>There are currently no specials. Please check back soon.</p>';
    Then I uploaded the new file to the respective template directory.

    Not the cleanest solution, but it works. Hope this helps.

    Oh man! Thanks for this. I searched only because I was too lazy to figure it out myself.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Adding general text underneath specials on main page
    By Mitz85 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Jul 2013, 01:36 PM
  2. v151 How Do I Add Text to SPECIALS page?
    By Rick5150 in forum General Questions
    Replies: 6
    Last Post: 14 Jun 2013, 04:05 PM
  3. v150 adding text to the specials page
    By Tuner in forum Basic Configuration
    Replies: 6
    Last Post: 5 Dec 2012, 12:46 AM
  4. Adding Text to Specials Page
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Oct 2012, 07:28 AM
  5. Change image and text size on specials page
    By BlacksmithRon in forum General Questions
    Replies: 1
    Last Post: 11 Feb 2009, 09:56 PM

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