Search Documentation

Overview

Product Importer Deluxe supports importing via a command line request, to do this you need to a specific URL and pass it the following required inline parameters.

Supported arguments

  • action: woo_pd-cron
  • filename: sample.csv – Replace with the import filename, the filename argument assumes the import file is uploaded to the Uploads directory within WordPress. (Defaults to empty)
  • file_path: – Allows for nested directory paths below the Uploads directory within WordPress (e.g. imports). (Defaults to empty)
  • gui: 1 – Adding this parameter will display an import report at the completion of the import, suited to debugging (Defaults to 0)
  • merge: 1 – Adding this parameter will switch the import method to merge Product changes. (Defaults to 0)
  • advanced_log: 1 – Adding this parameter will include additional details in the import log when used in conjunction with the ‘gui’ parameter. (Defaults to 0)
  • key: – If the secret key is filled by the store owner then only matching keys will result in a successful import. (Defaults to empty)
  • image_method: none – Select the image import method applied to Featured Image and Product Gallery images (Defaults to none).
  • image_filename_method: uploads – Adjust the image filename method applied to Featured Image and Product Gallery image file paths set within your import file (Defaults to uploads).
  • duplicate_name_method: off – Allow duplicate Product Name detail (Default is off)
  • special_category_assignment: off – Assign Products to lowest level sub-Category only (Default is off)
  • force_refresh_images: off – Force refresh Featured Image and Product Gallery. (Defaults to off)

Sample CRON imports

The following sample will import all Products from sample.csv that has been uploaded to the Uploads directory within WordPress and return the advanced import log to the browser

http://www.domain-store.com/?action=woo_pd-cron&key=0000-0000-0000-0000&filename=sample.csv&gui=1&advanced_log=1

Allowed values

filename

file_path

gui

merge

advanced_log

key

image_method

Select the image import method applied to Featured Image and Product Gallery images (Defaults to none).

  • csv – Assigned an image filename column for Products in the import file
  • external – Assigned an external URL column for Products in the import file
  • none – I am not uploading Product images

image_filename_method

Adjust the image filename method applied to Featured Image and Product Gallery image file paths set within your import file (Defaults to uploads).

  • uploads – Image filenames are relative to the WordPress Uploads directory
  • base – Image filenames are relative to the WordPress base directory

duplicate_image_method

Allow duplicate Product Name detail (Default to new).

  • new – Create new media items for each duplicate Product image
  • reuse – Re-use the existing media item for all duplicate Products where a duplicate Product image is detected

duplicate_name_method

This option controls whether duplicate Product Name details should be allowed

  • 1 – Allow duplicate Product Name detail
  • 0 – Off

special_category_assignment

This option controls whether Products should be assigned to all Categories within the branch (Default is off)

  • 1 – Assign Products to lowest level sub-Category only
  • 0 – Off

force_refresh_images

This option controls whether Featured Image and Product Gallery values are force refreshed (Defalt is off)

  • 1 – Force refresh Featured Image and Product Gallery
  • 0 – Off