woocommerce / google-listings-and-ads

Sync your store with Google to list products for free, run paid ads, and track performance straight from your store dashboard.
https://woo.com/products/google-listings-and-ads/
GNU General Public License v3.0
44 stars 21 forks source link

Free shipping threshold is mistakenly synced as minimum spending threshold #2469

Open eason9487 opened 1 month ago

eason9487 commented 1 month ago

Describe the bug:

If there is a minimum order amount to get free shipping, it will be mistakenly synced to Google Merchant Center as a minimum spending threshold.

This issue occurs with shipping data obtained from WooCommerce core or set in this extension.

Steps to reproduce:

Using WooCommerce core shipping data

  1. Go to WooCommerce > Settings > Shipping > Shipping zones and set up a zone with free shipping and minimum order amount. image
  2. Go to edit free listings.
  3. Select the Recommended: Automatically sync my store’s shipping settings to Google option for the shipping rates setting.
  4. Add the above configured zone to the Audience setting.
  5. Save changes.
  6. Wait a moment for the settings to sync to Google Merchant Center.
  7. Go to Google Merchant Center and navigate to Shipping and returns page.
  8. Expand the corresponding shipping policy.
    • The above minimum order amount of free shipping is set as the No shipping under amount.
    • The Free shipping over amount is empty

1

Using extension shipping data

  1. Go to edit free listings.
  2. Select the My shipping settings are simple. I can manually estimate flat shipping rates option for the shipping rates setting.
  3. Add a free shipping threshold. image
  4. Save changes.
  5. Go to Google Merchant Center and navigate to Shipping and returns page to see the incorrect synchronization.

1

Expected behavior:

The minimum order amount to get free shipping should be synced to Google Merchant Center as the Free shipping over amount.

Actual behavior:

The minimum order amount to get free shipping is synced to Google Merchant Center as the No shipping under amount.

Additional details:

Related codes:

The minimumOrderValue field in Content API for Shopping document:

https://developers.google.com/shopping-content/reference/rest/v2.1/shippingsettings#service

Minimum order value for this service. If set, indicates that customers will have to spend at least this amount.