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

(>1) bundle and "composite products": issue in total amount importing. #23

Open alexletizia opened 2 years ago

alexletizia commented 2 years ago

To offer "real products" through Woocommerce, on CiviCRM we create a price set for both simple products and products with variants (by setting the relative price field for each variant). The price fields are set as "text / numeric quantity" so to receive any amount from Woocommerce. It works.

However:

Immagine 2022-02-23 153738

Do you think it depends on the composites? https://it.wordpress.org/plugins/wpc-composite-products/

or maybe we miss some house?

or does it depend on how "Integrate CiviCRM with WooCommerce" works and you think it can be solved?

christianwach commented 2 years ago

if I create "composite products" or "bundles"

@alexletizia Are you are using a plugin to enable these "bundles"? There is currently only specific support for the Product Types that ship with WooCommerce out-of-the-box.

FYI the CiviCRM Settings for Woo tab allows you to restrict the Product Types that the CiviCRM Options tab appears on so that your Users don't get confused.

alexletizia commented 2 years ago

if I create "composite products" or "bundles"

@alexletizia Are you are using a plugin to enable these "bundles"? There is currently only specific support for the Product Types that ship with WooCommerce out-of-the-box.

FYI the CiviCRM Settings for Woo tab allows you to restrict the Product Types that the CiviCRM Options tab appears on so that your Users don't get confused.

Yes, we use the plugin https://it.wordpress.org/plugins/wpc-composite-products/

So a bundle (or composite product) can just be a "grouped product" (unfortunately with limited functions) in Woocommerce out of the box, right?

christianwach commented 2 years ago

If I buy more than one (whether they are identical or slightly different but pointing to the same price field; even at two different times but in the same order,) the total amount on CiviCRM is non imported.

It sounds like your Product Bundle plugin is building the Order in a way that isn't compatible with this plugin when this is the case. I'd have to look into what's involved in providing support for it, but you could start by debugging what's going on in this method to see if your Item(s) and Product(s) contains the correct data.

alexletizia commented 2 years ago

We do not have such high PHP skills to be able to do debugging. :(

However, we can tell you that we have partially solved the problem by using "dummy bundles" through this plugin https://wordpress.org/plugins/wpc-grouped-product/ (smart grouped products).

It is not the same thing but, at least, it generates "single transactions" (simple products or products with varietions) and the full amount is imported.

christianwach commented 2 years ago

@alexletizia Thanks for the feedback - glad to hear you've found a workaround.

I will have a look to see if this plugin can support the Composite Products plugin at some point.