Advanced Date Picker Issue

  • Posts: 6
  • Thank you received: 0
10 years 2 months ago #173438

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.3
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : Invalid Date Selected

I am using Advanced Date Picker module from Hikashop to let users place an advanced order. When doing so under the Chrome or Internet Explorer browsers, the Invalid Date error message blocks the customer from completing the checkout although the date is not invalid.

Last edit: 10 years 2 months ago by codizzler.

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

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
10 years 2 months ago #173486

Hi,

Could you please do a screenshot of the options of your custom field so that we can see how you configured your date picker ?

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

  • Posts: 6
  • Thank you received: 0
10 years 2 months ago #173499

Attached are the requested screenshots. Thank you for your help!

Attachments:

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

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
10 years 2 months ago #173607

Hi,

I don't see a problem with the field options.
I've done a test on both Chrome and Internet Explorer on your website and I was able to select the date I wanted and finish the order.
So I don't see any problem.

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

  • Posts: 6
  • Thank you received: 0
10 years 2 months ago #173615

I have determined the issue persists if you place an order on Saturday or Sunday. I have those selected as forbidden days, therefore there appears to be a conflict with the "Default Today" option. Apparently, if "today" is a forbidden day, the option gets stuck with it as the default and will not let the user change. So on any forbidden day the Advanced Date Picker will not work on Chrome or Internet Explorer.

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

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
10 years 1 month ago #173649

Hi,

You need to turn off the "Default today" option of the field in order to avoid that problem.

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

  • Posts: 6
  • Thank you received: 0
10 years 1 month ago #173998

So Hikashop is fine with releasing and selling products with half-baked features? I find that a bit ludicrous that the response to an obvious bug is to avoid specific features of that product. But you guys have my money already so I guess my satisfaction no longer matters.

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 1 month ago #174044

Hi,

Nicolas created an issue to solve that problem for the advanced date picker (that I developed and give for free to the the HikaShop team).
I am sorry for that bug and I will see to reproduce it and to fix the algorithm which calculate the "today".

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.
The following user(s) said Thank You: PolishedGeek

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

  • Posts: 329
  • Thank you received: 94
10 years 1 month ago #174139

Hi, Jerome -
We're using this too on a client site and ran into the same problem. Would you please be sure to update this thread when a fixed version of the Advanced Calendar field plugin is ready? Thanks!


~ Deb Cinkus, CEO

Polished Geek: more with monday․com
eCommerce Business Process Automation Experts

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 1 month ago #174260

Hi,

Currently I am very busy with the HikaMarket 1.5.0 release that I want to finish as soon as possible.
If you have some time to work on the datepicker plugin, the concept is easy : you have to check if the date is forbidden or not.
Here a "mock-up", the concept idea

		if(!empty($datepicker_options['today'])) {
			$timestamp = time();
			if(!empty($datepicker_options['waiting']))
				$timestamp += 86400 * (int)$datepicker_options['waiting'];

			do {
				$inc = $this->checkRules($timestamp, $datepicker_options); // New function to create
				if($inc > 0)
					$timestamp += 86400 * $inc;
			} while($inc > 0);

			if(!empty($joomlaFormat))
				$txtValue = hikashop_getDate($timestamp, $joomlaFormat);
			else
				$txtValue = hikashop_getDate($timestamp);
		}
		if(empty($value) && !empty($timestamp))
				$value= hikashop_getDate($timestamp, '%Y/%m/%d');
The idea is to write the code for the function checkRules in order to return the number of days that we have to skip if the current timestamp is forbidden.
If the day is forbidden, the function will return 1 ; if the value is in a date range, the function will return the number of day until the end of the date range, etc.

And I think it will require an extra check in the code in order to not use the default value when the option "default today" is set.
Because when the user save the custom field with "default today", the current day is stored in as default value, so the customer field will always set that default value and the idea of "default today" is to avoid that.

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.
The following user(s) said Thank You: PolishedGeek, codizzler

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

  • Posts: 6
  • Thank you received: 0
10 years 1 month ago #174313

I will work on it this weekend, thank you for the support Jerome.

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

  • Posts: 80
  • Thank you received: 1
10 years 4 weeks ago #177580

Hi,

I would like to ask about how the "Hour for extra day" field works and what values are acceptable.
I am using this custom field for selecting a date for order pick up. But in case a user submits an order after 11.00am of a day, I would like an extra day to be culculated. Is this "Hour for extra day" is what I need?

Thanks,
Dora

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 4 weeks ago #177581

Hi,

In the field "hour for extra day" you can put the hour (like "11") or the full time (like "11:00") and the plugin will add an extra waiting day (so you won't be able to select "today" after "11:00") if the time is already passed.
The hour/time format is 24h, so 1pm is "13:00".

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: 80
  • Thank you received: 1
10 years 4 weeks ago #177645

Thank you for the detailed explanation, Jerome!

Regards,
Dora

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

  • Posts: 80
  • Thank you received: 1
10 years 3 weeks ago #178477

Hi,

All was working perfect until today! Saddenly, I am getting an error when using the date picker as custom option of a product. Either if I set today as default day or not, I am getting the same error message, but, regardless, the product options are added to the cart, without displaying the product, the product price and the custom fields. I have enabled the option "group options with product" on the configuration. Why this saddenly happened?

Please see attached.

Regards,
Dora

Attachments:

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

  • Posts: 80
  • Thank you received: 1
10 years 3 weeks ago #178506

I noticed that the advanced date picker is causing all the other issues on cart. If I disable the date picker, products are displaying correctly with the grouped options, price and other custom fields. I need to have the date picker in this part... it was working perfectly before.

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 3 weeks ago #178517

Hi,

I have to admit that, like that I don't have specific idea.
I know that the "default today" option need some improvements but I don't understand why it was working before and "suddenly" it is not working. I guess that something changed but we have to know what.
Did you change an option (in the plugin or in HikaShop) ? Did you update something ?
When did you activate the "group option" (just before ?) ?

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: 80
  • Thank you received: 1
10 years 3 weeks ago #178607

Hi Jerome,

It was working a few days ago, but since then I have worked on other parts/pages/products, so, I could say that yes, I changed HikaShop options in general, although I am not sure in which part of HikaShop you're reffering at. For example I have created other categories/products/custom fields (but not any additional date pickers), I used the Limit functionality and removed the "user points" plugin/custom field/payment method that were enabled/configured then. That's all I can remember.

I didn't change any option of the part that is using the date pickers, since this part was totally completed. Also, I activated the "group option" long before I created the date pickers custom fields.

Without this working properly, I am totally lost :-(

I am sending you in private message the url of the page that is using the date pickers, which are dinamically appear based on the pick up location.

Thank you for you help,
Dora

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

  • Posts: 80
  • Thank you received: 1
10 years 3 weeks ago #178608

I forgot to mention that only the pickup dates for the first pickup location are accepted, except of the 11/9/2014 (November 9), which is activated and selectable just like the others... :-/

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 3 weeks ago #178679

Hi,

Please provide a screenshot of your custom field listing.
I can select a date and add a product without any specific problem if I choose the pickup "FitFuel365 Headquarters Grab n’ Go and Order Pick-Up".
Otherwise, when I validate ; HikaShop told me that the datepicker for the place "FitFuel365 Headquarters Grab n’ Go and Order Pick-Up" is invalid/required.

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.

Time to create page: 0.115 seconds
Powered by Kunena Forum