View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003307 | OXID eShop (all versions) | 4.06. Language and translations | public | 2011-10-13 10:38 | 2012-05-03 11:45 |
Reporter | ray | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.5.2 revision 38481 | ||||
Fixed in Version | 4.7.0_5.0.0_beta1 | ||||
Summary | 0003307: only englisch month-names available in order-history | ||||
Description | If a customer checks his order history he can only see the english month names. It seems that the names are hardcoded in datasource-min.js and jquery-ui.min.js. As we decided - showing the months names would be more complex solution and may depend on several topics. So proper solution would be to display month numbers instead of month names in Azure, as is already in Basic. | ||||
Additional Information | see thread in forums with screenshot: http://www.oxid-esales.com/forum/showthread.php?p=70684#top | ||||
Tags | No tags attached. | ||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
or is it maybe due to the php setting for "locale"? |
|
well actually i did a proof : changing the locale settings, in deed changes the output, according to the settings, which is to be expected, because in the end the output comes from php strftime |
|
But - this means they month names are always shown as per php locale setting? So what happens, if someone uses a multi-language-shop? Does it always show the month-names according to default locale settings? Or do the settings switch according to the active shop-language? |
|
Yes, its a bug. But solution with locale setting looks more like a workaround and we just cant implement it in shop (may not work on various configurations etc). The better idea would be to stay with numeric format date like it is in "basic" theme, but enable possibility to customize visibly formatted date: e.g.: [{assign var="sOrderDate" value="ORDER_DATE"|oxmultilangassign}] [{$order->oxorder__oxorderdate->value|date_format:$sOrderDate}] and value of "ORDER_DATE" constant would be any preferred format (e.g. same old "%B %e, %Y") according to country formatting rules. |
|
We decided to stay with numeric format date like in basic theme. For those who want custom format - please use these snippets posted in previous comment. |
|
so can you choose now as a shop admin how to display the date - e.g. american or european format? |
|
Changed from month name to germany date format d.m.Y as in all eshop frontend. From: [{ $order->oxorder__oxorderdate->value|date_format:"%B %e, %Y" }] To: [{ $order->oxorder__oxorderdate->value|date_format:"%d.%m.%Y" }] |
|
same issue in Download-History in 4.6.0 - please change to numeric format as well |
|
Tx, fix it. date_format:"%d.%m.%Y" add to basic and azure templates: page/account/downloads.tpl Now it is: [{ $oOrderArticle.oxorderdate|date_format:"%d.%m.%Y" }] We also add suggestion to uservoice to improve shop changing date, currency or numbers separators by user regional. http://oxid.uservoice.com/forums/31940-feature-requests/suggestions/2821288-shop-should-taken-into-account-user-country-when- |