2# Product Feed Mapping Guide
This document outlines the mapping strategy for product feed attributes, categorizing them into Required Fields, Custom Logic Fields, and Ignored Fields.
These fields are directly mapped from existing product data:
| Field | Source | Notes |
|---|---|---|
sku_id |
Direct mapping | Unique product variant identifier |
title |
Direct mapping | Product name/title |
description |
Direct mapping | Product description |
price |
Direct mapping | Product price |
link |
Custom URL | product_url + ?variant=/46085908988182/{sku_id} |
image_link |
Conditional | Use variant image if available, otherwise product image |
additional_image_link |
Direct mapping | List of additional product images |
item_group_id |
Direct mapping | Maps to product_id |
product_type |
Conditional | Include if product type exists |
shipping_weight |
Direct mapping | Product weight for shipping |
brand |
Custom mapping | Maps to vendor field |
These fields require special processing or business logic:
Logic: inventory_quantity != 0
- If inventory quantity is greater than 0: "in stock"
- If inventory quantity is 0: "out of stock"
Logic: Check if title contains restricted words
- Parse
title.split()and verify no words exist in predefined restriction list - Return "new" if clean, otherwise apply appropriate condition
Logic: Dynamic URL construction
- Base:
product_url - Append:
?variant=/46085908988182/{sku_id}
Logic: Conditional image selection
- Priority 1: Variant-specific image
- Priority 2: Default product image
Logic: Map vendor to brand
- Direct mapping from
vendorfield
These fields need further investigation before implementation:
| Field | Status | Notes |
|---|---|---|
google_product_category |
Research needed | Requires category taxonomy mapping |
material |
Research needed | May need product attribute extraction |
These fields need predefined value sets:
| Field | Type | Notes |
|---|---|---|
age_group |
Custom Enum | Define age categories (adult, kids, etc.) |
color |
Custom Logic | Extract from product attributes |
gender |
Custom Logic | Determine from product data |
sale_pricesale_price_effective_date
gtin(Global Trade Item Number)mpn(Manufacturer Part Number)sizetax
ios_urlios_app_store_idios_app_nameiPhone_urliPhone_app_store_idiPhone_app_nameiPad_urliPad_app_store_idiPad_app_nameandroid_urlandroid_packageandroid_app_name
shippingpatternvideo_link
custom_label_0custom_label_1custom_label_2custom_label_3custom_label_4
- Phase 1: Implement all Required Fields
- Phase 2: Add Custom Logic Fields
- Phase 3: Research and implement Research Required fields
- Phase 4: Define enums and implement Custom Fields
- Ensure all required fields have fallback values
- Validate URL construction for
linkfield - Implement error handling for missing images
- Create validation rules for custom logic fields