• Resolved alyssah54485

    (@alyssah54485)


    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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author algol.plus

    (@algolplus)

    Hello

    Please, contact me via helpdesk. I’ll provide modified version for tests.
    thanks, Alex

    Plugin Author algol.plus

    (@algolplus)

    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.
Viewing 2 replies - 1 through 2 (of 2 total)

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