Skip to content

rajeshrhino/woocommerce_civicrm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WooCommerce CiviCRM Integration

Installation

Step 1: Install Wordpress plugin

Install this Wordpress plugin as usual. More information about installing plugins in Wordpress - https://codex.wordpress.org/Managing_Plugins#Installing_Plugins

Step 2: Install CiviCRM extension

Extension is compatible with CiviCRM v. 4.6+.

Install https://github.com/veda-consulting/uk.co.vedaconsulting.module.woocommercecivicrm as CiviCRM extension to view WooCommerce orders in a CiviCRM tab. More information about manually installing extensions in CiviCRM - http://wiki.civicrm.org/confluence/display/CRMDOC/Extensions#Extensions-Installinganewextension NOTE: The tab displays orders only for contacts having a related Wordpress user record.

Configuration

Configure the integration settings in Woocommerce Menu >> Settings >> CiviCRM (Tab) Direct URL: https://example.com/wp-admin/admin.php?page=wc-settings&tab=woocommerce_civicrm

Woocommerce CiviCRM Settings

Functionality

  1. Woocommerce orders are created as contributions in CiviCRM. Line items are not created in the contribution, but the product name x quantity are included in the 'source' field of the contribution
  2. Salex tax (VAT) & Shipping cost are saved as custom data against contribution
  3. Logged in users are recognised and the contribution is created against the related contact record
  4. If not logged in, the plugin tries to find the contact record in CiviCRM using Dedupe rules and the contribution is created against the found contact record.
  5. If the contact does not exist, a new contact record is created in CiviCRM and the contribution is created against the newly created contact record.
  6. Related contact record link is added to the Woocommerce order as notes.
  7. Option to sync CiviCRM and Woocommerce address, billing phone, and billing email. If a user edits his/hers address, billing phone, or billing email through the Woocommerce Account >> Edit Address page, CiviCRM profile, or through CiviCRM's backoffice, the data will be updated in both CiviCRM and Woocommerce.
  8. Option to replace Woocommerce's States/Counties list with CiviCRM's State/Province list. (WARNING!!! Enabling this option in an exiting Woocommerce instance will cause State/County data loss for exiting Customers and Woocommerce settings that relay on those.)

Developers

There are a few hooks available

  • woocommerce_civicrm_contribution_create_params filter
  • woocommerce_civicrm_contribution_update_params filter
  • woocommerce_civicrm_financial_types_params filter
  • woocommerce_civicrm_admin_settings_fields filter
  • woocommerce_civicrm_address_map filter
  • woocommerce_civicrm_mapped_location_types filter
  • woocommerce_civicrm_wc_address_update action
  • woocommerce_civicrm_civi_address_updated action
  • woocommerce_civicrm_wc_phone_updated action
  • woocommerce_civicrm_civi_phone_updated action
  • woocommerce_civicrm_wc_email_updated action
  • woocommerce_civicrm_civi_email_updated action

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%