Repository Forums Support WooCommerce Pricing Rules PRO Update after 1.1.2? Reply To: Update after 1.1.2?

#2130
40invs
Participant

Thank you very much!
Look at this, it is perfect! https://addwing.ru/shop/blouse-sahara/
I little bit changed your code (it works for me):

add_action( ‘init’, function() {
if ( class_exists( ‘SOFT79_WC_Pricing_Rules_Plugin’ ) ) {
remove_action(‘woocommerce_single_product_summary’, array( SOFT79_WC_Pricing_Rules_Plugin(), ‘action_woocommerce_single_product_summary’), 11 );

add_action(‘woocommerce_before_single_product_summary’, array( SOFT79_WC_Pricing_Rules_Plugin(), ‘action_woocommerce_single_product_summary’), 30 ); //see woocommerce/includes/wc-template-hooks.php
}
}, 90 );

Best regards,
Basil