"Shipping via" is displayed on Paypal checkout when shipping cost is 0
-
Hi,
I noticed that the checkout with Paypal displays an extra line for shipping cost even if the shipping cost is 0.
This occurs when taxes are enabled and prices include taxes.
Indeed if I look to get_line_item_args() function within /woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php, I see that there is no restriction to display the “Shipping via” information if taxes are enabled and prices include taxes.
Maybe you should check the order total shipping prior to display this information as you already do within the prepare_line_items() function?
Best regards
- The topic ‘"Shipping via" is displayed on Paypal checkout when shipping cost is 0’ is closed to new replies.