Advanced Date Picker - Allow --> Only Future Dates

  • Posts: 11
  • Thank you received: 0
9 years 6 months ago #200544

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.37
-- Browser(s) name and version -- : Chrome

Hi,

After purchased and installed Hikashop Business Version, Everything is works as it should to be. The only problem I have is this:

I added a custom filed called (Delivery/Pickup Date Wanted) to the Order Table so this field will be displayed at the checkout.
The Delivery/Pickup Date Wanted filed type: Advanced Date Picker
Allow field set to: Only Future Dates cause no one is allowed to select a previous date for delivery or pickup.

It works fine, but, I provide pickup or delivery at the same date and most my customer will need it at the same date.

At the checkout, it shows today's date and the future date and I can select today but when click "process to payment" it stays on the same page and gives me this message "Please complete the Delivery/Pickup Date field". So, costumers can not process to payment checkout if they will choose today's date. If they select tomorrow and up dates, the process to payment works fine.

i.e. Today's date is 5/1/2015. The "process to payment" will works only if the date selected to 5/2/2015 and up. I need to process to payment even if I select today's date which is 5/1/2015.

How can make today's date included on future's date?

Thanks,
RAID

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
9 years 6 months ago #200597

Hi,

Could you provide a screenshot of the settings page of your custom field so that we can reproduce the situation ?

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

  • Posts: 11
  • Thank you received: 0
9 years 6 months ago #200611

Hi,

thank you for your replay. Well, I checked it today an it worked fine. I think it works fine before 5:00pm. It seems after 5:00pm it counting the day as tomorrow and it doesn't allow to select the current day which is fine for me. I am not sure about it yet, but I will keep checking it and will keep you updated.

However, I have another request and will be happy if you can lead me on.
Additional to the date, I would like to add another custom field for the time (Time for pickup or delivery). The Time field should be like the date field (Only Future Time). i.e. it should show only the future time+30 min. So, for example, if the current time is 2:00PM, the time field will show 2:30pm, 3:00pm, 3:30pm, ... and up. And if the time is 5:00pm it should show only 5:30pm, 6:00pm, 6:30pm, ... and up. Is it able to add time field works like this?

Thanks,
RAID

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
9 years 6 months ago #200620

Hi,

For the selection of the time, I would usually recommend to create a custom field of the table "simple dropdown" and enter all the values you want.
But there is no system to remove the values from the dropdown based on the current hour of the day.
So if that's something necessary, the only solution would be to develop a custom HikaShop plugin implementing the fields API like we did with the advanced date picker plugin. If you're not a developer you would need to hire one for that.
We have documentation on that here:
www.hikashop.com/support/documentation/6...r-documentation.html
And you can look at the files of the folder plugins/hikashop/datepickerfield/ for an example

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

  • Posts: 11
  • Thank you received: 0
9 years 6 months ago #200689

Hi,

First of all, I just want to say that I loved Hikashop and I am really impressive. It is really an awesome software for setting up online shopping store. :)

Yes, I already create a custom field of the table "simple dropdown" for the time. I just was wondering if it can be more professional. The time field is very important for me and without it can not complete the order. May be it is not important for some projects like "electronic, auto part, etc...", but in my case I am selling food online (sandwiches, plates, appetizer, etc...) and the time is very important for pickup or delivery. If someone want a lunch, he will need it in specific time and he has to select the time so I will know when he need it. I think there is "requested features" in submit form. I will submit a request to add professional time field like the date to be consider it in future :)

However, about the date. I checked it and it seems I can select today's date if the time is between 7:00am - 4:00pm. It is fine for me for now. But, If I want to play with this time and make the today's date between 8:00am - 8:00pm, how can I do that? After 4:00pm, today's date is still active, but when click on "process to checkout" it gives me "Please complete the Wanted Date field" I attached a screen shoot for the date setting and the message.

If I can process to checkout for today's order between 7:00am - 4:00pm, then I guess there is a setting that I can play with.

Thanks again,
RAID

Attachments:

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

  • Posts: 11
  • Thank you received: 0
9 years 6 months ago #200691

Hi,
This is an update.

Sorry, I wrote the time incorrectly. Instead of 7:00am-4:00pm the correct is: 8:00am-5:00pm

Thanks,
RAID

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
9 years 6 months ago #200716

Hi,

I don't see why that would happen unless either your web server timezone is not correct, or your Joomla configuration timezone is not correct (and thus it thinks that the day changes at 5pm instead of 0 am).

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

  • Posts: 11
  • Thank you received: 0
9 years 6 months ago #200783

Hi,

The Joomla Server Time Zone set to: Phoenix (Which is correct)

PHP information for the date is:

date/time support enabled
"Olson" Timezone Database Version 2014.8
Timezone Database internal
Default timezone UTC

Directive Local Value Master Value
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone UTC UTC

Is there any incorrect setting on above parameters? Also, if after 5:00pm the system counting the day as tomorrow, then it should disable this date (non clickable) , but what is happening it is still clickable.

Thanks,
RAID

Last edit: 9 years 6 months ago by raidtariq.

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
9 years 6 months ago #200784

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: 11
  • Thank you received: 0
9 years 6 months ago #200993

Hi,

This solution didn't work for me. However, I will leave it for now as it is. It is fine.

Another issue I am getting that I do not know if it is a bug or not.

I create 2 fields for the Wanted Date in Order table and each one will display for certain products category. i.e.:

Wanted Date1 - This date will display only if someone ordered food in category food1.
Wanted Date2 - This date will display only if someone ordered food in category food2.

Both Required is set to YES.

Now, if I ordered a food in category food1 ONLY, Wanted Date1 will be only displayed during the checkout as it suppose to be. The problem is when click on finish your order it gives me message to fill the Wanted Date2, which should not because I didn't order a food in category food2 and I can not complete the order. If I set the Required to NO, it will works fine, but I need to set it to YES so people can not leave it blank.

Any suggestion how to fix it?

Thanks,
RAID

Attachments:

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
9 years 6 months ago #200997

Hi,

Yes, it's a known issue and we already have a ticket in our system for that.
www.hikashop.com/forum/checkout/875842-c...s-errors.html#196310

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: 11
  • Thank you received: 0
9 years 6 months ago #201032

Hi,

Yes, it seems you guys working to solve this issue. The alternative way to use custom field for the date in items table doesn't work for me. For now, I will use only one field for the date. I will wait until the next update will be release.

How do I will know if this issue will resolve on the next release? Are you guys will notify me? or I will need to check frequently.

Thanks,
RAID

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

  • Posts: 13201
  • Thank you received: 2322
9 years 6 months ago #201069

Hi,

When we release a new version of HikaShop we update the Change log :
www.hikashop.com/support/support/documen...ashop-changelog.html

So you will see in that change log if that issue has been solved ;)

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

Time to create page: 0.098 seconds
Powered by Kunena Forum