Dictionaries
On this page

This page is for version 1.0. Read the current version.

Dictionaries

A dictionary translates a store's values into a channel's. The store says Navy, Google wants Blue; the store's stock status is 1, Google wants in_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

Below, Google colours turns the store's colour names into Google's.

  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 store's value and Google's: 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 value the pairs do not mention. 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 age_group: better one product less than a disapproved one. The other two are Leave the field empty and Use a default value.
  • Values come from: pick the attribute the values are read from, and the Magento value column becomes a list of that attribute's options, so a pair cannot be keyed to a value no product has. Leave it empty to type values by hand.
  • 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. The pencil next to it opens that dictionary for editing without leaving the feed, and the + makes a new 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 eight, ready to use: Google availability, Google condition, Google age group, Google gender, Availability (space-separated), True / False, Stock status and Yes / No. The copy from a field catalog attaches the ones its fields need. They can be edited like your own.

The Dictionaries grid

Under Arlanix → Dictionaries, each dictionary is a row:

  • 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: 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.