1. Home
  2. Knowledge Base
  3. WooCommerce Product Add-Ons Ultimate
  4. Advanced Topics for Add-Ons Ultimate
  5. Pricing
  6. Disable pricing on Add-Ons Ultimate

Disable pricing on Add-Ons Ultimate

You might want to disable the pricing functionality for Add-Ons Ultimate – for instance, if you are using more than one add-ons plugin and you don’t want Add-Ons Ultimate to update the price.

Just use this snippet:

<?php
remove_action( 'woocommerce_before_calculate_totals', 'pewc_wc_calculate_total', 10, 1 );
remove_filter( 'woocommerce_cart_item_price', 'pewc_minicart_item_price', 10, 3 );
remove_action( 'woocommerce_cart_calculate_fees', 'pewc_cart_calculate_fees', 10 );
function prefix_remove_actions() {
remove_action( 'woocommerce_before_calculate_totals', 'pewc_wc_calculate_total', 10, 1 );
remove_filter( 'woocommerce_cart_item_price', 'pewc_minicart_item_price', 10, 3 );
remove_action( 'woocommerce_cart_calculate_fees', 'pewc_cart_calculate_fees', 10 );
}
add_action( 'init', 'prefix_remove_actions' );

Was this article helpful?

Related Articles