Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to put ‘These items will be in stock soon‘ in 2nd language

How to put ‘These items will be in stock soon‘ in 2nd language

Locked

Views: 1,285

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
30 Sep 2006, 10:06 AM
#1
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

How to put ‘These items will be in stock soon‘ in 2nd language

I have a two language store and I use the Products Expected option from time to time.

I have been trying to change the text: ‘These items will be in stock soon’ for the second language of the cart but I cannot find out how to do it.

I have found the text in:

/includes/templates/template_default/templates/tpl_modules_upcoming_products.php

But there does not seem to be any associated language files...

Could someone let me know what the situation is?

Thanks in advance!

30 Sep 2006, 5:29 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,717
Plugin Contributions:
56

Re: How to put ‘These items will be in stock soon‘ in 2nd language

This seems like a message that was overlooked. Create a new file

/var/www/html/higher_1.3.5/includes/languages/english/extra_definitions/my_defs.php

which says

<?php define('SOON_MSG', 'These items will be in stock soon'); ?>

then change
./includes/templates/template_default/templates/tpl_modules_upcoming_products.php
to say

<caption><?php echo SOON_MSG; ?></caption>

Then you're set to add my_defs.php to your other language directory, and you'll
have your message.

Scott

PS> Perhaps a bug report should be filed on this string.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

30 Sep 2006, 5:44 PM
#3
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Re: How to put ‘These items will be in stock soon‘ in 2nd language

Wow! Thanks for that.

You have just given me my first ‘lesson’ in writing some code...

I will give it a try! I will also report it as a bug...

1 Oct 2006, 5:34 AM
#4
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: How to put ‘These items will be in stock soon‘ in 2nd language

There was another topic in archives.
Upcoming Products Fixing

.

A New Starter again

1 Oct 2006, 11:23 AM
#5
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Re: How to put ‘These items will be in stock soon‘ in 2nd language

Great that Dr. Byte is already aware of this and that it might eventually become part of the code!

1 Oct 2006, 2:46 PM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,717
Plugin Contributions:
56

Re: How to put ‘These items will be in stock soon‘ in 2nd language

From peace freak to PHP freak!

Good luck,
Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.