Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.42k stars 1.99k forks source link

Marketplace: Woo registration does not work for marketplace woo products #91969

Closed gavande1 closed 4 months ago

gavande1 commented 4 months ago

Quick summary

The woo registration for marketplace products is not working for atomic sites. Due to this, the customers cannot use the product after purchasing it. It asks the user to buy a license when the customer visits the extension page in WP admin.

Steps to reproduce

  1. Get an atomic test site with entrepreneur plan
  2. Purchase Tipping WooCommerce from the marketplace
  3. Check if the plugin is installed
  4. Go to Extensions > Manage and see if the plugin shows under a valid Installed Extensions without a Subscription header.

What you expected to happen

The plugin shows under Subscription header and should be valid and registered with Woo when you visit Extensions > Manage. `

What actually happened

The plugin shows under Installed Extensions without a Subscription and asks me to buy a subscription with Woo when I visit Extensions > Manage.

Impact

One

Available workarounds?

No and the platform is unusable

Platform (Simple and/or Atomic)

Atomic

Logs or notes

Slack Convo: p1718824633269259-slack-C029JEQRVRT

gavande1 commented 4 months ago

The store_vendor_products table seems to have an incorrect vendor ID for the product. The Woo registration happens only when the product belongs to the Woo vendor. The change needs to occur in the codebase specifically to how we check if products need to be registered on Woo or not.

The Marketplace_Product_Catalog::is_woocommerce_product() returns false for the Tipping for WooCommerce plugin, while it should return true if we expect it to register on Woo.

gavande1 commented 4 months ago

Diff created to fix the issue: D152977-code

gavande1 commented 4 months ago

The fix was deployed in r298112-wpcom