Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Initial work on integrating with DEAR Inventory Management: https://dearsystems.com/inventory-software/

API module for Drupal 7.

Example usage:

$dear = dear_get_object();  
$dear->listProducts();  
$product_list = $dear->getLastResponse();

Configuration: /admin/config/services/dear

Importing Products

Products can be imported using the modules Feeds and Commerce Feeds. The Field Validation module is recommended for creating a unique field.

  1. Enable the modules Feeds, Commerce Feeds, Field Validation, DEAR and DEAR Feeds
  2. In your product type, create a text field called "DEAR ID" with machine name dear_id
  3. Add a validation rule for "DEAR ID" of "Unique values
  4. Create a new Feeds importer
  5. Select "DEAR Product Fetcher"
  6. Select "DEAR Product Parser"
  7. Select "Commerce Product processor"
  8. Add a mapping Source "ID" mapped to Target "DEAR ID", select "Unique" checkbox
  9. Configure other mappings as required

The included DEAR Commerce module creates a Sale and Sale order using Price Tier 2. Therefore, in the Feeds importer the source "PriceTier2" should be mapped to the target "Price: Amount".

Project information