mecachisenros / woocommerce_civicrm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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, each product in the order is a line item in the Contribution.
  2. Sales TAX/VAt & Shipping cost are configurable/mappable as CiviCRM Financial Types.
  3. A global campaign can be defined for each contribution, but campaigns can be customized per order.
  4. Logged in users are recognised and the contribution is created against the related contact record.
  5. 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.
  6. 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.
  7. Related contact record link is added to the Woocommerce order as notes.
  8. 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.
  9. 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.)
  10. Basic Membership implementation: select the Membership type in CiviCRM Settings panel in the Product screen, if set, a membership will be created at checkout.

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_campaigns_params filter
  • woocommerce_civicrm_admin_settings_fields filter
  • woocommerce_civicrm_address_map filter
  • woocommerce_civicrm_mapped_location_types filter
  • woocommerce_civicrm_utm_cookie_expire 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

License:GNU Affero General Public License v3.0


Languages

Language:PHP 95.5%Language:JavaScript 2.9%Language:Smarty 1.0%Language:CSS 0.7%