Courier shipping method not compatible with PHP 8+
It's been a year since this has been reported and still has not been fixed, so let me do this by myself. The Courier Shipping method will not be displayed in cart/checkout after switching to PHP 8+ Location:/wc-venipak-shipping/admin/class-woocommerce-shopup-venipak-shipping-admin-courier.phpLine 160 and 161. When minimum weight or maximum weight is not set under the shipping method, then the get_option will return an empty string. After that, the condition that starts from line 164 and ends at 166, all three conditions will return false, since you're trying to compare a string to an integrer, that as of PHP 8 will return false. Hence the rate will not be set to the shipping method and that's the reason it is not displayed. Quote from PHP 8 backward incompatible changes:Non-strict comparisons between numbers and non-numeric strings now work by casting the number to string and comparing the strings. Comparisons between numbers and numeric strings continue to work as before. Notably, this means that 0 == "not-a-number" is considered false now. THE SOLUTIONSurround minimum_weight and maximum_weight variable values with floatval function or just type cast to float. Fix this and I'll change my review.
kriztjan
August 31, 2023
|
1 reply
Venipak plugin
great support 🙂 bug was fixed on the same day as reported 🙂
Terrible plugin, don’t waste your time
Terrible plugin, do not recommend installing, in fact, as well as from other deliveries. There is no WPML translation integration. Delivery customization is maximally dumb, to customize for one country by weight you need to create 10 times ID VENIPAK, because in one ID can be set only one range of weights. I have 5 countries, it clogs up the system a lot. Because of this plugin, I had long time problems with other plugins. I do not know how the developers made this plugin, but apparently the hands grow from the one place……. Don't waste your time, find a general plugin for shipping settings in Woocommerce, it will be much better. And these generation of labels and call the courier is easier to do manually!
domik999
January 27, 2025
|
1 reply
Do not use this please
Broken plugin, waste of time.It is better to create my own Venipak plugin for my customer.
Terrible plugin, don’t waste your time
Terrible plugin, do not recommend installing, in fact, as well as from other deliveries. There is no WPML translation integration. Delivery customization is maximally dumb, to customize for one country by weight you need to create 10 times ID VENIPAK, because in one ID can be set only one range of weights. I have 5 countries, it clogs up the system a lot. Because of this plugin, I had long time problems with other plugins. I do not know how the developers made this plugin, but apparently the hands grow from the one place……. Don’t waste your time, find a general plugin for shipping settings in Woocommerce, it will be much better. And these generation of labels and call the courier is easier to do manually!
domik999
January 27, 2025
|
1 reply
Terrible plugin, don’t waste your time
Terrible plugin, do not recommend installing, in fact, as well as from other deliveries. There is no WPML translation integration. Delivery customization is maximally dumb, to customize for one country by weight you need to create 10 times ID VENIPAK, because in one ID can be set only one range of weights. I have 5 countries, it clogs up the system a lot. Because of this plugin, I had long time problems with other plugins. I do not know how the developers made this plugin, but apparently the hands grow from the one place……. Don't waste your time, find a general plugin for shipping settings in Woocommerce, it will be much better. And these generation of labels and call the courier is easier to do manually!
domik999
January 27, 2025
|
1 reply
Venipak plugin
great support 🙂 bug was fixed on the same day as reported 🙂
venipak plugin
Great support!
Do not use this please
Broken plugin, waste of time.It is better to create my own Venipak plugin for my customer.
Do not use this please
Broken plugin, waste of time.It is better to create my own Venipak plugin for my customer.
Terrible plugin, don’t waste your time
Terrible plugin, do not recommend installing, in fact, as well as from other deliveries. There is no WPML translation integration. Delivery customization is maximally dumb, to customize for one country by weight you need to create 10 times ID VENIPAK, because in one ID can be set only one range of weights. I have 5 countries, it clogs up the system a lot. Because of this plugin, I had long time problems with other plugins. I do not know how the developers made this plugin, but apparently the hands grow from the one place……. Don’t waste your time, find a general plugin for shipping settings in Woocommerce, it will be much better. And these generation of labels and call the courier is easier to do manually!
domik999
January 27, 2025
|
1 reply
Terrible plugin, don’t waste your time
Terrible plugin, do not recommend installing, in fact, as well as from other deliveries. There is no WPML translation integration. Delivery customization is maximally dumb, to customize for one country by weight you need to create 10 times ID VENIPAK, because in one ID can be set only one range of weights. I have 5 countries, it clogs up the system a lot. Because of this plugin, I had long time problems with other plugins. I do not know how the developers made this plugin, but apparently the hands grow from the one place……. Don't waste your time, find a general plugin for shipping settings in Woocommerce, it will be much better. And these generation of labels and call the courier is easier to do manually!
domik999
January 27, 2025
|
1 reply