Field Mapping
When a Salsify client doesn’t name product properties in a “Magento” friendly way, we need to map Salsify Properties to Magento Attributes.
IMPORTANT
Salsify referrers to product attributes as “properties”. When working with Magento, these are “attributes”
Salsify | Magento |
---|---|
“property” | “attribute” |
IMPORTANT
Product attributes that you wish to map need to be created in Magento prior to syncing.
IMPORTANT
Product attributes that you wish to use to map configurable products to child products need to be created in Magento prior to syncing.
Property Mapping
The value of the setting expects a JSON object. For example, in order to map "Vendor SKU" from Salsify to the Magento "sku" product attribute, our
Property Mapping
would look like this:{ "Vendor SKU":"sku", "Item Name":"name" }
We can also pass an array to set the value in multiple attributes:
{ "Vendor SKU":["sku", "url_key"], "Item Name":"name" }
In the above example, our "Vendor SKU" will be used to map our product to the Magento "sku" attribute, as well as the "url_key" Magento attribute.
For instance, if our "Vendor SKU" is TEST-0001 in Salsify, our mapping will create (or update) a Magento product with a "sku" of TEST-0001 and a "url_key" of
/test-0001.html
.