Import affiliate products with WP All Import

Create hundreds of affiliate-toolkit products from a spreadsheet with WP All Import – you only need shop and product ID, the rest loads automatically.

The product import of affiliate-toolkit is ideal for a handful of products. If you want to create hundreds at once from a spreadsheet or feed, use WP All Import. affiliate-toolkit products are a normal WordPress post type, so WP All Import can create them directly and fill their custom fields – no special add-on is needed.

You only import the identifiers: the shop and the product ID (for Amazon the ASIN). Title, images, prices and everything else are then loaded by affiliate-toolkit itself.

Prerequisites: affiliate-toolkit with a connected shop and a version of WP All Import that can import custom fields.

1. Prepare the import file

Create a CSV or Excel file with one product per row. Besides the title you need the shop ID, the product ID and its type; everything else is optional.

title;shopid;asin;asintype;ean;category
Kaffeewerk Barista Pro 3;45;B0DEMO0037;ASIN;4061234500008;Coffee machines
Nordklang ANC 700;45;B0DEMO0222;ASIN;4061234500043;Headphones

You can take the IDs from a network feed, for example the product feed of an AWIN advertiser.

2. Create the import

  1. In WP All Import, start a new import, upload your file and choose the post type Products of affiliate-toolkit. If WooCommerce is installed, there are two post types called "Products" – choose the one of affiliate-toolkit.
  2. Check the preview of your file and continue.
  3. Drag the title column into the title field and set the post status (draft or published).
  4. Under Custom Fields, add the fields below and assign your columns.
  5. Assign the category column to the product category taxonomy if you like.
  6. Confirm and run the import.
Custom fieldRequiredContent
atkp_product_shopidyesID of the shop in affiliate-toolkit. You see it when you hover over or open the shop under affiliate-toolkit → Shops (post=… in the address).
atkp_product_asinyesThe value the product is found by in this shop: ASIN, EAN, article number or title.
atkp_product_asintypeyesWhat atkp_product_asin contains: ASIN (the shop's unique product ID), EAN, ARTICLENUMBER or TITLE.
atkp_product_eannoEAN(s) of the product, used to find offers in further shops for the price comparison.
atkp_product_shopid_2, atkp_product_asin_2, atkp_product_asintype_2 …noFurther shops for the price comparison, numbered from 2.
atkp_product_iswoocommerceno1 also creates a WooCommerce product (WooCommerce Connector required).

Other fields you can fill

Every value you import as a custom field overrides the data from the shop – useful for your own title, texts, pros and cons or test results, but leave prices empty unless you really want fixed values. These system fields are available:

atkp_product_title, atkp_product_mpn, atkp_product_productgroup, atkp_product_manufacturer, atkp_product_author, atkp_product_numberofpages, atkp_product_brand, atkp_product_releasedate, atkp_product_description, atkp_product_features, atkp_product_producturl, atkp_product_addtocarturl, atkp_product_customerreviewsurl, atkp_product_rating, atkp_product_reviewcount, atkp_product_predicate, atkp_product_testresult, atkp_product_testrating, atkp_product_testdate, atkp_product_pro, atkp_product_contra, atkp_product_smallimageurl, atkp_product_mediumimageurl, atkp_product_largeimageurl, atkp_product_listprice, atkp_product_amountsaved, atkp_product_percentagesaved, atkp_product_saleprice, atkp_product_baseprice, atkp_product_baseunit, atkp_product_baseunits, atkp_product_availability, atkp_product_shipping, atkp_product_isprime, atkp_product_iswarehouse, atkp_product_iswoocommerce

For your own additional data, create fields with the Custom Fields module (see User defined fields) or use Advanced Custom Fields.

3. Let affiliate-toolkit load the data

After the import the products exist with shop and ID, but still without images and prices. The cronjob adds them with the next update run. Open a product to check: the Filter Information box shows the shop and ID, and a note says that the product will be added to the next queue.

The "Filter information" box of a product: Amazon with the ASIN as main shop plus eBay, AWIN, billiger.de and Geizhals searched by EAN for the price comparison.
The Filter Information box of a product with shop and product IDs.

To start the update right away, set the cronjob type temporarily to External Cronjob + Output, make sure no update time window blocks the run and open the cron URL in your browser. With many products the script can stop; just call it again. Afterwards, set the cronjob type back. A server-side cronjob saves you this step (see Set up the cronjob for product updates).

Under affiliate-toolkit → Queues you can check that all products were loaded. If a product failed, its status is "Error" with the message next to it.

The Queues page lists every update run (WordPress cronjob, manual product and list updates) with status, number of entries, throughput, timestamps and runtime.
The queue overview after the update run.