Developer Guide

Estimated reading: 1 minute

Developer Guide

ShipPlus allows you to customise it’s features and workability according to your requirements if you can customise the code to your needs.

Plugin support with customisation-

IWP encourages custom tweaks and customisations, Follow below documentation to learn more about what you can customise in ShipPlus by adding custom code.

Contact us if you have made a new tweak with ShipPlus and wants to share with everyone.

Hiding Ground Rates

If you are facing ground rates error with your shipping service provider, Follow the below steps

  1. Open the checkout page in your browser
  2. Access developer tools
  3. Open source code with Inspect Tool
  4. Find the Rate ID
  5. Add the ID in Excluder

It will allow you to manually disable unwanted prices.

Locations Field

				
					function location_shipplus_fields( $fields, $country ) {
    $fields['shipping_test'] = array(
        'label' => 'Demo',
        'placeholder'   => 'Demo Field'
    );
    return $fields;
}
add_filter( 'woocommerce_shipping_fields', 'location_shipplus_fields', 10, 2 );

function display_custom_shipping_fields( $formatted_address, $address ) {
    if ( isset( $address['shipping_test'] ) ) {
        $formatted_address .= '<br/>Test: '. $address['shipping_test'];
    }
    return $formatted_address;
}
add_filter( 'wc_ms_formatted_address', 'display_custom_shipping_fields', 10, 2 );
				
			

Here is a sample on how you can add a custom location field. You can work around simple rules to apply on fields.

EASY ACCESS