Shopify App Installation Guide

Shopify is a leading commerce platform for businesses of all sizes. It allows you to set up an online store to sell your products.

With the Contentstack Marketplace Shopify app, you can use and refer to the products from your Shopify account within your Contentstack entries.

Prerequisites

This step-by-step guide explains how to install and configure Shopify within your stack.

The steps to be performed are as follows:

  1. Get your Storefront API access token from Shopify
  2. Install and Configure Shopify in Contentstack Marketplace
  3. Use Shopify within your Stack
  1. Get your Storefront API access token from Shopify

    To get your credentials from Shopify, follow the steps given below:

    1. Log in to your Shopify account.
    2. On the Admin portal page, click Apps from the left navigation menu and then select App and sales channel settings from the dropdown. 
    3. Shopify-Account-App_and_save_channel_settings.png
    4. Click the Develop apps for your store button. 
    5. Shopify-Account-Develop_apps_for_your_store.png
    6. On the App Development page, click Create an app. Mention your App name and select the App developer of your app, then click the Create app button. 
      Create_App.png
    7. On the next screen, navigate to the Configuration section and configure the Storefront API integration for your app.
    8. Select the access scopes for your Storefront API and Save your configuration.
      Save_Configuration.png
    9. Finally, under the API credentials section, click the Install app button, confirm your installation, and proceed to get the Storefront API access token.
      Storefront_Api_Access_Token.png
    10. Note: The Storefront API access token is required to connect your store with Contentstack. Make a note of this access token to be used in the next step.

  2. Install and Configure Shopify in Contentstack Marketplace

    To install the application in Contentstack, follow the steps below:

    1. Log in to your Contentstack account.
    2. In the left-hand side primary navigation, click the Marketplace icon to go to the Marketplace. 
    3. Shopify-Marketplace_Icon.png
    4. Within the Marketplace, you can see all the apps available; hover over the Shopify app and click the Install App button. 
    5. Shopify-Install_App.png
    6. Follow the steps given below to install or update the app:
      1. If you are installing the app for the first time, select the stack for which you want to install the Shopify app, accept the Terms of Service and Privacy Policy, and click the Install button.
      2. Shopify-Select_Stack.png
      3. If you already have the old version of the app installed, you will see an update button next to the stack name where you want to install the new version of the app.
        1. Click the Update button. 
        2. Shopify-Update_in_Manage.png
        3. Accept the Terms of Service and Privacy Policy and click the Update button. 
        4. Shopify-Update_in_Install-Final.png

      Note: If you opt to update the app, you will see the new and old configuration settings on the Configuration page.

    7. On the Configuration screen, enter the following details:
      1. Domain: Enter the Store domain name retrieved from your Shopify Console.
      2. Storefront Access Token: Enter the Storefront API access token retrieved from your Shopify account.
      3. Save in Entry: Choose how you want to save your data in the entry.
        1. If you select Whole JSON, you can select only a limited number of products.
        2. For Custom JSON, you should search and add specific Shopify Keys you want to fetch. By default, the id and title of the item are selected. 
        3. Shopify-Config-New.png
      4. Legacy Settings: To use the old version of the Shopify app, enter the configuration details in this section.
        1. Select the Type and Selection
        2. Shopify-Config-Deprecated.png

        Note: - If you have installed the app previously, you will have the Legacy Settings section pre-populated with the old configuration values.
        - The legacy version of the Shopify app has the following limitations:
           - The app does not support the Sidebar Widget feature.
           - You can only select either product or collection in the same entry.
           - You cannot select products based on the collection.

    8. Click the Save button.
    9. Click the Open Stack button to start using the Shopify application.
  3. Use Shopify within your Stack

    To use the Shopify application within an entry of your stack, follow the steps given below:

    1. Go to your stack, click the Content Models icon on the left navigation panel, and click the + New Content Type button.
    2. Create a content type by adding relevant details as displayed below:
    3. Shopify-Content_Type.png
    4. In the Content Type Builder page, add a Custom field for product in your content type by clicking the Insert a field link represented by a + sign.
    5. Under Select Extension/App, select Shopify-Product Field and click the Proceed button. 
    6. Shopify-Custom-Product.png
    7. Add another Custom field for collection in your content type by clicking the Insert a field link represented by a + sign.
    8. Under Select Extension/App, select Shopify-Collection Field and click the Proceed button.
    9. Shopify-Custom-Collection.png
    10. To add a deprecated version of the Shopify app to your entry, add yet another Custom field in your content type by clicking the Insert a field link represented by a + sign.
    11. Under Select Extension/App, select Shopify-Deprecated and click the Proceed button.
    12. Shopify-Custom-Deprecated.png
    13. After adding the app, click Save or Save and Close to save your changes. 
    14. Shopify-Custom-Save_and_Close.png
    15. On the left navigation panel, navigate to the Entries page and click + New Entry to create a new entry for the above content type. Click Proceed.
    16. You will see the Shopify custom fields on your entry page as shown below:

      Shopify-Entry.png

      In the new version of Shopify, you can select both products and collections in the same entry.

    17. Click the Add Product(s) button, select the products from your Shopify store and add them to your entry.
    18. Shopify-Media-Products.png

      Note: In the new version of the Shopify app, you can select products based on collection.

      The products you selected are referenced within your entry.

      Shopify-Products-In_Entry.png

      To view the products in list view, select the list view option from the dropdown as given below:

      Shopify-Thumbnail_and_List.png

      The products you selected are referenced within your entry in a list.

      Shopify-Products-List_View.png
    19. To reorder, open in Shopify or delete the selected product, hover over the product to get the options available, then perform the following:
      1. Click the Drag icon to drag and reorder the product.
      2. Click the Open in Shopify icon to open the image in the Shopify app.
      3. Click the Delete icon to delete the product.

      Thumbnail View

      Shopify-Product-Edits.png

      List View

      Shopify-Product-Edits-List.png
    20. Click the Save button to save your entry.
    21. You can view more product details in the Sidebar Widget.

      Note: You must save your entry to get the product details in the Sidebar Widget.

    22. On the right navigation panel, select Widgets and then select Shopify to view the product details.
    23. Shopify-Product-Sidebar_Widget.png

      Note: Deprecated version of Shopify app does not support Sidebar Widget.

    24. Click the Add Collection(s) button, select the collections from your Shopify store and add them to your entry.
    25. Shopify-Collections-Media.png

      The collections you selected are referenced within your entry.

      Shopify-Collection-In_Entry.png
    26. To open in Shopify or delete the selected product, hover over the product to get the options available, then perform the following:
      1. Click the Open in Shopify icon to open the image in the Shopify app.
      2. Click the Delete icon to delete the product.
    27. Shopify-Collection-Edits.png
    28. You can continue to use the old version of the Shopify app in the current version by adding products using the Shopify-Deprecated custom field.
    29. Shopify-Deprecated_in_Entry.png
    30. Click the Save button to save your entry.

Was this article helpful?

Thanks for your feedbackSmile-icon

On This Page

^