Skip to content

Products

ASA2 Products Section

Overview

The Products section (formerly known as "Repo") is the place where you can store and organize your affiliate products in ASA2. Starting with the selection of the shop, you can enter the various product properties here or have them automatically synchronized using an affiliate API, such as the Amazon PA API.

Technically, the section is based on WordPress's Custom Post Types, so the products data is stored in the WordPress database like any other post data. This allows you to organize products within categories and tags, and to store your own product reviews as post text. Using this information, ASA2 makes it very easy to create dynamic product lists.

Unique Features

  • Organize your products in form of WordPress custom posts
  • Build dynamic queries based on the product properties with Smart Collections (see Shortcodes Asa2 Smart Collection)
  • Automatically refresh and preload the product data via affiliate APIs such as the Amazon PA API and ASA2's cronjobs (see Product Update Cronjob)
  • Get notified via email about the properties of your products like availability (see Notifications)
  • Export and import products as CSV for site migrations or backups (see Export / Import below)

Create Products

ASA2 Products Shop Bar

How to create products with ASA2 differs depending on whether they are to be created via Amazon PA API or for another store.

Further information

Screencast

PA API flowchart

ASA 2 Repo diagram

Whenever ASA2 tries to load a product, it checks if it exists in the Products section (formerly known as "Repo"). If it does, it loads the product data from the Products section making a request to the Amazon API unnecessary.

ASA 2 Repo

Usage

By default, ASA2 is configured to put an Amazon PA API product into the Products section automatically when it gets used for the first time, e.g. when you save a post containing ASA2 Shortcodes or a collection gets loaded for the first time. This behaviour can be adjusted to your wishes in the Products Options.

But you can also fill the Products section in advance by manually adding new products or importing a bunch through the URL importer.

Read more about Product Usage

Refreshing the products

If a product is outdated, it will be refreshed automatically, at worst when a user requests a page.
Using the cronjob Product Update Cronjob, all products can be refreshed without user action on your server, e.g. at night. Together with the configurable lifetime of the products, the Products section offers you all the flexibility you need, to prevent realtime Amazon API calls on user page access.

Therefore the Products section greatly improves page load speed even if you do not use any of ASA2's Caching options.

Read more about Product Refresh.

Advanced

As the Products section is based on Custom Post Types, you benefit from all the familiar WordPress features. You can use categories and tags on your products and load them dynamically with the shortcode Shortcodes Asa2 Smart Collection. You can insert a text or excerpt on a product and use it with the template placeholders {{ repo_content }} and {{ repo_excerpt }}. For more details about the available products placeholders, check placeholder section Products Placeholders.

Read more in Products Advanced.

Learn more about Products section in the subchapters:

Export / Import

The Export / Import page (Products > Export / Import) lets you export and import products from the Product Repository as CSV files. This is useful for site migrations, backups, or transferring products between WordPress installations without direct database access.

Exporting Products

The export section downloads all products from the repository as a CSV file. Four optional filters let you narrow down the export to exactly the products you need.

Export Filters

All filters are optional and can be combined. When multiple filters are active, only products matching all selected criteria are exported. Leave all filters unchecked to export all products.

FilterDescription
ShopSelect specific shops to export only their products
CategorySelect specific product categories
TagSelect specific product tags
Date rangeExport only products created within a specific time period (from/to)

Filter lists with more than 10 entries include a search field at the top for quick lookup.

How to Export

  1. Navigate to Products > Export / Import
  2. Optionally use the filters to narrow down the export (shop, category, tag, date range)
  3. Click Export CSV
  4. The browser downloads a CSV file named asa2-products-export-YYYY-MM-DD-HHmmss.csv

ASA 2 Repo

CSV Format

The exported CSV uses semicolons (;) as delimiters and UTF-8 encoding with BOM for Excel compatibility. It contains the following columns:

ColumnDescription
titleProduct title
descriptionProduct description (post content)
excerptProduct excerpt
asinAmazon ASIN (if applicable)
country_codeAmazon country store code (e.g. US, DE)
custom_productWhether this is a custom product (1/0)
custom_affiliate_urlCustom affiliate URL
custom_priceCustom price
auto_price_amountAutomatic price from API
offer_price_amountOffer/sale price
custom_ratingCustom rating value
custom_reviews_totalCustom total reviews count
manufacturerManufacturer name
merchantMerchant/seller name
item_numberItem number / EAN / GTIN
featuresProduct features
small_image_urlSmall product image URL
medium_image_urlMedium product image URL
large_image_urlLarge product image URL
not_availableWhether product is marked as not available (1/0)
categoriesComma-separated category names
tagsComma-separated tag names
shopShop name

INFO

Shops, categories, and tags are exported by name (not by ID), so the CSV is portable across different ASA2 installations.

Importing Products

The import section lets you upload a previously exported CSV file and create the products on the current site.

How to Import

  1. Navigate to Products > Export / Import
  2. In the Import section, click Choose File and select a CSV file
  3. Select the desired Shop handling mode (see below)
  4. Click Import CSV
  5. After completion, a summary message shows how many products were imported and how many were skipped

ASA 2 Repo

Shop Handling

When importing products, you can choose how to handle shops from the CSV that do not exist on the target site:

ModeBehavior
Skip shop assignment (default)Products are imported without a shop if it does not exist. A warning lists the affected products.
Create missing shops automaticallyMissing shops are created as full shops during import. Products are assigned to the newly created shops.

INFO

Categories and tags that do not exist on the target site are always created automatically.

Import Results

After import, ASA2 displays:

  • Success message — Number of products imported successfully
  • Skip count — Number of products that were skipped (e.g. due to empty titles or column mismatches)
  • Warnings — Detailed list of issues per line, such as missing shops or products that could not be created

WARNING

All imported products are created as custom products, regardless of their original type. Amazon products will need to be refreshed via the API after import to restore their API connection and update their data.

Migration Workflow

A typical migration workflow looks like this:

  1. Source site: Go to Products > Export / Import
  2. Export: Select the shops to export (or export all), click Export CSV
  3. Target site: Install and activate ASA2
  4. Set up shops: Create the same shops on the target site, or use "Create missing shops automatically" during import
  5. Import: Upload the CSV file on the target site
  6. Refresh Amazon products: Use the Product Update Cronjob or manual refresh to update Amazon product data via the API

TIP

If you export only custom products (non-Amazon), no API refresh is needed after import. The products are immediately usable.

ASA2 - The Amazon Affiliate Plugin for WordPress