driveparkfly
Forum Replies Created
-
Forum: Plugins
In reply to: [WC Fields Factory] Price not updating correctlyHowdy,
I have been snowed under with other work but finally can look at this issue.
No we are not using the FF pricing rule/s.
The issue is still happening and your further support would be appreciated.
Thanks
Forum: Plugins
In reply to: [Calculated Fields Form] Not calculating correctlyThank you so much! That makes perfect sense.
You are a champion.
Cheers
HeathForum: Plugins
In reply to: [Calculated Fields Form] Not calculating correctlyThanks for the test code.
I have created a new test page with this new code:
https://www.driveparkfly.com.au/calctest/Unfortunatley when I put in the same dates/times:
Entry: 6 Oct 19:00
Exit: 7 Oct: 20:00It is still not working correctly for me. Comes up with 1 day when it should be 2.
Forum: Plugins
In reply to: [Calculated Fields Form] Not calculating correctlyThanks so much for your time on this. I am glad it is working for you. Yes I am in Australia AEST time zone.
I have tried it on a computer that has not opened the parking calculator webpage before and same result – it is coming up with 1 day when it should be 2.
A strange issue!
Forum: Plugins
In reply to: [Calculated Fields Form] Not calculating correctlyThanks for the quick response. I am pressing calc after changing the fields.
Interesting as when I have put the entry and exit times below into chrome and also into safari on my phone and it is coming up with 1 day.
Entry: 6 Oct 19:00
Exit: 7 Oct: 20:00It is not working correctly for me.
I am using the following code for ‘Number of Days’:
(function(){
entry=CDATE(fieldname3, ‘yyyy-mm-dd hh:ii’);
exit=CDATE(fieldname4, ‘yyyy-mm-dd hh:ii’);dateDiff=ceil(fieldname4-fieldname3);
return dateDiff;
})();
debugging it
fieldname 3 (entry) value is 17810.458333333332
fieldname 4 (exit) value is 17811.416666666668dateDiff is therefore coming up with a value of 1. Whereas fieldname 4 – fieldname 3 should be more than 1, and hence the value of dateDiff should be 2.
Any ideas on what the issue is?
Thanks
Forum: Plugins
In reply to: [Calculated Fields Form] Not calculating correctlyThanks heaps for your response.
And sorry forgot to say that I have modified my code to make it working better. The problem I reported originally has now been rectified. I am using Chrome.
We charge per 24 hour block and hence the ceiling calculation (e.g. 33 hours is 2 days).
I have removed the code on the calc button. Thanks
The issue I am now having is when I enter say:
Entry: 6 Oct 19:00
Exit: 7 Oct: 20:00The calculator works out it is 1 day, where as it should be 2 days. I think this is because of the date value issue I identified above. Can you please assist with this?
Thanks
HeathForum: Plugins
In reply to: [Calculated Fields Form] Not calculating correctlyI have been able to troubleshoot this down to the value of date field. If I enter 6 Oct 2018 10:00 it returns 17810 (a whole number). If I enter 7 Oct 2018 10:00 it returns 17810.958333333332. For some reason it does not return a whole number as expected. This is causing the error that I am experiencing with the plugin.
Hope this helps diagnose the issue.
HeathForum: Plugins
In reply to: [Calculated Fields Form] Not calculating correctlySome further information –
1. Only seems to be an issue whenever the date range includes 7 Oct. Otherwise appears to work fine. Have not thoroughly tested.
2. Nothing has changed that I am aware of on my website – I have not updated any plugins on my website in more than a month.Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Exclude products from exportThanks Alex. Will do.
HeathThe great team at ThemeHigh were able to assist me and get the issued resolved.
Problem was no Options were specified for the fields I had inserted. Easy fix.
Thank you
HeathForum: Plugins
In reply to: [WC - APG SMS Notifications] Custom fields and international prefixThanks. Does that mean both issues will be fixed on the next update?
HeathForum: Plugins
In reply to: [WC - APG SMS Notifications] Custom fields and international prefixThanks. I read the article but it does not assist.
Look forward to your reply.
HeathNo probs. Will do.
Thanks
HeathForum: Plugins
In reply to: [WC Fields Factory] Checkbox formatLorro you are a legend. Worked great. Thanks!
Heath