WPCV / wpcv-woo-civi-integration

A WordPress plugin that creates CiviCRM Contributions, Memberships and Participants from WordCommerce Orders and keeps WordCommerce Customer Accounts in sync with CiviCRM Contact data.
GNU Affero General Public License v3.0
4 stars 8 forks source link

Does this extension work with Woocommerce variable products? #17

Closed alexletizia closed 2 years ago

alexletizia commented 2 years ago

Do you confirm that this extension is not yet able to work with variable Woocommerce products?

We use Stripe as a payment system and the Woocommerce Name You Price plugin but:

Option: * "Select the WooCommerce Product Types to show the CiviCRM Settings panel on." either leaving it or entering "simple product" that is the only option available.

Thanks.

christianwach commented 2 years ago

@alexletizia This plugin does (kind of) work with Variable Products.

The UI for assigning CiviCRM Settings to the Variations on the Edit Variable Product screen is read-only at the moment - the code to save them hasn't been written yet.

You can, however, add correctly-configured (e.g. created via the metabox on the CiviCRM -> WooCommerce page) Variations to your Cart/Basket and they should create CiviCRM Contributions correctly.

christianwach commented 2 years ago

"Select the WooCommerce Product Types to show the CiviCRM Settings panel on." either leaving it or entering "simple product" that is the only option available.

@alexletizia Simple Product is the only Product Type available because Variable Products do not use the "CiviCRM Settings" panel and you don't have any other eligible Product Types in WooCommerce.

alexletizia commented 2 years ago

@christianwach Could you please explain better what you mean by "(e.g. created via the metabox on the CiviCRM -> WooCommerce page)"? Our product variations appear to be properly created and managed by Woocommerce but are not generating contributions. Even in "mixed orders" (simple + varied products) the contribution is generated only for simple products and not for the rest of the order.

christianwach commented 2 years ago

@alexletizia Do you have a menu item directly below CiviCRM in the left-hand WordPress admin menu? If so, there's a metabox there which will create Variable Products from CiviCRM Events. These Variable Products will create CiviCRM Contributions.

Screenshot 2021-12-01 at 15 43 42

I'm afraid you will have to wait to create Variable Products via the "Add Product" or "Edit Product" screens - as I said, I haven't written the code that save the CiviCRM settings for each Variation yet.

FYI, the logic for Variable Products is this:

There is a "CiviCRM Settings" panel which allows you to set the CiviCRM Entity Type that applies to all Variations. It does not configure anything else, since that is set in the Variations.

civicrm-panel

The Variations themselves have CiviCRM settings in their UI (which are read-only until the code is written) that will allow you to specify the settings for each Variation

civicrm-variations

I'll post here when I have news about the code that saves the settings.

alexletizia commented 2 years ago

Thanks @christianwach , it is an excellent solution to manage CiviCRM Events through Wocommerce.

We add that it is now clear that the Covid19 pandemic has made it necessary for NPOs to include the "sale" of physical products online as a fundraising activity, for example for Christmas markets. And this we imagine will be a trend for the future.

Hopefully you will have time to write the new code.

christianwach commented 2 years ago

@alexletizia Try the latest commit and let me know if it works for you. I think it should.

christianwach commented 2 years ago

@alexletizia Closing because I think this issue is solved by #18. Feel free to re-open if you find anything wrong.