f you have a Shopfy store that you would like Spark Shipping to connect to for live inventory it can be done by doing the following.
Create a CSV Template
- In the Shopfiy Admin go to Online Store -> Themes
- On your current theme go to ... -> Edit HTML/CSS
-
Select 'Add a new Template'
-
Create a new template for 'Collection' called 'csv'
-
Replace the code in collection.csv.liquid with:
{% layout none %}
{% paginate collection.products by settings.collection_ppp %}
{% endpaginate%}
SKU, Quantity, Cost, Product Name<br/>
{% for product in collection.products %}
{% for variant in product.variants %}
{{variant.id}}, {{variant.inventory_quantity}}, {{variant.price}}, {{product.title}} ({{variant.title}})<br/>
{% endfor %}
{% endfor %}
Create a Collection of all the Products
- Go to Products -> Collections -> Add A New
- Title = All Products
- Conditions -> Automatically select products based on conditions
- Inventory Stock is greater than -1
-
Template -> collection.csv
-
Save Collection
Use the Collection as a Spark Shipping Inventory Feed
- Go to Products -> Collections -> All Product (click all products) -> View (top right)
-
That will take you to your inventory new feed!
-
Copy this URL when setting up an inventory feed in Spark Shipping.
-
When creating a new Inventory Update in Spark Shipping select the HTTP as the Inventory Method and use the URL from above as the HTTP URL