Skip to content

Commit 20970bf

Browse files
committed
Fix shipping method fieldtype
1 parent 06d4c0d commit 20970bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Fieldtypes/ShippingMethodFieldtype.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function toItemArray($value)
6060
$site = Site::selected();
6161

6262
$shippingMethod = SimpleCommerce::shippingMethods($site->handle())
63-
->where('class', $value)
63+
->where('handle', $value)
6464
->first();
6565

6666
if (! $shippingMethod) {
@@ -83,7 +83,7 @@ public function preProcessIndex($data)
8383
$site = Site::selected();
8484

8585
$shippingMethod = SimpleCommerce::shippingMethods($site->handle())
86-
->where('class', $item)
86+
->where('handle', $item)
8787
->first();
8888

8989
if (! $shippingMethod) {

0 commit comments

Comments
 (0)