Zen Cart Logo
Forums / Setting Up Specials and SaleMaker / Adding text to specials page

Adding text to specials page

Views: 10,689

Results 1 to 11 of 11
30 Oct 2008, 7:55 PM
#1
ebaobao avatar

ebaobao

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.

30 Oct 2008, 8:37 PM
#2
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

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 Dec 2008, 3:44 PM
#3
issy avatar

issy

New Zenner

Join Date:
Jan 2006
Posts:
59
Plugin Contributions:
0

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 Dec 2008, 9:56 AM
#4
thomasharding avatar

thomasharding

Zen Follower

Join Date:
Sep 2007
Location:
Manchester, England
Posts:
168
Plugin Contributions:
0

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).

28 Jun 2010, 4:26 PM
#5
cactus avatar

cactus

New Zenner

Join Date:
Sep 2005
Posts:
2
Plugin Contributions:
0

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...

20 Aug 2010, 5:04 PM
#6
alyssakay avatar

alyssakay

New Zenner

Join Date:
Oct 2009
Posts:
15
Plugin Contributions:
0

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.

17 Mar 2011, 2:51 PM
#7
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: Adding text to specials page

Old thread but I'm interested in this as well, anyone?

1 Sep 2011, 3:17 AM
#8
buckarddesign avatar

buckarddesign

New Zenner

Join Date:
Sep 2011
Location:
Miami, FL
Posts:
1
Plugin Contributions:
0

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:

 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.

9 Sep 2011, 9:06 PM
#9
rikkouri avatar

rikkouri

New Zenner

Join Date:
Sep 2011
Posts:
5
Plugin Contributions:
0

Re: Adding text to specials page

Thanks!

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

16 Jan 2012, 9:09 PM
#10
clsmky avatar

clsmky

New Zenner

Join Date:
Jul 2011
Posts:
23
Plugin Contributions:
0

Re: Adding text to specials page

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.

13 Jun 2013, 5:31 PM
#11
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Re: Adding text to specials page

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!