Skip to content

An app that displays a Custom Collections list page and a Collection Details page.

Notifications You must be signed in to change notification settings

KalpeshThakare/ShopifyTest

Repository files navigation

ShopifyTest

An app that displays a Custom Collections list page and a Collection Details page.

PROBLEM STATEMENT

You're a successful Shopify merchant with many collections of products! You’d like to keep an eye on your collections. Let’s create an app that displays a Custom Collections list page and a Collection Details page. Your app will fetch the data from the Shopify Custom Collections REST API.

Custom Collections list page: A simple list of every custom collection (e.g. In our above response you will see we will need cells for: Aerodynamic, Durable and Small). Tapping on a collection launches the Collection Details page. Collection Details page: A list of every product for a specific collection. Each row in the list needs to contain, at a minimum: The name of the product The total available inventory across all variants of the product The collection title The collection image

To fetch the products for a custom collection you will need to retrieve the list of collects in a specific collection first : https://shopicruit.myshopify.com/admin/collects.json?collection_id=68424466488&page=1&access_token=c32313df0d0ef512ca64d5b336a0d7c6

(replace collection_id with the appropriate id you retrieved from the collections list)

Then load the product details with each product_id in the collect list :

https://shopicruit.myshopify.com/admin/products.json?ids=2759137027,2759143811&page=1&access_token=c32313df0d0ef512ca64d5b336a0d7c6

(replace ids with the appropriate product ids separated by a comma)

REQUIREMENTS

iOS 10.0+ / macOS 10.12+ / tvOS 10.0+ / watchOS 3.0+ / Swift 4.0+

  1. Install Pods from pod file
  2. Open ShopifyTest.xcworkspace Project

LIBRARIES USED

    1. Almofire : Fetch Data from web Api
    1. Kf Kingfisher : Fetch Image from url
    1. Toast : To show Loading while fetching data from webservice

About

An app that displays a Custom Collections list page and a Collection Details page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published