Title: Plugin Causing Add-ons to not work
Last modified: January 7, 2019

---

# Plugin Causing Add-ons to not work

 *  Resolved [alyssah54485](https://wordpress.org/support/users/alyssah54485/)
 * (@alyssah54485)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-causing-add-ons-to-not-work/)
 * Hello!
 * I have narrowed down that this plugin has caused my “Woocomerce Product Add-On”
   extension to malfunction. You can go to a product and choose an add-on, once 
   this is added to the cart and you navigate to the cart it still shows the Add-
   on title under the product image, but the pricing is no longer calculated into
   the cost and the user can checkout and receive that add-on for free.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-causing-add-ons-to-not-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-causing-add-ons-to-not-work/#post-11062844)
 * Hello
 * Please, contact me via [helpdesk](https://algolplus.freshdesk.com). I’ll provide
   modified version for tests.
    thanks, Alex
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-causing-add-ons-to-not-work/#post-11071558)
 * New hooks was added to version 1.5.2.
 * Please, add this code to functions.php
 *     ```
       add_filter("wdp_get_product_price", function($price, $product, $price_mode, $item_meta){
         if( !empty($item_meta["addons"]) ) {
           foreach($item_meta["addons"] as $addon)
             if( !empty($addon["price"]) )
               $price += $addon["price"];
         }
         return $price;
       },10,4);
       ```
   
    -  This reply was modified 7 years, 5 months ago by [algol.plus](https://wordpress.org/support/users/algolplus/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin Causing Add-ons to not work’ is closed to new replies.

 * ![](https://ps.w.org/advanced-dynamic-pricing-for-woocommerce/assets/icon-256x256.
   png?rev=1984204)
 * [Advanced Dynamic Pricing and Discount Rules for WooCommerce](https://wordpress.org/plugins/advanced-dynamic-pricing-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-dynamic-pricing-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-dynamic-pricing-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-dynamic-pricing-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-dynamic-pricing-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-dynamic-pricing-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [algol.plus](https://wordpress.org/support/users/algolplus/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-causing-add-ons-to-not-work/#post-11071558)
 * Status: resolved