WooCommerce Services is a feature plugin that integrates hosted services into WooCommerce (3.0+), and currently includes automated tax rates and the ability to purchase and print USPS shipping labels.
GNU General Public License v2.0
107
stars
20
forks
source link
Weekly synchronized subscription products incorrectly show free trial language with automated taxes enabled #2144
When automated taxes are enabled, synchronized subscription products set to charge nothing at initial purchase show "ghost" free trial language in the cart even when there is no free trial set on the product:
I did some testing with this line commented out on subscription products with free-trial periods and did not see any issues caused by commenting out this code. The initial order for a free trial appears to (correctly) not charge tax.
Affected Ticket 3216602-zen
Synopsis
When automated taxes are enabled, synchronized subscription products set to charge nothing at initial purchase show "ghost" free trial language in the cart even when there is no free trial set on the product:
Full Image: https://d.pr/i/GBGeAE
To Replicate
What I Expected
Free trial language will only show in the cart for subscription products that actually have a free trial configured on the product.
Additional Notes
The customer determined and our testing confirmed that commenting out this line of code resolves this issue:
https://github.com/Automattic/woocommerce-services/blob/1.24.0/classes/class-wc-connect-taxjar-integration.php#L639
I did some testing with this line commented out on subscription products with free-trial periods and did not see any issues caused by commenting out this code. The initial order for a free trial appears to (correctly) not charge tax.