Skip to content

bronxnz/WP-Plugin-Custom-Woo-Order-Shipment-Tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Custom Woo Order Shipment Tracking - WordPress Plugin


Installation:

  1. Create a ZIP file containing only the main plugin file (custom-woo-order-shipment-tracking.php)
  2. Name the ZIP file "custom-woo-order-shipment-tracking.zip"
  3. Log in to WordPress admin dashboard & upload the plugin
  4. Install and Activate the plugin

Requirements:

  • WordPress (latest version recommended)
  • WooCommerce must be installed and activated
  • YayMail (optional, for enhanced email capabilities)

To add Carriers & Carrier Tracking Links:
Use the WordPress Admin Dashboard Menu Item: Custom Tracking


YayMail Compatibility
This plugin is designed to be fully compatible with YayMail for WooCommerce. The tracking information is stored in WooCommerce Order meta using standardized keys, allowing YayMail to access and display the data in email templates.

Available order meta for YayMail templates:
_1a_carrier - The shipping carrier name
_1b_tracking_number - The shipment tracking number
_1c_tracking_link - The full tracking URL for the shipment

You can use these meta fields in YayMail templates with shortcodes or custom elements to display tracking information in your order emails.


Carrier Names & Tracking Link Data Stored in:
Database: your wordpress database
Table: wp_options
Option_Name: custom_tracking_carriers

Order Tracking Info Data Stored in:
Database: your wordpress database
Table: wp_wc_orders_meta
Option_Name: _1a_carrier
Option_Name: _1b_tracking_number
Option_Name: _1c_tracking_link


Need to delete ALL saved Carrier/Tracking Link/Tracking Number data from database?
Add the following script to functions.php, save changes, then load any wp-admin page.
Comment it out/remove it to stop it from running with each wp-admin page load.

add_action('init', 'reset_custom_order_tracking_data'); function reset_custom_order_tracking_data() { delete_option('custom_tracking_carriers'); global $wpdb; $wpdb->query("DELETE FROM {$wpdb->prefix}wc_orders_meta WHERE meta_key IN ('_1a_carrier', '_1b_tracking_number', '_1c_tracking_link')"); }


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages