Good afternoon everyone,
So, in my current implementation of Celigo, I need to integrate hundreds of Shopify shops products into a single multi-language (English & French) eCommerce platform. Those of you who know Shopify know that getting translated product data through its REST API is a hassle.
So the approach I've chosen is that I use the Shopify Shop REST API to pull the product data in the shop's "main language". Which is most often French.
Then, I need to pull the data in the other language (English). To do so, instead of trying to figure out which translation strategy the shop is using and which API I need to use (in the Shopify world, there are many approaches), I try to pull the product data from the storefront URL :
So far, this works fine. I get the data I want into Celigo. The issue is the following.
I've found no way of obtaining the total number of pages. The absence of this information does not prevent the export from running BUT it returns two errors :
I've found no way of solving these errors. So I've opted to include a preSavePage script that loops through eventual errors and simply removes these two when they occur. Not graceful I will admit.
How would you tackle this situation? Ideally, I would find a way to prevent these errors from occurring in the first place
Thanks again for your support
Please sign in to leave a comment.