problem order selection using calendar

  • Posts: 220
  • Thank you received: 8
10 years 7 months ago #152279

-- HikaShop version -- : 2.3.0
-- Joomla version -- : 1.5.26
-- PHP version -- : 5.3.21

Hi,

I have a problem with the data filtering of the orders in the backend.
When selecting a From or To date (by typing or by clicking the calendar) the date jumps to 1970-01-01. This can only be restored by logging out.

This happens using Firefox and also using Chrome.

regards,
Udo

Last edit: 10 years 7 months ago by Udo. Reason: Typo in subject

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 7 months ago #152284

Hi,

Can you reproduce the problem in our demo website ?
Would it be possible to have an access to your website in order to see the problem directly ?

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.

  • Posts: 220
  • Thank you received: 8
10 years 7 months ago #152422

Hi Jerome,

In the demo website the order selection works fine.

I´ll send a PM about the access to the site.

regards,
Udo

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

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #152584

Hi,

I don't find the page you are talking about.
Thanks to give us a direct link to the page with the problem.

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

  • Posts: 220
  • Thank you received: 8
10 years 7 months ago #152592

Hi,

It's in the backend, the Hikashop menu Orders.
The filtering on the top, the fields 'From' and 'to'.

Regards,
Udo

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

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #152598

Hi,

I made the correction on your end directly.

The modification was to edit the view "order / listing" in the backend template and replace:

	echo JText::_('FROM').' ';
	echo JHTML::_('calendar', hikashop_getDate((@$this->pageInfo->filter->filter_start?@$this->pageInfo->filter->filter_start:''),'%Y-%m-%d %H:%M'), 'filter_start','period_start','%Y-%m-%d',array('size'=>'10','onchange'=>'document.adminForm.submit();'));
	echo ' '.JText::_('TO').' ';
	echo JHTML::_('calendar', hikashop_getDate((@$this->pageInfo->filter->filter_end?@$this->pageInfo->filter->filter_end:''),'%Y-%m-%d %H:%M'), 'filter_end','period_end','%Y-%m-%d',array('size'=>'10','onchange'=>'document.adminForm.submit();'));
By:
	echo JText::_('FROM').' ';
	echo JHTML::_('calendar', hikashop_getDate((@$this->pageInfo->filter->filter_start?strtotime(@$this->pageInfo->filter->filter_start):''),'%Y-%m-%d %H:%M'), 'filter_start','period_start','%Y-%m-%d',array('size'=>'10','onchange'=>'document.adminForm.submit();'));
	echo ' '.JText::_('TO').' ';
	echo JHTML::_('calendar', hikashop_getDate((@$this->pageInfo->filter->filter_end?strtotime(@$this->pageInfo->filter->filter_end):''),'%Y-%m-%d %H:%M'), 'filter_end','period_end','%Y-%m-%d',array('size'=>'10','onchange'=>'document.adminForm.submit();'));

Last edit: 10 years 7 months ago by Xavier.
The following user(s) said Thank You: Udo

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

  • Posts: 220
  • Thank you received: 8
10 years 7 months ago #153065

Thanks Xavier, this solved the problem.

One remark: after selecting (for instance) 2014-04-08 the result is 2014-04-07 23:00
This may be caused by the time zone in the global configuration?

Regards,
Udo

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 7 months ago #153082

Hi,

Use that code instead and you wont' get the hours:

echo JText::_('FROM').' ';
	echo JHTML::_('calendar', hikashop_getDate((@$this->pageInfo->filter->filter_start?strtotime(@$this->pageInfo->filter->filter_start):''),'%Y-%m-%d'), 'filter_start','period_start','%Y-%m-%d',array('size'=>'10','onchange'=>'document.adminForm.submit();'));
	echo ' '.JText::_('TO').' ';
	echo JHTML::_('calendar', hikashop_getDate((@$this->pageInfo->filter->filter_end?strtotime(@$this->pageInfo->filter->filter_end):''),'%Y-%m-%d'), 'filter_end','period_end','%Y-%m-%d',array('size'=>'10','onchange'=>'document.adminForm.submit();'));

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

  • Posts: 220
  • Thank you received: 8
10 years 7 months ago #153237

Hi,

Thanks for the support. Indeed, I the hours don't show, but still the date changes.

No big problem.

Regards,
Udo

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

Time to create page: 0.053 seconds
Powered by Kunena Forum