Support » Plugin: WooCommerce » package_rates add notice chekcout page

  • Hello !

    with current filter woocommerce_package_rates I cant have access to the available packages and manipulate them (unset, change cost, etc).

    add_filter( 'woocommerce_package_rates', 'adjust_shipping_rates', 10, 2 );
    function adjust_shipping_rates( $rates, $package) {
    
        $destination = $package['destination'];
        $postcode    = $destination['postcode'];
    .... my stuff
    return $rates;
    }

    if the following filter I would like to display some information to the user

    add_action( 'woocommerce_review_order_before_payment', 'before_paying_notice' );
    function before_paying_notice() {
    
    }

    in the filter before_paying_notice the variables $package is not available.
    How can I get access to that variable ?

    Thank you for your help.

    Kind Regards,

    Marc

    add_action( ‘woocommerce_review_order_before_payment’, ‘skyverge_before_paying_notice’ );

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘package_rates add notice chekcout page’ is closed to new replies.