Advanced Date Picker - Monday First Issue

  • Posts: 106
  • Thank you received: 5
  • Hikaserial Standard Hikashop Business
9 years 5 months ago #232403

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.4.39

I have a custom field that uses the Advanced Date Picker. I have Monday First set to No, but the calendar still shows Monday as the first day of the week. Unfortunately, this has thrown off several of our customers.

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

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 5 months ago #232410

Hi,

Can you provide a screenshot of the settings of the custom field and a link to the page with the issue so that we can see the problem ?
Also, you might want to update you're HikaShop. We've included several fixes to the advanced date picker since the 2.5.0 so it might help.

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

  • Posts: 106
  • Thank you received: 5
  • Hikaserial Standard Hikashop Business
9 years 5 months ago #232534

Attached is a screenshot. Updating to 2.6.1 had no effect.

URL is grandprix-software-central.com . You would have to go through the checkout process. On the Finish page, there is a Race Date box. Though, the screenshot shows the issue.


Attachments:

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

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 5 months ago #232648

Hi,

Add the code:

else
			$dateOptions[] = 'firstDay:0';
after the code:
if(!empty($datepicker_options['monday_first']))
			$dateOptions[] = 'firstDay:1';
in the file plugins/hikashop/datepickerfield/datepickerfield_class.php
and that should fix that.

The following user(s) said Thank You: gpraceman

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

  • Posts: 106
  • Thank you received: 5
  • Hikaserial Standard Hikashop Business
9 years 5 months ago #232651

That fixed it, thanks.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum