Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    8
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

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

  3. #3
    Join Date
    Apr 2007
    Posts
    8
    Plugin Contributions
    0

    Default 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?

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

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

  5. #5
    Join Date
    Apr 2007
    Posts
    8
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. Replies: 0
    Last Post: 14 Sep 2011, 11:54 AM
  2. Replies: 2
    Last Post: 16 Nov 2009, 07:35 AM
  3. Changing the "New Products For (Month)" to a different caption
    By yoyodyne in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 May 2008, 03:16 AM
  4. Customizing the "new products for month" area?
    By qhome in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Dec 2006, 05:30 PM
  5. Where to Change the "New Products For (Month)"??
    By misguided67 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Jul 2006, 10:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg