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.
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.
I found out where to modify. Just edit this file:
templates/YOUR_TEMPLATE/templates/tpl_specials_default.php
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
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).
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...
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.
Old thread but I'm interested in this as well, anyone?
M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com
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:
After the next closing bracket, add this:Code:require($template->get_template_dir('tpl_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_specials_default.php');
I then found this file: includes/templates/YOUR_TEMPLATE/templates/tpl_specials_default.phpCode:else{ require($template->get_template_dir('tpl_specials_none_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_specials_none_default.php'); }
and saved it as: includes/templates/YOUR_TEMPLATE/templates/tpl_specials_none_default.php
I then found this line:
end replaced with this:Code:require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
Then I uploaded the new file to the respective template directory.Code:echo '<p>There are currently no specials. Please check back soon.</p>';
Not the cleanest solution, but it works. Hope this helps.
Thanks!
I know this post has been going a while but i found this useful!!
Bookmarks