title: Adjust price if addons are set
body: <p>Hi i have woocommerce addons plugin in my wordpress shop, for users to choose a weight and calculate the price upon the weight,
  i have this code that adds the main price to the price of KG,
  For example the cake costs 100$ per kg</p>
  
  <p>in Cart it shows 700$ for  6 KG's. but it must show 600. So it adds the main price after the calculation. </p>
  
  <p>here is the code </p>
  
  <pre><code>public function add_cart_item( $cart_item ) {
      // Adjust price if addons are set
      if ( ! empty( $cart_item['addons'] ) &amp;&amp; apply_filters( 'woocommerce_product_addons_adjust_price', true, $cart_item ) ) {
  
  
  
          foreach ( $cart_item['addons'] as $addon ) {
              if ( $addon['price']  ) {
  
              }
          }
  
          $cart_item['data']-&gt;adjust_price($addon['price'] );
      }
  
      return $cart_item;
  }
  </code></pre>