Dictionaries
On this page

Dictionaries

A dictionary translates a store's values into a channel's. For example, you can send Blue for your store's Navy. The Google availability dictionary translates 1 to in_stock and also accepts the copied stock source's in_stock and out_of_stock. Dictionaries live on a page of their own, so one dictionary serves any number of feeds and rows.

Open Dictionaries

Click Arlanix in the admin's menu, then Dictionaries under Product Feed.

The Arlanix menu open, with Dictionaries lifted

Make a dictionary

In this example, a dictionary named Google colours groups the store's colour names.

  1. Click Add Dictionary.

    The Dictionaries grid with Add Dictionary lifted

  2. Enter the Name, Google colours, and leave Values not listed below on Pass the value through unchanged.

  3. Under Pairs, click Add pair for each value, and enter the Magento value and Channel value: Navy and Blue, Charcoal and Gray, Off White and White.

    A new dictionary: Google colours, Pass the value through unchanged, and the pairs Navy → Blue, Charcoal → Gray, Off White → White

  4. Click the arrow beside Save, then Save & Close. The grid says Dictionary "Google colours" saved with 3 pair(s).

    The Dictionaries grid after the save, with Google colours in it

  5. To use it, open a feed's Mapping and choose Google colours in the Dictionary column of the color row, then save the feed.

The form

  • Name: your own name for it.
  • Values not listed below: what to do with a nonempty value the pairs do not mention. An empty source stays empty. Pass the value through unchanged is right for colours. Exclude the product from the feed is right for a required field with a closed list of allowed values, such as an age_group row you mark Required: better one product less than a disapproved one. The other two are Leave the field empty and Use a default value.
  • Default value: enter the replacement when you choose Use a default value.
  • Values come from: choose a select, multiselect or yes/no attribute to offer its option labels from all store views in Magento value. If a row already holds an unlisted value, clear it to choose from the list. Leave Values come from empty to type by hand. You also type the values when the attribute has more than 2,000 distinct labels.
  • Pairs: Magento value on the left, Channel value on the right. Add pair adds a row.

On a mapping row, choose the dictionary in the Dictionary column. Edit dictionary opens the selected dictionary without leaving the feed. New dictionary opens a blank one. The copy from the Google Shopping catalog already attaches the dictionaries Google's closed lists need: availability, age group, gender, adult.

The dictionaries the module installs

The module installs ten, ready to use: Google availability, Google condition, Google age group, Google gender, Availability (space-separated), True / False, Stock status, Yes / No, Fruugo stock status and Delivery date (days). The copy from a field catalog attaches the ones its fields need. They can be edited like your own.

The Dictionaries grid

Under Arlanix → Product Feed → Dictionaries, each dictionary is a row:

  • ID: the dictionary's number in the store.
  • Name: the dictionary's name.
  • Unlisted values: what happens to a value the pairs do not list, as Values not listed below sets it.
  • Pairs: how many pairs it has.
  • Used by feeds: the feeds whose mapping uses it. Each name opens that feed at its Mapping section.
  • Created, Updated: when the dictionary was made and last saved. Hidden until you tick them under Columns.

Add Dictionary makes a new one. A row's Select menu has Edit and Delete.

Delete a dictionary

In the dictionary's row, click Select, then Delete. It asks first, naming the dictionary: click OK.

Delete dictionary: Delete "Google colours"?, with Cancel and OK

A dictionary that a feed's mapping still uses cannot be deleted: Troubleshooting has the message and what to do.