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

Console Error When Configuring Product Add-ons with WooCommerce Automated Taxes Enabled #2824

Open
daniyalahmadk opened this issue Oct 18, 2024 · 2 comments

Comments

@daniyalahmadk
Copy link

Bug Report

Describe the bug
When WooCommerce Shipping and Tax is activated with "Automated tax" enabled, configuring product addons during manual order creation throws a JavaScript error in the console.

Console Error

Uncaught TypeError: r.data.indexOf is not a function  
File: woocommerce-services-new-order-taxjar-2.8.2.js  
Line: if (r.data && r.data.indexOf("woocommerce_calc_line_taxes") > 0)

To Reproduce
Steps to reproduce the behavior:

  1. Install WooCommerce Product Add-ons and configure a global addon.
  2. Go to WooCommerce > Settings > Tax and enable "Automated taxes."
  3. Go to WooCommerce > Orders > Add New, add a line item, then click on the "Configure" button.
  4. Fill in the addon field in the popup, click "Done," and observe the console error.

Expected behavior
The product addon should be configured without errors, and the order process should continue without getting stuck on the loading icon.

Screenshots

https://d.pr/i/RAW1tf
Full Size: https://d.pr/i/RAW1tf

@grig-23
Copy link

grig-23 commented Nov 3, 2024

8898937-zen - I think this is where this was originally reported.

@rbgly
Copy link

rbgly commented Nov 28, 2024

9066631-zen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants