Title: Unsupported operand types: float + string
Last modified: March 14, 2023

---

# Unsupported operand types: float + string

 *  [vendidero](https://wordpress.org/support/users/vendidero/)
 * (@vendidero)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/unsupported-operand-types-float-string/)
 * Hi there,
 * plugin developer of [Germanized](https://wordpress.org/plugins/woocommerce-germanized/)
   here. One of our joint users experiences an error syncing orders with JTL. The
   error does only occur when using a plugin which adjusts shipping taxes in a way,
   that multiple tax rates apply for a single shipping item (mixed carts).
 * Could you please replace L 268 in `woo-jtl-connector/src/Controllers/Order/CustomerOrderItem.
   php`:
 *     ```wp-block-code
       $priceGross = $netPrice + $taxAmount;
       ```
   
 * with:
 *     ```wp-block-code
       $priceGross = $netPrice + (float) $taxAmount;
       ```
   
 * The `$taxAmount` variable being created by looping `$shippingItem->get_taxes()`
   contains strings, not floats. Adding the string to the existing float leads to
   a PHP error.
 * Cheers,
   Dennis

The topic ‘Unsupported operand types: float + string’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-jtl-connector_f1ede9.svg)
 * [JTL-Connector for WooCommerce](https://wordpress.org/plugins/woo-jtl-connector/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-jtl-connector/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-jtl-connector/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-jtl-connector/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-jtl-connector/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [vendidero](https://wordpress.org/support/users/vendidero/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/unsupported-operand-types-float-string/)
 * Status: not resolved