<?xml version="1.0" encoding="UTF-8"?>
<!--
	Product custom fields for Google Merchant Center and Microsoft Merchant Center.

	Creates a "Google Shopping" tab on the product edit screen with these fields:
	brand, gtin, mpn, identifier_exists, gender, age_group, google_product_category. The Google and Microsoft feed files
	read them by these codes and leave a field out of a product's row when it is empty, so fill in
	only what your products need.

	Before importing:
	  - Replace YOUR_STORE_CODE with your store code.
	  - Remove any field your store already has (for example an existing "brand" field). Importing
	    a field code that exists fails for that field only. If your existing field has a different
	    code, change source= in the feed file instead.

	Import: Admin > Data Management > Import > XML Provisioning. Then fill in values on each
	product's Google Shopping tab, with a product import (one column per field code), or with the
	example tags at the end of this file.
-->
<Provision>
	<Store code="YOUR_STORE_CODE">

		<Module code="customfields" feature="util">
			<Group_Add>
				<Code>google_shopping</Code>
				<Name>Google Shopping</Name>
			</Group_Add>
			<ProductField_Add>
				<Code>brand</Code>
				<Name>Brand</Name>
				<FieldType>textfield</FieldType>
				<Info>Brand name as shown to shoppers. Required by Google for most new products.</Info>
				<Group>google_shopping</Group>
			</ProductField_Add>
			<ProductField_Add>
				<Code>gtin</Code>
				<Name>GTIN</Name>
				<FieldType>textfield</FieldType>
				<Info>UPC, EAN, JAN, ISBN or ITF-14, digits only. Set it on each variant part product when variants have their own barcodes.</Info>
				<Group>google_shopping</Group>
			</ProductField_Add>
			<ProductField_Add>
				<Code>mpn</Code>
				<Name>MPN</Name>
				<FieldType>textfield</FieldType>
				<Info>Manufacturer part number. The feeds use the SKU for mpn unless you change source="sku" to source="mpn".</Info>
				<Group>google_shopping</Group>
			</ProductField_Add>
			<ProductField_Add>
				<Code>identifier_exists</Code>
				<Name>Identifier Exists</Name>
				<FieldType>dropdown</FieldType>
				<Info>Set to no only for products that have no GTIN and no MPN, such as custom or handmade items. Leave blank otherwise.</Info>
				<Group>google_shopping</Group>
			</ProductField_Add>
			<ProductFieldTypeOption_Add code="identifier_exists" value="yes" />
			<ProductFieldTypeOption_Add code="identifier_exists" value="no" />
			<ProductField_Add>
				<Code>gender</Code>
				<Name>Gender</Name>
				<FieldType>dropdown</FieldType>
				<Info>Required by Google for apparel and accessories.</Info>
				<Group>google_shopping</Group>
			</ProductField_Add>
			<ProductFieldTypeOption_Add code="gender" value="male" />
			<ProductFieldTypeOption_Add code="gender" value="female" />
			<ProductFieldTypeOption_Add code="gender" value="unisex" />
			<ProductField_Add>
				<Code>age_group</Code>
				<Name>Age Group</Name>
				<FieldType>dropdown</FieldType>
				<Info>Required by Google for apparel and accessories.</Info>
				<Group>google_shopping</Group>
			</ProductField_Add>
			<ProductFieldTypeOption_Add code="age_group" value="newborn" />
			<ProductFieldTypeOption_Add code="age_group" value="infant" />
			<ProductFieldTypeOption_Add code="age_group" value="toddler" />
			<ProductFieldTypeOption_Add code="age_group" value="kids" />
			<ProductFieldTypeOption_Add code="age_group" value="adult" />
			<ProductField_Add>
				<Code>google_product_category</Code>
				<Name>Google Product Category</Name>
				<FieldType>textfield</FieldType>
				<Info>Google product taxonomy ID or full path, for example 1604 or Apparel &amp; Accessories > Clothing.</Info>
				<Group>google_shopping</Group>
			</ProductField_Add>
		</Module>

		<!-- Example values. Remove the comment markers and change the product codes to use them.
		     Delete the old value first so a re-import replaces it.
		<Module code="customfields" feature="fields_prod">
			<ProductFieldValue_Delete product="YOUR_PRODUCT_CODE" field="gtin" />
			<ProductField_Value product="YOUR_PRODUCT_CODE" field="gtin">012345678905</ProductField_Value>
			<ProductFieldValue_Delete product="YOUR_PRODUCT_CODE" field="brand" />
			<ProductField_Value product="YOUR_PRODUCT_CODE" field="brand">Your Brand</ProductField_Value>
			<ProductFieldValue_Delete product="YOUR_PRODUCT_CODE" field="gender" />
			<ProductField_Value product="YOUR_PRODUCT_CODE" field="gender">unisex</ProductField_Value>
			<ProductFieldValue_Delete product="YOUR_PRODUCT_CODE" field="age_group" />
			<ProductField_Value product="YOUR_PRODUCT_CODE" field="age_group">adult</ProductField_Value>
			<ProductFieldValue_Delete product="YOUR_PRODUCT_CODE" field="google_product_category" />
			<ProductField_Value product="YOUR_PRODUCT_CODE" field="google_product_category">1604</ProductField_Value>
		</Module>
		-->

	</Store>
</Provision>
