Skip to main content

How to Change a Shopify Listing to Another App Type

How to Change a Shopify Listing to Another App Type

  1. Log into Partners.shopify.com
  2. Click on Apps in the side nav
  3. Find the App you want to change - note, Shopify’s search is awful, you may need to view the public listing in the app store and copy and paste the exact title to find it in the list \ \

alt_text

alt_text \ \ \

  1. Click into the app and then click on the App Setup Link… All the information will need to be updated (Name, Icon, etc)... but in terms of engineering, we need to make sure the URLs are updated to the correct ones for the new App Type… don’t do this yet though!

alt_text \ \

  1. First you will need to update a few things in the production environment… Starting with config/environments/production.rb.... You will need to make sure that the config.shopify_app_ids has the correct shopify app id for the new app_type - often, we are using aliases, so multiple apps may have the same shopify_app_id on this list… like photoEditor and productReviews (as Product Reviews just replaced photo editor on shopify)... example https://gitlab.com/powr/powr/-/merge_requests/7173/diffs \ \

  2. Update the App Listing Review Link… here’s an example: https://gitlab.com/powr/powr/-/merge_requests/7178 \ \

  3. Now you must also update the shopify_app_secrets_APP_TYPE (like shopify_app_secrets_productReviews) inside the heroku environment vars or in the production.enc.yml file. You will probably need to find this by looking at the production rails console and looking it up using the apptype that you are replacing… something like this: \ $ENV["shopify_app_secrets_bannerSlider"] \ or \ ENV["shopify_app_secrets_bannerSlider"] \ Once you have it, add the new secret for your new appType \

  4. Now update the urls in the App setup on partners.shopify.com and save and it should be live immediately. You test by trying to install the newly renamed app on a test shopify store. \ We also need to update a cutoff for users who had installed the original app on the listing… We should have a date cutoff in our codebase to ensure that old users get the app they originally installed [Photo Editor] and new users get the app they intend to install [Product Reviews]

    Example: \

    https://gitlab.com/powr/powr/blob/master/app/controllers/shopify_controller.rb#L201 \

This ensures anyone after a given day of install gets the new app and all the other users keep getting the old one \



\

\