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

HunkyBill commented on [EASDK] ShopifyApp.User.current: need name & email too

$
0
0

Interesting. The usual API gives away all the shop admin info and that spans 100,000 stores and as many App installs as you can imagine. How that changes with the EASDK is interesting as per security since we're not moving data about any differently. Does this imply you're considering major changes to the conventional API too?

Some of my Apps involve the creation of accounts both internal to Shopify and external. Knowing "who" the internal user is goes a long way to improving the usage of the App internally. 

 


Chris Saunders commented on can't get permalink custom attributes to work; attributes are not being saved with order.

$
0
0

Yeah looks like something weird is going on with your checkout. This "should just work" though I don't know whats going on here. 

Chris Saunders commented on [EASDK] ShopifyApp.User.current: need name & email too

$
0
0

Just dumping a serialized user into the ShopifyApp.User object isn't the solution. There's a lot of information on these objects that embedded apps shouldn't know or need to know about. You basically just need a way to identify who it is. We are looking into what information could be included here and will have a post about that when we make an update to this aspect of the API.

jmac commented on API returns empty Custom collections

$
0
0

Many thanks for the reply.

I tried the smart_collections.json endpoint but i get the same reply from the store which shows:

{"custom_collections":[]}

When i tried it on my own store, which has no smart_collections, i get the reply

{"smart_collections":[]}

which seems correct.

Any ideas why i'd get a reply of custom_collections to the smart_collections.json endpoint?

As i said before i can access this stores collections via the collections url after their domain and see their collections listed but not via the api

Many thanks for the reply

 

Matt Gold commented on can't get permalink custom attributes to work; attributes are not being saved with order.

$
0
0

Hi, how can you tell something weird is going on with my checkout?  did you look in the order details page and not see the attributes passed via the permalink? or is there something visibly different about the checkout page?  Thanks!

Laser Touch commented on Help with setting a custom price on a product using API

$
0
0

Thanks for your reply.

I do have that application, but our online software needs just to set the price of a single product. I don't want nor need to create a new product each time a user creates an order.

 

Please can someone show how to set a price of a product using the API.

 

Craig

Access shop.permanent.domain in javscript inserted with a script_tag by Araxie

$
0
0

Hopefully this is an easy question for someone.

I can successfully insert Javascript using a  script tag, but how do I access the liquid variable shop.permanent.domain in my javascript?

Right now my .js looks like:

var shop={{shop.permanent_domain}};
var newPage="http://www.myserver.com?shop=" + shop;

function openNewPage(){
window.open(newPage)
}

jmac commented on API returns empty Custom collections

$
0
0

I have tried the call to the smart_collections.json on two different stores now (i.e. sending the URL https://<mystore.myshopify.com/admin/smart_collections.json?published_status=published&limit=8&page=1 to a store owner and getting them to send me the result while they were logged into their store) and both return a custom_collections object???

One of the stores returns an empty custom_collections object even though i can navigate to /collections on his store and see his collections.

The call to custom_collections.json returns the same empty collection : 
{"custom_collections":[]}

The other store also returns a custom_collections object for a call to smart_collections.json that only contains half the collections i can see when i navigate to /collections on his store. A call to custom_colletions.json on this store returns the same.

Both do not return a smart_collections object.

Is there anything else i can try to see all of a shops collections?

Why do i get a custom_collections reply to a call to smart_collections?

Many thanks


Carted commented on [EASDK] ShopifyApp.User.current: need name & email too

$
0
0

Just a name would be sufficient for us. We get a lot of requests from store owners about who edited an order or changed app settings. Would be nice to put at least a name in our update records. Email would also be nice for support requests coming from the app but not required.

Carted commented on Webhook Payloads

$
0
0

Looks like a custom collection as it doesn't have disjunctive or rules as an attribute. That's my guess anyway but yeah it is a bit of a trial and error situation.

Carted commented on Help with setting a custom price on a product using API

$
0
0

No way to do this with out the application creating a new product each time.

SmartPro commented on Is there any way to customize my account page by using php?

$
0
0

Hi Rashmi,

 You can look at SocialShopWave platform(socialshopwave.com), they provide a lot of features to interact with your customers

Marius Andreiana commented on GET /cart.js : add product_id

$
0
0

Sure! Upselling or cross-selling apps relate products using product ids, not variant ids.

And yes, we can get product id once we know the variant id, but that's one extra query.

Marius Andreiana commented on GET /cart.js : add product_id

Creating test orders in Shopify without a Zip code by James Pudney

$
0
0

I'm looking to test an integration between another service and Shopify. This other service requires zip codes to be present on any addresses, yet we've had some orders from Shopify that omit this data. We've created a fix that needs testing, yet I can't seem to create an order without a zip code (both via the GUI and the APIs).

What I'd like to understand is how some orders from specific countries can omit the zip, yet others can't? So far the countries affected include Ireland and Hong Kong, however there are no doubt others.

As an example here's the order that I'm attempting to post using the api:

{"order": {"billing_address": {"address1": "first line of address","city": "Hong Kong","country": "HK","first_name": "Firstname","last_name": "Surname","latitude": 22.378310,"longitude": 114.230498,"phone": "0123456844","province": "","zip": ""
        },"customer": {"email": "james+HK@phpgenie.co.uk","first_name": "Firstname","last_name": "Surname"
        },"email": "james+HK@phpgenie.co.uk","line_items": [
            {"quantity": 2,"variant_id": 350323185
            }
        ],"shipping_address": {"address1": "first line of address","city": "Hong Kong","country": "HK","first_name": "Firstname","last_name": "Surname","latitude": 22.378310,"longitude": 114.230498,"phone": "0123456844","province": "","zip": ""
        }
    }
}

The response that we get from the Shopify api is expected:

{"errors":{"billing_address":["Zip can't be blank"],"shipping_address":["Zip can't be blank"],"order":["Shipping address Zip can't be blank"]}}

How can we create orders that have no zip code? Any pointers would be greatly appreciated.

James


Missing or invalid parameter when POSTing an order to store by jamie koning

$
0
0

I am reading through the api and there is an example on http://docs.shopify.com/api/order#create showing a POST of the following json:

{"order": {"line_items": [
      {"variant_id": 447654529,"quantity": 1
      }
    ]
  }
}

I have the following json that I am trying to POST to my store:

{"order": {"line_items": [
            {"variant_id": 314451299,"variant_title": "No Tax with Shipping","quantity": 1
            }
        ]
    }
}

However, when I try to POST i get this error:

{"errors":{"order":"Required parameter missing or invalid"}}

For headers I have:

content-type: application/json

X-Shopify-Access-Token: My Token

 

Discounts/Coupons API Support by Marcio Vieira

$
0
0

When will the API officially support creating/retrieving coupon codes?  It looks like this has been a very frequent request by users for years, so I'm sure it's something that will eventually happen, but I wonder if there's a timeframe yet?

Matt Gold commented on can't get permalink custom attributes to work; attributes are not being saved with order.

Setting custom variant titles by Marius Andreiana

$
0
0

When updating/creating variants, looks like Shopify will set a variant title to "option1 / option2 / option3", even if the API request specifies another title.

Is it possible to set a custom variant title?

 

Carted commented on Creating test orders in Shopify without a Zip code

$
0
0

Have you tried posting this with a null value or removing the attribute completely?

Viewing all 25503 articles
Browse latest View live


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