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

Hide Specific collections in search results by Hen Mantel

$
0
0

Can  i  hide Specific collections in search results ?

I set the search results to show only products , but there is Specific products  that I don't want to show in search results

If I'll hide products from my online store it is impossible to buy them ….


Webhook using Zapier by Sean Jago

$
0
0

Hey!

I am looking to test out a workflow for a customer of ours. Basically they would like to redeem a reward in our product and have it automatically shipped out from their Shopify store.

Looking through the documentation I figure I can do this using Zapier to connect the two products but I am having trouble finding a URL I need to enter into Zapier.

It should look something like this (one I found setting up a flow for skilljar) https://api.skilljar.com/v1/users/2jyfkr1a8glur/published-courses/3a76k76bot6zk/lessons/2uq5c4ucm7mmt

Could anybody offer any suggestion on this?

RecurringApplicationCharge API with Python - URL not found? by Ronen Ness

$
0
0

I'm trying to activate the Recurring Application Charge API with shopify_python_api, and I keep getting 'Not Found' error.

Code looks something like this:

>>> attr = {"name": "Super Duper Plan", "price": 10.0, "return_url": "http:\/\/super-duper.shopifyapps.com", "test": True}
>>> with user.session:
...     t = shopify.recurring_application_charge.RecurringApplicationCharge(attr)
...     t.activate()

(The 'with user.session' part is from the django-shopify-auth app (https://github.com/discolabs/django-shopify-auth) and it just set the store token etc into the shopify API.)

Anyway the code above return this error:
ResourceNotFound: Not Found: https://testchargeapi.myshopify.com/admin/recurring_application_charges/new/activate.json

Any idea why or what might be missing? PS. the store is not a development / test store, however the app itself is not yet publish, if that somehow matters..

Thanks!

Adam Robson commented on Search by SKU/Barcode - 3.0 - Feature Request

$
0
0

Couldn't agree more with Spicywith. 

How do we search by SKU and get a product response using the API? 

Adam Robson commented on Search by SKU/Barcode - 3.0 - Feature Request

$
0
0

Further to my query if I simply post the API call into a browser (e.g. https://mystorename/admin/products/search.json?fields=id,handle,variants&limit=1&query=sku:20307898) the API returns a result and correctly searches and provides the information just fine, however if I try in my console application using my API key, it fails with 501 Not Implemented. Any help?

I did find this comment where some stores are enabled and others are not? The store I am working on is a ShopifyPlus client. https://ecommerce.shopify.com/c/shopify-apis-and-technology/t/api-product-variant-search-183152

Changes to themes don't update the "updated_at" attribute by mandegar

$
0
0

Hello,

I have noticed that if I make changes to a theme using Shopify's theme editor (eg: change font size, background colour, etc...) the "updated_at" attribute on the theme does not change. However, if I change strings under the "Edit Language" menu of the theme, the updated_at does indeed change.

Is there a reason for this behavour?

Zac commented on Embedded App, Expiring Sessions

$
0
0

Something I've done with a few applications is checking for the existence of an HMAC in the current session or refferrer url. If it doesn't exist at all, then I'll forcibly refresh them through javascript to the same page - which will grant fresh hmac information.

It's probably not the nicest way to do it -- but Shopify don't provide fresh hmac data with every page change inside of your application. They give it to you in the initial transaction, then expect you to count the rest of the session as valid.

Over and over i have get Error Code: 500 Error Message: Internal Server Error on webhook by Jaydip Kansagra

$
0
0

Your webhook for 'orders/updated' at 'https://domain/orders/getorder'
has been returning failure responses. This webhook has been attempted
51 times so far and failed. If this continues to
happen the webhook will be removed and your application will not
receive any more notifications.

My code is perfectly run when i run from browser and also webhook.

But why this type of errors was accuring over and over.

i have also check timeout on my server, code responce is not take more than 5 second.


Badr commented on Get a list of specific products

$
0
0

Hi Jason,

 

Thanks for your response,

i have a list of product ids, and i want to get just the product that belong to my list.

i used ShopifyAPI::Product.find(product_id) to get one product but i don't figure out how to use it if i want to get just 3 or 4 products.

Thanks

Webhook API broken??? by Fredrik Widman

HunkyBill commented on Webhook API broken???

$
0
0

Webhooks are usually created with an API key, and belong to an API key. Hence you can only see webhooks you create when you create a session with the API key used to create the webhook. Make sure you are making your query that way. On the other hand, if you just created a Webhook inside the Shopify Admin, obviously you'd see those by just asking for the JSON as per your example. 

 

Wondering Where to Add my custom gateway code by imanuelgittens

$
0
0

Hey Guys,

I was wondering if you could assist me with a small problem. I'm trying to build a payment gateway connection to shopify using the Hosted Payment SDK. I've basically built the connection on my local machine but I want to know where to upload this code so that it works in my testing environment.

Thanks in advance for any help. 

Imanuel

Fredrik Widman commented on Webhook API broken???

$
0
0

Thanks for the quick response!

The webhook was created inside the shopify admin.
I'm using my regular API keys (private app) to authenticate my API calls.
I get zero webhooks in the responses.

I don't get it! =(

 

 

Post API to create new order of new customer from external website by Joydeep Tapadar

$
0
0

I have 1 client who is using shopify plus subscription. They want to create one micro site for 1 of their product which is already there in shopify inventory. Is it possible to take the product reference and new customer details with billing and shipping information from the microsite (dotnet site) and pus the details using [POST API /admin/orders.json] to handle payment and fulfillment as it is setup in shopify account ?

Whatever payment gateway and fullfillment used in shopify plus account we will use the same and also manage rest of the things from shopify dashboard.

Please reply with the possiblilites.

HunkyBill commented on Webhook API broken???

$
0
0

You contradict things here. If you used the admin to setup the Webhook, then you can see it in the list of webhooks shown to you in the admin itself. Has nothing to do with an API key in that sense. 

If you used a private App API key to create a webhook, then you have to make your calls with that API key to see the webhooks. Nowhere in your examples do you show you are using your API key. Try using it. It will reveal your webhooks!


Fredrik Widman commented on Webhook API broken???

$
0
0

Now I get it!

Thanks, and sorry for the fuzz.

Badr commented on Get a list of specific products

$
0
0

i find out how to do it so i post the solution if a new shopify developer like me want do the same thing

ids = '1111,5555'

ShopifyAPI::Product.where(ids: ids)

400 Bad Request by Arty Usmanov

$
0
0

Hi,

I've connected a new domain from namecheap.com, and got 400 Bad Request. From almost any device except 1 pc in the office. Not sure why that PC is so special, but any other device showing 400 Bad Request. 
Googled it, don't know what to do.

Thank you, 
Arty

Arty Usmanov commented on 400 Bad Request

$
0
0

It works from shopify domain btw, but on new one 400 Bad Request.

ALower commented on Exact URL to post to

$
0
0

Hi Jamie,

Thanks for replying.

Not too sure what you mean. I'm trying to create an app that allows any shop to install it and have been using the OAuth documentation.

Thanks,

Andy

Viewing all 25503 articles
Browse latest View live


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