Jump to content

Recommended Posts

Posted

Hi folks,

for a client of mine, I am considering to build a solution to import Shopify producsts via Shopify API into the Processwire backend, creating pages for each product. This task should be repeated each 15 minutes or so via cronjob, to keep the product list up to date.
Reading the Shopify API docs I found out that among the many Shopify APIs these two libraries could be the right ones:

Shopify API Library for PHP
https://github.com/Shopify/shopify-api-php

PHP Shopify SDK
https://github.com/phpclassic/php-shopify

Is there anybody in the forum who has experience with those libraries, or who knows which one of the libraries is better to get the job done?
Has anyone already build a Processwire module to do that?

Posted

Hi @Nomak. Welcome to the forums.

7 hours ago, Nomak said:

I am considering to build a solution to import Shopify producsts via Shopify API into the Processwire backend, creating pages for each product.

Is this a one-off? If yes, another option is to export the products (in the Products Dashboard in Shopify admin) as CSV and then use that to import the products into ProcessWire. At that point you can use the ProcessWire API  + PHP to do the imports or modify the CSV and use a module such as ImportPagesCSV to import to ProcessWire.

  • Like 2
Posted

@Gideon So Thanks for that input, I didn't know that the API can be accessed also by much simpler scripts withou using the library.

@kongondo No, it's not one-off. The product import should be each 15 minutes or so via cronjob. I have edited my post to explain it better.

  • Like 1
Posted
10 hours ago, Nomak said:

The product import should be each 15 minutes or so via cronjob. I have edited my post to explain it better.

I see. In that case, you need to be aware of Shopify API rate limits (if you are not already ?). 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...