Skip to content

This lightweight plugin will migrate tracking info added to the AfterShip plugin for WooCommerce to the Advanced Shipment Tracking order meta fields.

Notifications You must be signed in to change notification settings

zorem/migrate-from-aftership-to-ast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Migrate tracking numbers from AfterShip to AST

This plugin will migrate tracking information from the AfterShip plguin for WooCommerce into the Advanced Shipment tracking plugin meta fields.

Once installed, navigate to WooCommerce > Migrate from Aftership to AST and you'll be able to choose the number of days to go back in orders and run the migration and click "Migrate".

Installation

To install:

  1. Download the latest version of the plugin here
  2. Go to Plugins > Add New > Upload administration screen on your WordPress site
  3. Select the ZIP file you just downloaded
  4. Click Install Now
  5. Click Activate

Map the Shipping provider names

You can use this code snippet in functions.php to map the shipping provider names in case the shipping provider name on AfterShip does not match the name of the provider on the AST shipping providers list.

function mfata_tracking_provider( $provider ) {  
  //Provider name on AfterShip 
  if ( 'usps-webhook' == $provider ) {  
     //Provider name on AST
     return 'usps';  
  }

  //Provider name on AfterShip
  if ( 'usps-api' == $provider ) { 		
    //Provider name on AST	
    return 'usps';      
   }	
   return $provider;
}
add_filter( 'mfata_tracking_provider', 'mfata_tracking_provider' );

About

This lightweight plugin will migrate tracking info added to the AfterShip plugin for WooCommerce to the Advanced Shipment Tracking order meta fields.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published