CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Wordpress with civicCRM and WooCommerce
Pages: [1]

Author Topic: Wordpress with civicCRM and WooCommerce  (Read 1743 times)

Nilda

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.5.8
  • CMS version: Wordpress 4.1
  • MySQL version: MySQL 6.2
  • PHP version: php 5.4
Wordpress with civicCRM and WooCommerce
March 19, 2015, 10:38:25 am
What suggestions do you make to develop the relationship between civiCRM and WooCommerce?

civicCRM use contacts and WooCommerce use Users.
« Last Edit: March 19, 2015, 10:40:14 am by Nilda »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Wordpress with civicCRM and WooCommerce
March 22, 2015, 06:02:52 am
One item that is probably needed is to be able to see the WooCommerce purchases from within CiviCRM. One way to do that is to create a tab for each Contact in CiviCRM to display their purchase history.

Another item is for WooCommerce to "see" the address from CiviCRM so that if I am a User making a purchase, when I checkout, WooCommerce will pre-populate my address fields with the data from my Contact.

Regarding the existing synchronization between Users and Contacts, see here: http://wiki.civicrm.org/confluence/display/CRMDOC/Synchronize+Users-to-Contacts
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Nilda

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.5.8
  • CMS version: Wordpress 4.1
  • MySQL version: MySQL 6.2
  • PHP version: php 5.4
Re: Wordpress with civicCRM and WooCommerce
March 24, 2015, 08:15:08 am
Thank you for your response. 

My question is when I populate a client using contacts from civicrm, the  synchronization doesn't work in opposite way from contacts to users.

when I use WooCommerce access wp_users table, but it is not update from the contacts table from civicrm.  What do you suggest for this action to do?.

Thank you

Nilda

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Wordpress with civicCRM and WooCommerce
March 24, 2015, 09:17:01 am
Quote from: Nilda on March 24, 2015, 08:15:08 am
My question is when I populate a client using contacts from civicrm, the  synchronization doesn't work in opposite way from contacts to users.

Correct, but if I user creates an User account in WordPress and his email exists in CiviCRM, then CiviCRM will link that User to that Contact.

Quote from: Nilda on March 24, 2015, 08:15:08 am
when I use WooCommerce access wp_users table, but it is not update from the contacts table from civicrm.  What do you suggest for this action to do?.

I'm not certain as I don't know the internals of WooCommerce at all, but one idea would be to write custom code to pre-populate the address/phone fields when the user checks out, from his Contact data.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Jordan

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.3.7
  • CMS version: WordPress
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Wordpress with civicCRM and WooCommerce
March 29, 2015, 01:52:19 pm
I would love to sell memberships and create new donors upon sale of a Woocommerce product/subscription. Is there anyone working on something like that?

Nilda

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.5.8
  • CMS version: Wordpress 4.1
  • MySQL version: MySQL 6.2
  • PHP version: php 5.4
Re: Wordpress with civicCRM and WooCommerce
March 30, 2015, 08:13:41 am
Now I integrate Woocommerce with civicrm, I need advice how to use permissions to access some of the civicrm menu, becacuse I have contacts and users, now the permissions only works for users but not for contacts.

Thank you

Nilda

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: Wordpress with civicCRM and WooCommerce
April 08, 2015, 08:57:32 am
Hi Nilda,

Users is term for Wordpress user with account that will have one or more roles and thus have permissions associated with it. CiviCRM contacts do not necessarily have Wordpress users associated with them. It would help to understand how the contact is getting into CiviCRM but not becoming a user. Generally, you can use Advanced options on profiles to allow or require creating a User account when submitting a form with profiles on CiviCRM. Perhaps that will solve your problem.

In general, you will need to get a user logged in before the permissions they have will be used in the session.

To set up permissions (just in case you haven't): go to Administer > Users and Permissions > Permissions (Access Control), then click on » WordPress Access Control.

Jordan, you could redirect user from wooCommerce completion page to a CiviCRM contribution page that includes both memberships and donation option.

If you want to sell the membership and donation from with WooCommerce page and when complete to post the transaction(s) back to CiviCRM I have a potential client doing some of this. First I will be working on creating an API for CiviCRM to accept the order.

Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Wordpress with civicCRM and WooCommerce

This forum was archived on 2017-11-26.