Not every merchant offers an API or a ready-made feed. With your own CSV file you maintain product data in one place – for example in Excel – and use it in affiliate-toolkit like any other shop: search, import, show in product boxes and update centrally by replacing the file.
Prerequisites: affiliate-toolkit with the CSV Feed module (included in the passes) and a spreadsheet program or text editor. The PHP setting allow_url_fopen must be enabled on your server.
1. Create the CSV file
Put the column headings in the first row and one product per row below. Two columns are required:
- Number – a unique, stable ID per product. You can simply count up (1, 2, 3 …). affiliate-toolkit identifies and updates the product by this number, so never change it later.
- Title – the product name.
Everything else is optional: EAN, price, product URL (your affiliate link), image URLs, description, availability, shipping costs, manufacturer, brand, list price and up to four custom texts. Column headings make the mapping easier later – without them the plugin only shows "Column 1", "Column 2" and so on.
number;title;ean;price;url;image
1;Kaffeewerk Barista Pro 3;4061234500008;655,49;https://www.example.com/barista-pro-3;https://www.example.com/img/barista.jpg
2;Nordklang ANC 700;4061234500015;199,00;https://www.example.com/anc-700;https://www.example.com/img/anc700.jpg
3;Sonora Home One;4061234500022;89,90;https://www.example.com/home-one;https://www.example.com/img/home-one.jpg
In Excel, choose Save as and the file type CSV UTF-8 (comma delimited). Depending on your regional settings, Excel uses a semicolon as separator – that is fine, you set the separator in the shop. You can ignore the warning that some features may be lost.
If you write the file by hand, watch the separator: if it occurs inside a value (for example a comma in a description), put the value in double quotes.
2. Upload the file
Upload the file to your server, for example by dragging it into the WordPress media library, and copy its URL. Use the full URL, not a shortened link. You can also use a URL on another server, as long as it is publicly reachable.
3. Create the CSV shop
- Go to affiliate-toolkit → Shops, create a new shop and choose CSV API as the data supplier.
- CSV-URL: paste the URL of your file.
- CSV-Encoding: leave it empty or enter
UTF-8. Only if special characters look wrong after the import do you need a different encoding. - Column delimiter: the separator of your file, for example Semicolon (;). Comma, tab, pipe and caret are also available.
- Import mode: Download works in most cases. Filestream reads the file directly from the server; the gzip and zip modes are meant for compressed feeds of networks.
- Tick First line is header if your first row contains the headings.
- Leave Remove line breaks before import and Character string (double quotes) at their defaults.
- Save the shop.

4. Map the columns
After saving, assign a column of your file to each affiliate-toolkit field. Number and title (marked with *) are required. For every field you can also set a prefix, a suffix – for example a currency sign after the price – and a fallback value that is used when the column is empty.

Then tick Download & Import CSV-files now and save again. affiliate-toolkit downloads the file into a database table of its own and reports how many lines were imported. Whenever you change the CSV file, run this step again – or let the cronjob update the feed automatically.
5. Import the products
Open affiliate-toolkit → Product import and choose your CSV shop. Search for a title, an EAN or a manufacturer – or leave the search field empty to list all rows of the file. Select the products and import them.

Now you show the products like any other: with the shortcode generator, the block or a shortcode. See Import and display your first product and affiliate-toolkit shortcodes: product boxes, lists and fields.
Troubleshooting
The shop says "Download & Import required".
The file has not been downloaded into the database yet. Tick "Download & Import CSV-files now" in the shop and save.
Special characters such as umlauts are garbled.
The file is not UTF-8. Save it again as CSV UTF-8, or enter its actual encoding (for example ISO-8859-1) in the CSV-Encoding field.
All values end up in one column.
The column delimiter does not match the file. Open the file in a text editor, check which character separates the values and select it in the shop.
Changes in my file do not appear.
Upload the new file to the same URL and run "Download & Import CSV-files now" again. The imported products are then updated by the next product update.