Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Started #17

Open
jamesdeantv opened this issue Feb 9, 2016 · 4 comments
Open

Getting Started #17

jamesdeantv opened this issue Feb 9, 2016 · 4 comments

Comments

@jamesdeantv
Copy link

N00b here... How would I actually implement this package into my project. Im puzzled as to my first steps. My end goal is to access the shopify api in order to parse a json file and display the results in a meteor template.

@froatsnook
Copy link
Owner

Hi @jamesdeantv

Can you give me some more info? Do you just want it to work for your shop? Or do you want people to be able to install it from the app store? Or do you already have users and want to add a shopify integration?

@kbrisso
Copy link

kbrisso commented Feb 21, 2016

Hi @froatsnook
I have a question also. I can use this to build a custom store in Meteor right? I could then just utilize Shopify's check out. I did get the plugin working with my dev store as a private app. I'm just wondering what other people are using this for.

@froatsnook
Copy link
Owner

Hey @kbrissoGitHub. Huh, I didn't know that was possible. How do you start the checkout process?

I made the package while building a tool for a shop owner's warehouse -- take the new orders from the API, generate a pick list, generate bills and packing slips, scan the barcodes on the bills/packing slips to mark orders as fulfilled via the API, etc.

I'm not sure what other users are doing. Wanna chime in @ilrein, @lukeclifton, @dbnoble?

@lukeclifton
Copy link

Hey @kbrissoGitHub / @froatsnook.

You could use a Meteor App to create new products via the Shopify API (using this package, or others like it). But you would need some kind of JS script / app within your Shopify theme to actually add the products to the Shopify cart via the cart AJAX API. (https://docs.shopify.com/themes/development/getting-started/using-ajax-api).

This is the breakdown for the Shopify / Meteor project i've been working on for a client:

  • I have a AngularJS app embedded on a product page template, which handles product options and pricing.
  • That talks to a Meteor app which generates custom advanced product pricing.
  • When the 'Add to Cart' button is clicked within the Angular app it then calls the Meteor app which in turn creates a duplicate product via the Shopify API, but with the new product price and returns the new product id to Angular app.
  • Which in turn adds the new product to the cart via Shopify's cart.js script

You can do some quite complex functionality with the right mix of technology.

Any questions just ask!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants