Skip to content

Shipment tracking plugin for WordPress WooCommerce. Trackmage - Get Branded Tracking Page for your ecommerce store.

License

Notifications You must be signed in to change notification settings

trackmage/trackmage-woo-shipment-tracking

Repository files navigation

Trackmage - Get Branded Tracking Page for your ecommerce store. WooCommerce shipment tracking plugin for WordPress

Build Status

Download plugin from WordPress.org


Your Beautiful, Branded, Highly Customizable TrackMage Tracking Page.

tracking page


Provide your customers with proactive email updates. TrackMage has pre-configured email notifications for all of the typical shipment statuses and related events.

Available for pickup email


When your customer receives their package, the system will automatically ask them to leave a review.

Leave a review email


Depending on how high their review score was, your customer support team will be notified and you will be able to react accordingly.

Leave a review on tracking page


No Strings Attached, No Credit Card Required - Try TrackMage now.

And btw, if you are just starting out, there is Forever Free plan with 100 Parcels Per Month.


Local development

composer install
npm install
npm run build

Add this to wp-config.php to change the api domain:

define('TRACKMAGE_API_DOMAIN', 'https://api.test.trackmage.com');
define('TRACKMAGE_APP_DOMAIN', 'https://app.test.trackmage.com');

Generate some orders:

git clone https://github.com/woocommerce/wc-smooth-generator.git
cd wc-smooth-generator/
composer install

docker run -it --rm --volumes-from wpbrowser_wp --network container:wpbrowser_wp wordpress:cli-php7.2 \
 wp plugin activate wc-smooth-generator

docker run -it --rm --volumes-from wpbrowser_wp --network container:wpbrowser_wp wordpress:cli-php7.2 \
 wp wc generate products 2

docker run -it --rm --volumes-from wpbrowser_wp --network container:wpbrowser_wp wordpress:cli-php7.2 \
 wp wc generate orders 100 --date-start=2020-04-01 --date-end=2020-11-15

Testing:

Database in docker

  1. Start the db server
docker stop wp_test_mysql || true \
  && docker rm wp_test_mysql || true

docker run --name wp_test_mysql -d \
  -p 0.0.0.0:3386:3306 \
  -e MYSQL_ROOT_PWD=123 \
  -e MYSQL_USER=wordpress \
  -e MYSQL_USER_PWD=wordpress \
  -e MYSQL_USER_DB=wp_site \
  --restart unless-stopped \
  leafney/alpine-mariadb:10.3.13

Local commands:

export PHP_VERSION=7.4
make init
make test
vendor/bin/codecept run wpunit,unit,functional,acceptance
XDEBUG_CONFIG="idekey=PhpStorm1" vendor/bin/codecept run wpunit tests/wpunit/Synchronization/OrderSyncTest.php 
vendor/bin/codecept clean
docker-compose -f docker/docker-compose.yml down

Manual deployment to wordpress.org

make build
CI_SERVER=yes WP_ORG_USERNAME=trackmage WP_ORG_PASSWORD= GIT_TAG=v1.0.0 bin/deploy.sh

Docs:

https://codeception.com/for/wordpress
https://wpbrowser.wptestkit.dev/summary/levels-of-testing