command shopify theme serve show error when i'm the owner - shopify

i try to use command shopify theme serve in my project. My account is owner and i also create a staff account with all sensitive permissions. But the terminal always return You can't use Shopify CLI with development stores if you only have Partner staff member access. If you want to use Shopify CLI to work on a development store, then you should be the store owner or create a staff account on the store. . How i can fix this

I've had a plethora of issues with Shopify CLI, so I can help here. This has happened when I have been logged in for a while. I will need more information, but will provide a few catch-all solutions.
1.Are you using a developer account, or are you logged into a store? Try logging out and logging in again as the owner account.
What version are you using?
shopify version
Have you tried logging out and logging back into your store? This usually rectifies it.
shopify logout
shopify login --store=[your .myshopifyURL]
Are you using ruby or homebrew? I have found ruby to be much more stable, and it allows to switch between Shopify CLI versions.
Try switching to a previous shopify version 2.20 or 2.19 if you continue seeing issues. Again, this will need to be done with ruby, as homebrew does not allow any version backtracking.
Edit: make sure your login command looks like this:
shopify login --store=verizon.myshopify.com
You can paste this link from shopify admin, as it is the same link.

Related

Shopify CLI 3.x

I'm trying to run the local development for my theme in shopify but I'm logged on to a shopify store but when I run "shopify theme dev" I need to log in to my shopify partners account which I don't have since the store is live and running.
All I want is to log in to my store and and work on themes that I have pulled down from github.
I have tried logout and login and reinstall everything

Shopify Public App - How To Get Key, Token & Url

I am totally new to Shopify Public App development and I will need your help to understand it a bit better.
For a client, I need to build a Shopify Public App that will be used by several Merchants.
This application will have to access the Merchants' store via the Admin API.
If my understanding is correct, in order to access one specific Merchant's store via the Admin API, I need to have 3 pieces of information from that Merchant's store: the Public API Key, Token and URL.
Now, my question:
When the Shopify Public App is installed by a Merchant, how does my app get these 3 pieces of information (specific to that particular merchant) ?
Is there any "magic" trick? Does the Merchant need to input this info? ...
In advance, many thanks for your help
Each merchant will need to install your app. In the installation phase shopify will pass, as an argument, the access token, that is a token that you will need, to use the Admin API.
If we're talking about an embedded app is expected that every request made is authenticated.
Depending on which kind of app you want to create (embedded or not) and language you may want to use, using the Shopify Cli to create the first draft of the app is really reccommended. It will create the base to have an installable app. Here is the documentation https://shopify.dev/apps/getting-started/create
You need to install the Shopify Cli and then run
shopify app create (node | ruby | php)
depending on your language of choice.
For those who might be interested, I finally found the link to the information.
Shopify - Getting started with OAuth

Not able to create product in shopify

I started with these commands
shopify node create
shopify node serve
installed app by going to ngrok link
then I tried to create product with
shopify populate products
but I am getting this error
Command not allowed with current login. Please check your login details with shopify whoami. You may need to request additional permissions for this action.
As per the message within the error, this is caused by your API credentials, whether that be for the current staff account, or the Private App that has been used to generate the access tokens.
You will need to speak to the account owner of the Shopify store that you are accessing to get your privileges upgraded.

What is the Shopify Public App Install Flow?

So I've been building a Shopify App.
Currently I've gotten to the point where I get the permanent access code.
My question lies with the flow of installation.
Currently the store owner would create an account on my website, then click a button to install our shopify app.
taken to shopify app install prompt -> clicks install -> redirects to my site where I exchange code for access code.
This works fine. But where I am having trouble is what if once my app is on the Shopify Store.
A store installs it from shopify directly (meaning they don't have an existing account with me) I then have no account to save the data to.
How do I go about this?
I looked at other apps on the store. Some apps like Shippo can take you straight to their site first to create an account and then install their app.
What's the solution?
You misunderstand the install from Shopify. When someone installs from Shopify, they come knocking on your door. They introduce themselves as being ***.myshopify.com. Once they approve your App and accept your terms of service, you get to confirm their account, and hence you persist their data in your database exactly the same as someone that installed your App outside Shopify.
So when you say you no account to save the data to, well of course. They are a new install. So make a new record. Instead of an update, you to a create.

How to do Google Sign-In in Meteor

I've tried various tutorials and links on how to get Google Sign-In to work in Meteor to no avail. How can I create a google sign in button on my login page that redirects to my user dashboard--using iron:router perhaps (and shows the persons name in the corner), and restrict the google emails to only .edu accounts?
Also as the admin of the page how would I be able to see the emails/names of all the people who have logged into my website? Is this done through Google Analytics?
Try adding the accounts-google package. You'll need to configure the Google sign in with the application key and secret. The easiest way to do this is to also add the accounts-ui package and using
{{> loginButtons}}
which will display detailed instructions on the steps to follow on the Google page. It will also save your app key and secret tokens appropriately.
Once this is done you'll be okay using the method
Meteor.loginWithGoogle()
as explained in the docs. It takes an optional array of options and a callback function
e.g
Meteor.loginWithGoogle({}, function(error){
if(error)
//Couldn't log in
else
Router.go('/dashboard');
})
Good luck
For Google Sign-in, I would recommend installing the accounts-entry package and configuring it from your browser:
install with latest meteor version
meteor add joshowens:accounts-entry
and for meteor version before 0.9 use
mrt add accounts-entry
For your dashboard redirection, review the documentation for that package on atmospherejs.com which demonstrates how to configure your dashboardRoute:
dashboardRoute: '/dashboard'
The iron-router package is a dependency of accounts-entry, so it will be installed as well.
Access the data by launching the MongoDB shell (after starting your app):
meteor mongo
Query for the accounts using the MongoDB shell:
db.users.find()
This is not handled via Google Analytics