Not able to create product in shopify - 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.

Related

How to verify the Access Token on the Shopify_App splash Screen

When the app review team uninstall and reinstall my app with their automated tools, they are getting an error because the uninstall webhook has not yet triggered the delayed job to delete the Shop record. I think that's then tripping up the install process because it is finding the old shop record with an invalid access token.
I've been advised that:
You should not be relying on an uninstalled webhook to determine a shop's status with your app. instead, each time a shop hits your app,
you should make a request to your server to first determine if the
access token you have for them is valid (if so, they have your app
installed - if not, redirect to OAuth) and then from there check for a
valid charge ID using the billing API (if not, redirect to billing
page).
How should I check the api key validity? When the app is installed they are redirected through splash page, so I need to somehow know if it's a new install and if it is, check the access token somehow?
It's really hard to tell what's wrong without knowing your architecture or request auth flow, so the solution could be somewhere else. Embedded apps redirect to shopify domain where Shopify checks if app URL is added to the store. If not it will return "There is no page at this address".
Answering your question -> the easiest way would be to make an API to /admin/shop.json request and see if you get a 401.

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

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.

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

Create a new user with permission to access app store

I am trying to add a new account and allow that account to access the Bigcommerce App Store.
I followed the tutorial on Tutorial
I have created the account, assign all the permissions by setting the user role to Store administrator as shown below. Somehow, the user I have created still can't access Bigcommerce App Store.
Could someone please tell me what I am missing? Thanks
Only store owners have access to the single click apps on the Bigcommerce Appstore at this point. This is both to install and access the app once installed.
You can find documentation on that here: https://support.bigcommerce.com/articles/Public/How-do-I-access-and-install-the-new-single-click-apps-within-my-Bigcommerce-store-control-panel
------- UPDATE -------
As Alyss correctly indicates, BigCommerce has now updated the app system. Now, if an app is setup to handle multiple users, it is possible for users other than store owners to access an app.

Regain access to an app created by a FB Page Account

Several month ago, before FB restricting the ability of a Page Account to create apps, I have created an application and linked to the page.
Now I cannot access anymore to the developers page with this account. I had to create a new app with my personal account, but I can't find a way to remove or unlink the old app from the page.
I cannot create a new page, as a result of nearly one year of activity on the current page, and trying to link the new app to the old page I get an undefined error.
We are in a sort of limbo...
Anyone has an idea on how to solve this situation?
I'm assuming you mean 'business account', not Page?
If so, and you're still able to log into the business account to manage your ads and pages, you can authorise your app by manually calling the Oauth dialog with the client-side Oauth flow, then use the access token (which will be for your business account, the admin of the app), to add your real user account as an additional admin
https://developers.facebook.com/docs/reference/api/application/#roles
You can define a role for a user by issuing an HTTP POST request to
APP_ID/roles with a user access token for an administrator of the app...
So a call to https://graph.facebook.com/<APP ID>/roles?user=<USER ID OF REAL ACCOUNT>&role= administrators&access_token=<ACCESS TOKEN>&message=POST will add another admin