Date format in vendor order listing

  • Posts: 359
  • Thank you received: 28
  • Hikashop Business Hikashop Multisite
1 year 5 months ago #346462

-- HikaShop version -- : 4.6.2
-- HikaMarket version -- : 4.1.0
-- Joomla version -- : 4.2.4
-- PHP version -- : 8.0

Hi,
How can i change the date format for the Hikamarket ?
I have change the format in the language file (fr) like that :

HIKASHOP_DATE_FORMAT="%d.%m.%Y"
HIKASHOP_EXTENDED_DATE_FORMAT="%d.%m.%Y %H:%M"

But it seem has no effect to the Hikamarket (see screenshot). How can i change for Hikamarket ?


“Si tu ne travaille pas pour tes rêves, quelqu'un t'embauchera pour travailler pour les siens" - Steeve Jobs
"La sagesse, c’est d’avoir des rêves suffisamment grands pour ne pas les perdre de vue quand on les poursuit." - Oscar Wilde
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26014
  • Thank you received: 4004
  • MODERATOR
1 year 5 months ago #346468

Hello,

In the view "ordermarket / listing", you have to change the line

<?php echo hikashop_getDate((int)$order->order_created, '%Y-%m-%d %H:%M'); ?>
to
<?php echo hikashop_getDate((int)$order->order_created, '%d %B %Y %H:%M'); ?>
And it will fallback on the "HIKASHOP_EXTENDED_DATE_FORMAT" value if you have a translation for it.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.062 seconds
Powered by Kunena Forum