Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Date formatting problems with shopping cart
Old 03-12-2005, 10:10 AM Date formatting problems with shopping cart
Ultra Talker

Posts: 358
Location: Devon, UK
Trades: 4
Hi,

I am hoping that someone here will be able to help me with this problem. Please bear in mind that I am not a PHP coder, I know enough to be dangerous so please treat me as a noob.

Right, my problem is that I have bought a shopping cart to use in the UK under the impression that it was able to be used internationally. The company have obviously overlooked the fact that in the UK we format the dates dd/mm/yyyy and not mm/dd/yyyy. So many of my customers will get confused if they see the date in this format.

What I am after is a way to change the way that the dates are FORMATTED everywhere in the site, I do not care about how they are stored in the database I just want them to be shown correctly.

I have seen loads of references to the date in the scripts with m/d/y in them somewhere but I do not think it's as easy as just changing this around though.

If anyone knows of a way to do this, please let me know.
TIA
Simon
recedo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-12-2005, 10:18 AM
Gaffer Sports's Avatar
Ultra Talker

Posts: 397
Name: Steve
Location: Scotland
Trades: 1
Where the date is outputted to the browser, you will need to reformat it.

It is hard to say the correct method without seeing the code, but a standard method would be to have the date brought into a variable and format it that way:

$data = YOUR SQL QUERY
$date = date("d m Y ",strtotime($data[date]));
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
Gaffer Sports is offline
Reply With Quote
View Public Profile Visit Gaffer Sports's homepage!
 
Old 03-12-2005, 10:49 AM
Experienced Talker

Posts: 36
Trades: 0
I think you will be best off going back to the authors of the script. There will know where and how to do this.
tress is offline
Reply With Quote
View Public Profile
 
Old 03-12-2005, 10:51 AM
Ultra Talker

Posts: 358
Location: Devon, UK
Trades: 4
Thanks,

I sort of understand what you are saying, but not sure how to implement it in my case. You might understand what their support have told me at their forums, I don't really!

I think it's probably something that I will have to get someone who knows what they are talking about to have a look!

Simon
recedo is offline
Reply With Quote
View Public Profile
 
Old 03-12-2005, 10:59 AM
Ultra Talker

Posts: 358
Location: Devon, UK
Trades: 4
tress, we must have posted at the same time. I have gone back to the authors, see reply below yours. But they are very vague with their response and it seems to me like it is something they will want to charge me to do. I wouldn't mind paying for them to do it if I have to (although I don't think I should have to as it's supposed to be internation-friendly!), the trouble is they take so long, I requested a quote from them in Dec/Jan and only received a quote a week or so ago and still no luck with getting it done!
recedo is offline
Reply With Quote
View Public Profile
 
Old 03-12-2005, 11:03 AM
Experienced Talker

Posts: 36
Trades: 0
That really sucks, they should do this free of charge or at least make it an option in the script. Not as if it's a big change. Do a global search in their files for date, gmdate & date_format. Someone will be able to help more once we know which date formatting function they're using.
tress is offline
Reply With Quote
View Public Profile
 
Old 03-12-2005, 11:09 AM
Gaffer Sports's Avatar
Ultra Talker

Posts: 397
Name: Steve
Location: Scotland
Trades: 1
It is not a difficult task, looking at the scripts.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
Gaffer Sports is offline
Reply With Quote
View Public Profile Visit Gaffer Sports's homepage!
 
Old 03-12-2005, 11:12 AM
Ultra Talker

Posts: 358
Location: Devon, UK
Trades: 4
Yes, I think it should have really been an option in the script from the start considering some of the other features they have got in it. It's a really great cart but little problems like this really let it down.

Gaffer is having a look for me

Simon
recedo is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Date formatting problems with shopping cart
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27926 seconds with 12 queries