If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Changing the Month in the "New Products for [Month]"

Changing the Month in the "New Products for [Month]"

Locked

Started by ashain on 29 Jun 2008, 9:12 AM · Views: 1,970

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
29 Jun 2008, 9:12 AM
#1
ashain avatar

ashain

New Zenner

Join Date:
Apr 2007
Posts:
9
Plugin Contributions:
0

Changing the Month in the "New Products for [Month]"

Hi Guys,

I am having an encoding problem where I want to change the encoding of the text stored in the [month] variable. This would be for the "New Products for [Month]" as well as the "Monthly Specials for [month]" headings.

Does anyone know where the [month] data is stored? I've tried tracking it down but I just can't seem to find the right place.

Thanks,

-Adam

29 Jun 2008, 9:39 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Changing the Month in the "New Products for [Month]"

It's not stored anywhere. It's extracted from the current date on your site's server.

Could you explain a little more about what you mean by wanting to change its encoding.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

29 Jun 2008, 10:04 AM
#3
ashain avatar

ashain

New Zenner

Join Date:
Apr 2007
Posts:
9
Plugin Contributions:
0

Re: Changing the Month in the "New Products for [Month]"

Hi,

That explains why I couldn't find where the variable was stored :)

I'm using the Hebrew language pack and the [month] is displayed as "????" on the site currently (in UTF-8). If I view the page in Hebrew Visual (ISO-8859-8) encoding, the [month] becomes legible but the rest of the site becomes garbled.

If we had known about this from the begining we could have input all of our data using Hebrew Visual (ISO-8859-8) encoding, but it's a little late now as everything is in UTF-8.

Got any ideas?

29 Jun 2008, 10:19 AM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Changing the Month in the "New Products for [Month]"

In the short term ...

The quick and easy solution would be to go into your includes/languages/hebrew.php file and find the block equivalent to this one (taken from the english.php file> define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');
define('TABLE_HEADING_SPECIALS_INDEX', 'Monthly Specials For %s');
The months are being inserted where the %s character's appear. If you remove the %s characters and reword, the months won't be inserted. Eg. "This Month's New Products" or "Our Current Specials" (suitably translated of course).

In the longer term ...

I believe that Zen Cart, like most advanced applications, will be heading towards UTF8.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

29 Jun 2008, 10:50 AM
#5
ashain avatar

ashain

New Zenner

Join Date:
Apr 2007
Posts:
9
Plugin Contributions:
0

Re: Changing the Month in the "New Products for [Month]"

Thanks.

I'll take a look and see if anything can be done with the file on the server.

Otherwise your suggestion about a text work around sounds good.

Thanks,

-Adam