feat(core-flows, types): add has missing inventory flag when listing shipping options (#11493)
**What** - add `insufficient_inventory` flag when listing shipping options for a cart - add `enabled_in_store` flag when creating/editing pickup options
This commit is contained in:
+9
-15
@@ -247,21 +247,15 @@ export const CreateShippingOptionDetailsForm = ({
|
||||
/>
|
||||
</div>
|
||||
|
||||
{!isPickup && (
|
||||
<>
|
||||
<Divider />
|
||||
<SwitchBox
|
||||
control={form.control}
|
||||
name="enabled_in_store"
|
||||
label={t(
|
||||
"stockLocations.shippingOptions.fields.enableInStore.label"
|
||||
)}
|
||||
description={t(
|
||||
"stockLocations.shippingOptions.fields.enableInStore.hint"
|
||||
)}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
<Divider />
|
||||
<SwitchBox
|
||||
control={form.control}
|
||||
name="enabled_in_store"
|
||||
label={t("stockLocations.shippingOptions.fields.enableInStore.label")}
|
||||
description={t(
|
||||
"stockLocations.shippingOptions.fields.enableInStore.hint"
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
+11
-15
@@ -202,21 +202,17 @@ export const EditShippingOptionForm = ({
|
||||
/>
|
||||
</div>
|
||||
|
||||
{!isPickup && (
|
||||
<>
|
||||
<Divider />
|
||||
<SwitchBox
|
||||
control={form.control}
|
||||
name="enabled_in_store"
|
||||
label={t(
|
||||
"stockLocations.shippingOptions.fields.enableInStore.label"
|
||||
)}
|
||||
description={t(
|
||||
"stockLocations.shippingOptions.fields.enableInStore.hint"
|
||||
)}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
<Divider />
|
||||
<SwitchBox
|
||||
control={form.control}
|
||||
name="enabled_in_store"
|
||||
label={t(
|
||||
"stockLocations.shippingOptions.fields.enableInStore.label"
|
||||
)}
|
||||
description={t(
|
||||
"stockLocations.shippingOptions.fields.enableInStore.hint"
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</RouteDrawer.Body>
|
||||
|
||||
Reference in New Issue
Block a user