We have developed custom cart checkout validation app using shopify function. In this app, we have implemented credit limit functionality for our B2B customers by following the article: Customizing B2B Orders
The app is successfully installed on developer store and found working very well.
Next we have deployed and installed the app on one of our live store following these steps:
From partner portal, browsed to Apps → all apps
Selected our custom app from the list.
Clicked on ‘Distribution’ and selected ‘Custom distribution’ with one of our live store.
This had generated the app installation link for our live store and by browsing the link, we had been redirected to select the store and we selected our live store.
This redirected us to the app installation page in our live store and we installed our app on live store successfully.
After installation of the app, it should be listed in checkout rules (Settings → Checkout → Checkout rules) in the same way as it is listed in checkout rules in developer store (as per the docs: Create a server-side validation function). But it is not listed in Checkout rules in live store.
So we will really appreciate if someone can help us to find solution of how this app can be listed in Checkout rules. If you find any mistakes in the steps that we have followed so far please let us know.
We are using Render as our hosting provider for our app, and we have connected our app repository to implement a CI/CD flow within our GitHub repository.
Setting Up Environment Variables
First, set the environment variable SHOPIFY_CLI_PARTNERS_TOKEN. You can obtain the value from your partner portal by following this guide.
Modifying Your package.json
Ensure you modify your deploy script in the package.json as follows: