as i mentioned at this topic: Shopify function delivery customization cart variant inventory info
follow the instruction: Delivery Customization Function API
to hide the shipping method by my app logic use rust:
i look into partner dashboard function log:
input:
{
"cart": {
"deliveryGroups": [
{
"id": "gid:\/\/shopify\/CartDeliveryGroup\/0",
"deliveryAddress": {
"countryCode": "US",
"provinceCode": "NY"
},
"deliveryOptions": [
{
"handle": "d7ac0988951ed0a4431d71a5c511f671-69723fff8c227e1a0225fd0632a536be",
"title": "Standard Shipping (3-7 Day)",
"code": "Standard Shipping (3-7 Day)"
},
{
"handle": "d7ac0988951ed0a4431d71a5c511f671-5e337d31cad8c5095325215cdec9a558",
"title": "Expedited 2-Day Shipping",
"code": "Expedited 2-Day Shipping"
}
]
}
],
"lines": [
{
"merchandise": {
"__typename": "ProductVariant",
"id": "gid:\/\/shopify\/ProductVariant\/50175777931554",
"sku": "TP201",
"metafield": {
"value": "{\"CN_GD\":87,\"US_NY\":10}"
}
},
"quantity": 11
}
]
},
"deliveryCustomization": {
"metafield": {
"value": "eyJjYXJ0X29iamVjdCI6MSwiY29uZGl0aW9uX29wZXJhdG9yIjoxLCJjb25kaXRpb25fdmFsdWUiOi0xLCJhY3Rpb25fdHlwZSI6MSwiYWN0aW9uX3RhcmdldF9vcGVyYXRvciI6MSwiYWN0aW9uX3RhcmdldF9wYXR0ZXJuIjoiRXhwZWRpdGVkIDItRGF5IFNoaXBwaW5nIn0="
}
}
}
output:
{
"operations": [
{
"deliveryOptionHide": {
"deliveryOptionHandle": "d7ac0988951ed0a4431d71a5c511f671-5e337d31cad8c5095325215cdec9a558"
}
}
]
}
From the Shopify Admin Dashboard, it should hide one shipping method ‘Expedited 2-Day Shipping‘:
Customer Page:
What I expect:
it should display ‘Standard Shipping (3-7 Day) - Free‘ Shipping method at custmer checkout page, why it shows nothing ?




