KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: shalz on April 08, 2009, 01:46:29 am

Title: address format
Post by: shalz on April 08, 2009, 01:46:29 am
Hello All,

1 -I would like to change the address format of
$firstname $lastname$cr$streets$cr$city, $postcode$cr$statecomma$country.

to include 'address custom5' (for example) as well. How to do that?

2 -Also, when I change the local to pt_BR (portuguese, Brazil), the jsps are working perfectly, but the date ($order.getDatePurchased) is the one of the server. My server is in California, but I need Brazilians to get the correct time, and not the California time.
How and where in the code can I modify to get the local time?

any help would be greatly appreciated !!

thank you

-shalz
Title: Re: address format
Post by: trevor on April 08, 2009, 06:34:43 am
Hi,

Quote1 -I would like to change the address format of
$firstname $lastname$cr$streets$cr$city, $postcode$cr$statecomma$country.

to include 'address custom5' (for example) as well. How to do that?


This is a minor enhancement to the Address class. Could you contact support at konakart dot com and we'll see if we can get you a patch.

Quote2 -Also, when I change the local to pt_BR (portuguese, Brazil), the jsps are working perfectly, but the date ($order.getDatePurchased) is the one of the server. My server is in California, but I need Brazilians to get the correct time, and not the California time.
How and where in the code can I modify to get the local time?


This one is trickier. You'll find that all dates such as date_added, last_modified etc are relative to the server. I think that there is a user.timezone property that you can supply to the Java JVM that may fix this problem.