Plugin issues
-
Hi, I used your plugin and customised it, fixed some flaws. Here are some I’ve noticed:
1. You’re using $date=strtotime(“+$days days”); to calculate shipping times. That method is flawed, since it doesn’t account for timezones, so where I’m from the estimated delivery date at 12 AM is wrong – it’s off by one day.
I’d suggest using WordPress time instead, rather than PHP. It can be accessed using current_datetime() function.
2. There’s a warning shown when using your plugin: “Warning: date function expects second value to be int, string given” in the if(!empty($mn_days)) location of the code.
3. For some reason not all of my shipping methods were listed, I use “Omniva-woocommerce” plugin on my site, and it just doesn’t appear in the admin area of your plugin. I worked around that by setting a default shipping time, and modifying other shipping option’s shipping times.
Lastly, there’s no way to localise the plugin as is, I needed to modify the code.
Other than that, the idea is great, just what I needed. Thanks for making the plugin!
- The topic ‘Plugin issues’ is closed to new replies.