Skip to main content

problem order selection using calendar

More
12 years 5 months ago - 12 years 5 months ago #152279 by Udo
-- 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: 12 years 5 months ago by Udo. Reason: Typo in subject

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

More
12 years 5 months ago #152284 by Jerome
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.

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

More
12 years 5 months ago #152422 by Udo
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.

More
12 years 5 months ago #152584 by Xavier
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.

More
12 years 5 months ago #152592 by Udo
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.

More
12 years 5 months ago - 12 years 5 months ago #152598 by Xavier
Hi,

I made the correction on your end directly.

The modification was to edit the view "order / listing" in the backend template and replace:
Code:
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:
Code:
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: 12 years 5 months ago by Xavier.
The following user(s) said Thank You: Udo

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

More
12 years 5 months ago #153065 by Udo
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.

More
12 years 5 months ago #153082 by nicolas
Hi,

Use that code instead and you wont' get the hours:
Code:
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.

More
12 years 5 months ago #153237 by Udo
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.220 seconds
Powered by Kunena Forum