Zen Follower
- Join Date:
- Jul 2008
- Posts:
- 495
- Plugin Contributions:
- 0
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.
Views: 10,689
Zen Follower
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.
Zen Follower
I found out where to modify. Just edit this file:
templates/YOUR_TEMPLATE/templates/tpl_specials_default.php
New Zenner
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
Zen Follower
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).
New Zenner
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...
New Zenner
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.
Zen Follower
Old thread but I'm interested in this as well, anyone?
New Zenner
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:
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:
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:
require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
end replaced with this:
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.
New Zenner
Thanks!
I know this post has been going a while but i found this useful!!
New Zenner
buckarddesign:
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:
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:
>
> ```
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:
require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
>
> end replaced with this:
>
> ```
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.
Zen Follower
Can somebody please tell me how to add text to the specials page as the OP requested? I want customers to know that All sales are final in this section.
Thanks!
Tell staff why this post should be reviewed.