DEV Community

Elightwalk Technology
Elightwalk Technology

Posted on • Updated on

Shopify how to fetch and display data on a merchant's store from an external source.

App Proxy

Using app proxies take requests to Shopify links, and redirect them to external links. This allows you to fetch and display data on a merchant's store from an external source.

Add an app proxy

1 From your Partner Dashboard, click Apps.
2 Click the name of your app.
3 Click Configuration.
4 Navigate to the App proxy section and click Set up.
5 In the App proxy section, select a prefix from the Subpath prefix drop-down list.
6 Enter a sub path in the Subpath field:

Image description

These settings determine which HTTP requests to Shopify are proxied to the proxy URL entered in the next step. For example, if the sub path prefix is apps, and the sub path is store-pickup, then any path in your online store after https://example.myshopify.com/apps/store-pickup will be proxied to the provided proxy URL.

7 Enter the URL of your proxy server in the Proxy URL field. This is the URL that will be proxied from the path that you entered in the previous step.

8 When you're done, click Save and release.

Example
Consider the following app proxy configuration:

**Sub path prefix: apps
**Sub path: my-app-proxy
**Proxy URL: https://my-app-proxy.com/app_proxy

In this example, https://example.myshopify.com/apps/my-app-proxy/app_path forwards to the proxy URL at https://my-app-proxy.com/app_proxy/app_path. Subsequent child routes included in the request are forwarded as well, so https://example.myshopify.com/apps/my-app-proxy/child-route is forwarded to https://my-app-proxy.com/app_proxy/child-route.

Contact us today for expert Shopify development services, and let our experienced team help you create a high-converting, user-friendly online store that elevates your business.

Top comments (0)