I have problem only on a store when create discount with shipping-discounts function but other shop is fine.
for the information this store is Shopify Plus. the error message is:
Hi there, @terciodejesus . Thanks for taking the time to reach out to the Shopify Community Forums with your question around this error! My name is Imogen. It’s good to meet you!
I did a bit of digging into this matter for you, and it appears that this error can be caused when a store does not yet have checkout extensibility access enabled. I wouldn’t be able to check into your stores myself here due to authentication limitations in the Community, but you can try reaching out to Partner Support or Plus Support so you can get authenticated and they can dive into the situation in more detail to determine if what I’ve outlined is the cause, or if it’s something else.
We had this error on the Production deployment. We didn’t have it in both test stores during development.
We received the next answer from the Shopify Plus support:
"Generally speaking, the error that you encountered (Shop is ineligible for shipping functions) is most often seen when the function is tested on a store that:
Does not have Checkout Extensibility enabled,
and has not yet had the Discount combinations feature enabled.
The Discount Combinations feature was released to all merchants on Checkout Extensibility, as well as any merchant that does not have a customized checkout and does not have any published discount scripts. As a result, the Discount Combinations feature (which is a pre-requisite to use discount functions) will need to be manually enabled by us for specific stores at your request, if the store is still currently using checkout.liquid for checkout customizations or have published discount scripts.
If your store hasn’t fully migrated to Checkout Extensibility yet, please note that:
Carts that include multiple discounts using discount combinations aren’t supported by certain operations of scripts. The .discount_code method of line item and shipping scripts can only return a single discount code. If you have line item and shipping scripts that are used for discounting operations, you should review your scripts and this limitation before setting discounts to combine.
If you have any checkout customizations (via checkout.liquid) should test all customizations with discount combinations, including any app that may interact with checkout. Testing should be done on a development/staging/test store before being applied on live stores."
On Prod we didn’t have Combinations section in the discount details. We called the support during going live to enable The Discount Combinations feature.
Also it didn’t work right after publishing the Checkout Extensibility template: we were waiting several minutes, run the Shipping Discount mutation again and it was applied successfully.