Custom cart-checkout validation app isn't populated in checkout rules

Hello everyone,

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:

  1. From partner portal, browsed to Apps → all apps
  2. Selected our custom app from the list.
  3. Clicked on ‘Distribution’ and selected ‘Custom distribution’ with one of our live store.
  4. 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.
  5. This redirected us to the app installation page in our live store and we installed our app on live store successfully.
  6. 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.

Hi Rohit,

What is the Shopify subscription plan on the live store?

Hi Liam

Thanks for your reply.

We 're running Shopify Plus

Can you find it through the shopifyFunctions query via Admin API?

1 Like

We have figured out the solution. There was an issue with the hosting provider.

Thank you so much for your help.

2 Likes

Glad to hear you figured this out Rohit.

I’m having that exact problem. How did you manage to solve this? I don’t see any errors on my host.

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:

json

"scripts": {  
    "shopify": "shopify",  
    "build": "shopify app build",  
    "dev": "shopify app dev",  
    "info": "shopify app info",  
    "generate": "shopify app generate",  
    "deploy": "shopify app deploy --reset --force"  
}  

Deployment Commands

Next, we run the following commands on our hosting platform:

bash

npm install -g @shopify/cli@latest  
npm install  
npm run deploy  

Helpful Resources

We found this link to be very helpful as well.

Important Note

Make sure to create a separate app for your live store.

I hope this information helps you!

1 Like

Appreciate you sharing your solution with the community Rohit!