settings['disable-on-product-pages']; if ( !$wad_obj->is_applicable( $product->get_id() ) || $is_disable !== 'no' ) { continue; } $discounted_amount += (float) $wad_obj->get_discount_amount( $product->get_price() ); } if ( $discounted_amount > 0 && empty( $price ) ) { $price = (float) $product->get_price() - $discounted_amount; } else { $price = $original_price; } } if ( $with_tax ) { $price = ProductHelper::get_price_with_tax( $price, $product ); } return $price; } }