If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / "This Product was added to our Catalog" -- change date format?

"This Product was added to our Catalog" -- change date format?

Locked

Started by chris32882 on 25 Oct 2008, 1:29 AM · Views: 3,639

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
25 Oct 2008, 1:29 AM
#1
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Post #1 by chris32882

"This product was added to our catalog" how do I change it to this format MONTH DAY, Year? What files do I need to edit?

Have you visited the (un-official) Zen Cart IRC channel yet?
irc.freenode.net ##zencart

25 Oct 2008, 2:17 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

While related, I'm not sure that the suggestion by pelasgos is quite correct for your specific case.

What exactly do you want to change the date FROM and TO? Is this something you want to change EVERYWHERE on your site? If so, follow pelasgos' link. If it's only for this one page, you'll need to alter the content of your page template to show the date in a different format.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

25 Oct 2008, 5:08 AM
#4
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Post #4 by chris32882

DrByte:

What exactly do you want to change the date FROM and TO? Is this something you want to change EVERYWHERE on your site? If so, follow pelasgos' link. If it's only for this one page, you'll need to alter the content of your page template to show the date in a different format.

I have only seen it for new products that have been added

the current format is set as: This product was added to our catalog on Tuesday 21 October, 2008.

Id like for it to be: Tuesday October 21, 2008

Have you visited the (un-official) Zen Cart IRC channel yet?
irc.freenode.net ##zencart

25 Oct 2008, 6:23 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #5 by drbyte

I gather you'd want that to happen anywhere the "long" date format is used, so ...
In your english.php language file, you'll find this:define('DATE_FORMAT_LONG', '%A [B]%d %B,[/B] %Y'); // this is used for strftime()Switch the %d and %B around, like this:```
define('DATE_FORMAT_LONG', '%A [B]%B %d,[/B] %Y'); // this is used for strftime()

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

25 Oct 2008, 10:54 AM
#6
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Post #6 by chris32882

DrByte:

I gather you'd want that to happen anywhere the "long" date format is used, so ...
In your english.php language file, you'll find this:define('DATE_FORMAT_LONG', '%A [B]%d %B,[/B] %Y'); // this is used for strftime()Switch the %d and %B around, like this:```
define('DATE_FORMAT_LONG', '%A [B]%B %d,[/B] %Y'); // this is used for strftime()


You make it sound soooo easy,  you must be doing this for years lol j/k

Thanks for the info!

Have you visited the (un-official) Zen Cart IRC channel yet?
irc.freenode.net ##zencart

25 Oct 2008, 11:23 AM
#7
pelasgos avatar

pelasgos

New Zenner

Join Date:
Dec 2006
Location:
Athens - Greece
Posts:
71
Plugin Contributions:
0

Post #7 by pelasgos

The Dr always knows better :yes:

25 Oct 2008, 11:27 AM
#8
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Post #8 by chris32882

pelasgos:

The Dr always knows better :yes:

haha indeed "DrByte is right"

Have you visited the (un-official) Zen Cart IRC channel yet?
irc.freenode.net ##zencart