Are there any way to migrate Discount API from 3 extension (products, shipping & order) into 1 extension without discounts were removed?

Hi all,
I’m following the Migrate discount API to upgrade my app’s extensions.

My app has 3 extensions: 1 for product discount & 1 for shipping discount, and 1 for order discount.
Is there any way to keep only 1 extension for all 3 discount functions above after migration & keep the discount on each? Currently, if I remove the shipping discount, the discounts that belong to it will be removed.

Thanks!

Hi there, unfortunately this wouldn’t be possible, if you have 3 functions and migrate them to the new Discounts API that can produce Product, Order and Shipping discounts you would lose the discounts tied to the other 2 functions. E.g. You migrate the Product discount function and remove Order, Shipping discount functions. The order and shipping discounts would be removed from shops that have installed your app. In the interim, you could migrate all 3 functions and copy their logic, until no more discounts are related to the old functions.

Here’s a guide on how to migrate if you haven’t seen it yet :slight_smile:

So sad to hear about that I have to keep all those extensions because a lot of customers are using it, I can’t remove their discounts.
Does Shopify engineer have a plan to resolve this, @TomAtShop?