We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4a1794 + 6b66eb3 commit 3d5602cCopy full SHA for 3d5602c
1 file changed
src/Helpers/ShippingDetector.php
@@ -18,7 +18,7 @@ class ShippingDetector
18
19
public function __construct()
20
{
21
- if(WC()->cart === false || WC()->cart->needs_shipping() === false) {
+ if(empty(WC()->cart) || !WC()->cart->needs_shipping()) {
22
return;
23
}
24
0 commit comments