Skip to main content

How do I add a standard attribute?

The Tweakwise feed is often a very large file. Generating the feed repeatedly and re-importing it can have a high impact and take a long time. A standard property is a much smaller file, meaning it can be imported more frequently alongside the full Tweakwise feed. The following steps are required for this:

1. Creating an online feed

An online feed (at a URL) must be available containing the data for the new standard property. This is an example feed:

Externe feed.png


2. XSD definition

The XML definition is described in an XSD. The definition can be found at the following URL:

3. Matching product identifiers

In the feed, the <id> tag refers to the unique product identifier in Tweakwise used to link the property. There are two options:

  • Standard Tweakwise ID (article number): The <id> in the feed contains the article number. In the example XML, this is <id>0000003061100</id>. This number corresponds to the article number in Tweakwise (Catalog > Items).

  • Custom identifier (e.g., SKU): You can also choose to use a custom product identifier in the feed, such as an SKU or EAN. The value in the <id> tag will then be the product's SKU.

The choice you make here will be linked in the task setup in step 6.

4. Adding multiple values

If a product has multiple values, these can easily be placed in the feed. For example:

Externe feed meer waardes.png

5. Creating a property

A new standard property must be created via: Tweakwise > Catalog > Properties -> New standard propertyCreate a new standard attribute in: Tweakwise > Catalog > Attributes > New standard attribute


6. Setting up the task

To import the data periodically, create a task via Connectivity > Tasks.

  • Create a new task of the type Import standard property (or Import external property).

  • On the Setup tab, enter the URL under HTTP URL.

  • Under External attribute, select the property you created in step 5.

  • Under Identifier attribute, select which Tweakwise field the <id> from the feed should match:

    • If left empty, it will match on the standard article number (Item ID).

    • If a specific attribute is selected (such as sku), the <id> from the feed will be matched on that chosen attribute.

7. Starting & scheduling the task

Finally, start the task. You can do this once manually to test. Don't forget to create a trigger so that this task runs daily. It is not recommended to include this task in the regular import & publication cycle. If this task throws an error, you run the risk of preventing the publication process from starting as well.

Did this answer your question?