MarketPress eCommerce

Is it possible to print off address labels?

  • Nahid

    Hey Mike !
    Hope you are having a great day!

    To be honest, I'm not sure which address labels are you referring to exactly. I guess it is the checkout page and you can remove the address fields (Address Line 1 and Address Line 2) by adding the following code in your functions.php.

    add_filter( 'mp_checkout/address_fields_array', function($address_fields, $type){
        $unwanted_fields = array(
        foreach( $address_fields as $key => $address_field ){
            if( isset( $address_field['name'] ) && in_array( $address_field['name'], $unwanted_fields ) ){
                unset( $address_fields[$key] );
        return $address_fields;
    }, 10 ,2 );

    Let me know if this works for you. Thanks!


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.