> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://doc.common-services.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to sync existing products on Shopify and Amazon using Metafields

(In the CS Amazon Sync app)

###### How to Sync Products Using Metafields (If Direct SKU Matching Is Not Possible):

|| **Note:** Using Metafields is available on any of the paid plans (Basic Plan and up).

If your Amazon and Shopify products cannot share identical SKUs, follow these steps to sync using product variant metafields: 

**1. Create a Variant Metafield in Shopify to Store Amazon SKUs:**
*   In your Shopify admin, navigate to **Settings > Metafields and metaobjects > Variant > Add definition**.
*   **Name:** Enter a descriptive name for your metafield (e.g., "Amazon SKU").
*   **Namespace and key:** The Namespace and key will be generated for you. Take note of this to use this to create the inventory rule.
*   **Type:** Select "Single line text" from the dropdown.
*   **Save:** Click "Save" to create the metafield definition.

**2. Populate the Variant Metafield with Amazon SKUs:**
*   Go to the product page in Shopify.
*   Edit the variants in your Shopify store to include the Amazon SKU on the Metafield.

**3. Import Metafields from Shopify to the App:**
*   Within the app, go to **Workflow > Metafield**.
*   Select the created Metafields or select all metafields.
*   Go to **Actions > Operations > Full Metafields import from Shopify > Execute**.
*   Wait for the import process to complete. This may take some time depending on the number of metafields. Proceed once the timer ends.

**4. Create an Inventory Rule to Map SKUs:**
*   From the app, navigate to **Rules > Inventory**.
*   Define a condition (e.g., "Collection").
*   In the "Apply Properties" section, choose "SKU" and point it to the relevant variant metafield (e.g., "variant.amazon_sku"). This maps the Shopify product to the Amazon product using the Amazon SKU stored in the metafield.