Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative shipping rate setting leads to false onboarding completion and failure to update free listings #2466

Open
eason9487 opened this issue Jul 11, 2024 · 0 comments
Labels
type: bug The issue is a confirmed bug.

Comments

@eason9487
Copy link
Member

eason9487 commented Jul 11, 2024

Describe the bug:

Kapture.2024-07-11.at.16.08.56.mp4

Steps to reproduce:

Onboarding

  1. Go to WooCommerce > Settings > Shipping > Shipping zones and set up a zone with negative flat rate.
    image
  2. Start onboarding and proceed to step 2.
    1. Add the above configured zone to the Audience setting.
    2. Select the Recommended: Automatically sync my store’s shipping settings to Google option for the shipping rates setting.
  3. Proceed to complete the onboarding. It shows an error: "Unable to complete your setup." but it still continues to finish the onboarding.
  4. After being redirected to the Product Feed page, it shows more errors.
    image

Update free settings

  1. Use the same setup as above.
  2. Go to edit free listings.
  3. Save changes. It shows an error: "Something went wrong while saving your changes. Please try again later."

Expected behavior:

Maybe prompt users about shipping settings that are not supported by Google Merchant Center when syncing settings.

Actual behavior:

  • False onboarding completion
  • Unable to update free listings

Additional details:

Error log

Automattic\WooCommerce\GoogleListingsAndAds\API\Site\Controllers\MerchantCenter\{closure} {
  "error": {
    "code": 400,
    "message": "[services[1].rateGroups[0].singleValue] Following rates are negative: -1000000",
    "errors": [
      {
        "message": "[services[1].rateGroups[0].singleValue] Following rates are negative: -1000000",
        "domain": "global",
        "reason": "invalid"
      }
    ]
  }
}
@eason9487 eason9487 added the type: bug The issue is a confirmed bug. label Jul 11, 2024
@eason9487 eason9487 changed the title Negative shipping rate setting leads to false onboarding completion and failure to update free settings Negative shipping rate setting leads to false onboarding completion and failure to update free listings Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

1 participant