Step 2. Import Definitions and demo entries.
Import Metafield definitions, Metaobject definitions and Metaobject entries.
Requirements
You need to complete the app installation steps and complete the steps in the Getting Started section Step 1. Getting started with Ciseco - Hydrogen and Oxygen
โStep 1. Create a Private Admin App
Go to the Shopify admin dashboard, navigate to Settings >
Apps and sales channels
>Develop Apps
, and click onCreate app
.After naming and creating your app, move to the
Configuration
tab.In the โAdmin API access scopesโ section, click
Edit
and select the following scopes:read_apps, read_files, write_files, write_metaobject_definitions, read_metaobject_definitions, write_metaobjects, read_metaobjects, write_products, read_products, write_themes, read_themes
Under Webhook subscriptions, choose the
2024-04
API version.Lastly, navigate to the
API Credentials
section.Copy the Admin API access token and save it to a file for convenient use in the steps below
Step 2. Import Definitions and demo entries.
You can deploy the Hydrogen application to Oxygen and import data there. However, my advice is to check everything on Localhost and deploy it to Oxygen as the final step.
Check all environment variables have been set correctly and node_module has been installed.
Open the terminal and run:
"npm run dev"
Go to
http://localhost:3000/cisecoInitCreateMetaobjectDefinitions
Enter the Admin API access token value above into the input box and perform data import.
After importing, you need to manually enable the Storefronts access option in the admin page (Please check the video below for more clarity)
Please follow the video below.
๐ Video Import definitions and demo entries.
Last updated