Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Browsing all 25503 articles
Browse latest View live

order / sales data by collection by eugenepark

Hello,I'm building a store that will sell merchandise from different brands.  We are building a data warehouse that will need to show the clients we work with (the brands) their sales data in a...

View Article


Andrew commented on Invalid Json from shopify webhook

Thanks,But unfortunately I cannot remove the invalid encoding since the webhooks is for our application and we do not have write access to our users products.Any Ideas on how to still get the request...

View Article


HunkyBill commented on Invalid Json from shopify webhook

Rails is Ruby. Ruby has exception handling. Wrap your JSON parse in an exception handler for that exceptional situation. That will allow you to not crap out and thus you can extract the good stuff and...

View Article

Andrew commented on Invalid Json from shopify webhook

Unfortunately in Rails when posting with invalid json parameter it all blows up before ever reaching our application code as the JSON parse error happens in the middleware layer.We are looking into...

View Article

HunkyBill commented on Invalid Json from shopify webhook

Have fun. Lucky for you those Thoughtbot guys did all the work for you so you have not much more than copy and pasting to do.I am beaming my smug Sinatra user smile now... as I have 260,000 less lines...

View Article


Andrew commented on Invalid Json from shopify webhook

I am beaming my smug Sinatra user smile now... as I have 260,000 less lines of code to hack than you do :)Haha, Well put.

View Article

Direct link to an .xml file by Olga Levicheva

Hi everyone, sorry for stupid question, I've read some topics on the theme but they all seem way to complex. I need actually a simple thing. I've added an .xml file to my assets. Is there a way to get...

View Article

AJAX to get JSON of All Products from Any Page ? by Sprouter

Hi,I've created a new page on Shopify using a custom template that is basically empy :I now need to make an AJAX call from that page and retrieve a JSON of all the products. Something like :...

View Article


Sprouter commented on AJAX to get JSON of All Products from Any Page ?

Found it myself, it's : jQuery.ajax({  url: "http://xxxxx.myshopify.com/products.json",  success: function(response)  {    window.RESPONSE = response;  }});

View Article


Webhook Not working by vijay

Hi,I'm trying to create a new Webhook through private API. But it always return{"errors":{"webhook":"Required parameter missing or invalid"}}Request URL:...

View Article

Chris Saunders commented on Webhook Not working

You have a semicolon in your JSON. Your JSON is invalid.

View Article

HunkyBill commented on Webhook Not working

@Chris,That is funny of you to remark. If you paid any attention to Shopify forum details, you would know that that semicolon is a longstanding bug in your forum software. You can paste perfectly valid...

View Article

Can I apply a coupon/discount through the API to an order? by Sonukapoor

Hi,I would like to be able to apply a coupon/discount to an existing order through the API. Is that possible?Thanks

View Article


Chris Saunders commented on Webhook Not working

Your comment isn't adding anything here. Thank you for pointing out that this is an issue with our RTE or whatever that is pasting in these semi-colons.I've looked into our logs and didn't see anything...

View Article

How do I get Product Variant Quantity using AJAX ? by Sprouter

Hello,I'm making the following AJAX request and I get a JSON object of all available products along with all the relevant details for every variant of every product :jQuery.ajax({    url:...

View Article


HunkyBill commented on How do I get Product Variant Quantity using AJAX ?

When I do the same thing I get inventory.variants: Array[1]  0: Object  available: true  barcode: ""  compare_at_price: null  featured_image: null  id: 1018133488  inventory_management: null...

View Article

Sprouter commented on How do I get Product Variant Quantity using AJAX ?

I'm afraid I don't, I make the AJAX request that I talked about and all of my variant objects of every product only contain the following properties :available: truecompare_at_price:...

View Article


HunkyBill commented on How do I get Product Variant Quantity using AJAX ?

I see. You are trying to get all products, and that endpoint only provides a cursory overview. Too bad. If you want actual inventory amounts, call the product endpoint with the handle.

View Article

Sprouter commented on How do I get Product Variant Quantity using AJAX ?

So I have the following : product id : 389718792variant id : 1043488712and I want to get a JSON that will contain the inventory amount for the above variantI'm trying this path...

View Article

HunkyBill commented on How do I get Product Variant Quantity using AJAX ?

A quick and dirty jQuery call to the product endpoint (needs the handle, not ID) would be:$.getJSON('/products/somehandle.js', function (product) {  console.log(product); });Since your call to...

View Article
Browsing all 25503 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>