The Courier Guy extension for WooCommerce enables you to ship products using The Courier Guy.
Why choose The Courier Guy?
The Courier Guy has built a strong reputation through strong customer relations and effective personal service. Today The Courier Guy is trusted, recognised and the fastest growing courier company in South Africa.
Parcel sizes are based on your packaging structure. The plugin will compare the cart’s total dimensions against «Flyer», «Medium» and «Large» parcel sizes to determine the best fit. The resulting calculation will be submitted to The Courier Guy as using the parcel’s dimensions. By downloading and using this plugin, you accept that incorrect ‘Parcel Size’ settings may cause quotes to be inaccurate, and The Courier Guy will not be responsible for these inaccurate quotes.
A Courier Guy account.
Please ensure that your Courier Guy account has credit, if there is no credit in your Courier Guy account, then the plugin will not function correctly.
Visit the The Courier Guy Website page for more details.
Automatic installation is the easiest option — WordPress will handle the file transfer, and you won’t need to leave your web browser. To do an automatic install of ‘The Courier Guy Shipping for WooCommerce’, log in to your WordPress dashboard, navigate to the Plugins menu, and click “Add New.”
In the search field type “The Courier Guy Shipping for WooCommerce,” then click “Search Plugins.” Once you’ve found the plugin, you can view details or click “Install Now”. WordPress should take it from there.
Manual installation method requires downloading the ‘The Courier Guy Shipping for WooCommerce’ plugin and uploading it to your webserver via your favourite FTP application. The WordPress codex contains instructions on how to do this here.
Automatic updates should work smoothly, but we still recommend you back up your site.
To configure your shipping, log in to your WordPress dashboard, navigate to the Woocommerce -> Settings menu, click the Shipping tab, and click “Add shipping zone.”
Fill out the form as follows, please also see the attached screenshots:
The Courier Guy
Select regions as desired
Click the ‘Add shipping method’, select ‘The Courier Guy’ from the available options and click ‘Add shipping method’.
Now you can edit the newly created Shipping Method.
Fill out the form as follows, please also see the attached screenshots:
The Courier Guy
The account number supplied by The Courier Guy for integration purposes.
VAT applies or not
Access Key ID
The access key ID for the Ship Logic API
The secret access key for the Ship Logic API
The name of your company.
Shop Street Number and Name
The address used to calculate shipping, this is considered the collection point for the parcels being shipping. e.g 12 My Road
Suburb forms part of the shipping address e.g Howick North
City forms part of the shipping address e.g Howick
Shop State or Province
State / Province forms part of the shipping address e.g Kwazulu-Natal
Country two-letter code forms part of the shipping address e.g ZA
Shop Postal Code
The address used to calculate shipping, this is considered the collection point for the parcels being shipping.
The telephone number to contact the shop, this may be used by the courier.
The email to contact the shop, this may be used by the courier.
Select the rates that you wish to always be excluded from the available rates on the checkout page.
Percentage markup to be applied to each quote.
Parcels – Flyer Size: Length of Flyer
Length of the Flyer – required
Parcels – Flyer Size: Width of Flyer
Width of the Flyer – required
Parcels – Flyer Size: Height of Flyer
Height of the Flyer – required
Parcels – Medium Parcel Size: Length of Medium Parcel
Length of the Medium Parcel – optional
Parcels – Medium Parcel Size: Width of Medium Parcel
Width of the Medium Parcel – optional
Parcels – Medium Parcel Size: Height of Medium Parcel
Height of the Medium Parcel – optional
Parcels – Large Parcel Size: Length of Large Parcel
Length of the Large Parcel – optional
Parcels – Large Parcel Size: Width of Large Parcel
Width of the Large Parcel – optional
Parcels – Large Parcel Size: Height of Large Parcel
Height of the Large Parcel – optional
Enable free shipping
This will enable free shipping over a specified amount
Rates for free Shipping
Select the rates that you wish to enable for free shipping
Amount for free Shipping
Enter the amount for free shipping when enabled
Enable free shipping from product setting
This will enable free shipping if the product is included in the basket
Enable WooCommerce Logging
Check this to enable Monolog logging for this plugin.
Remember to empty out logs when done.
Enable Method Box on Checkout
Check this to enable the Method Box on checkout page
Use non-standard packing algorithm
Check this to use the non-standard packing algorithm.
This is more accurate but will also use more server resources and may fail on shared servers.
Frequently Asked Questions
Does this require a Courier Guy account?
Yes! A Courier Guy account is required. To open an account, please refer to The Courier Guy
Where can I get support or talk to other users?
If you get stuck, you can ask for help in the Plugin Forum.
Parcel Configuration and Accurate Quotes
For accurate quotes to display, parcel dimensions for ‘Flyer’, ‘Medium’ and ‘Large’ parcels should be configured according to your needs. The algorithm will work out how many products will fit into each parcel, starting with the smallest size and working its way up. If you only have one or two parcel size (I.E. you don’t use the flyer bag), dimensions of 1, 1, 1 can be used. All products will also need the correct dimensions and weights configured under their WooCommerce product settings.
WCFM and WC Marketplace
If this plugin is used together with the extension «WCFM and WC Marketplace – The Courier Guy Shipping for WooCommerce» it is possible to use vendor store addresses to override the base TCG shipping address
which is configured in the TCG shipping plugin.
To do this, from the Store Manager settings, select Store Vendors / Vendor / Details / Settings / Store Shipping.
Within the Store Shipping tab enable shipping and set processing time and shipping type. Then disable
shipping and update the settings. These steps are necessary for the vendor id to be passed to the shipping
module, and if it is not done, the default origin settings will be used.
There are three The Courier Guy specific settings in product settings
– Free Shipping – if enabled, a cart containing that product qualifies for free shipping
– Prohibit The Courier Guy – if enabled, TCG shipping will be disabled for that cart
(both the above apply per vendor in the cart in a multi-vendor environment)
– Always pack as a single parcel – if enabled, each item of such a product will be a single parcel
Colaboradores y desarrolladores
«The Courier Guy Shipping for WooCommerce» es un software de código abierto. Las siguientes personas han colaborado con este plugin.Colaboradores
Traduce «The Courier Guy Shipping for WooCommerce» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
= 5.0.8 – June 02, 2022
* Tested with WooCommerce 6.5.1 and WordPress 6.0.
* Throw error on an empty cart.
* Improve prohibited product handling.
* Fix parcel description not sent to the portal.
* Fix Billing Phone not sent to the portal.
* Fix Company Name not sent to the portal.
* Fix Street Addresses sent to the portal.
* Fix inflated insurance added to shipping quote.
* Fix payments going through with no available shipping methods.
* Improve the compatibility of «Send to Courier Guy» and «Print WayBill».
= 5.0.7 – January 28, 2022
* Tested with WordPress 5.9
* Bug fixes and improvements.
* Re-enable generic description feature.
= 5.0.6 – January 25, 2022
* Remove rate descriptions from checkout.
* Fix price override tax calculations.
* Fix LSF booking as ‘ECO’.
* Add option to enable/disable insurance.
= 5.0.5 – January 17, 2022
* Bug fixes and improvements.
* Fix undefined offset error.
* Fix VAT and tax.
* Fix empty quote warning.
* Fix Province/State on older WooCommerce.
* Fix invalid type issue.
= 5.0.4 – January 7, 2022
* Bug fixes and improvements.
* Fix «Always pack as single parcel» logic.
* Add «Enable specific shipping options» feature.
* Remove «Disable Shipping Options» as this is now redundant.
* Remove «The Courier Guy PUDO: Fuel charge» from exclude rates.
* Add «Rates for free Shipping» feature.
* Update «Send Order to Courier Guy» and «Print Waybill» for recent ShipLogic API changes.
= 5.0.3 – January 1, 2022
* Add additional rates to rate override features.
= 5.0.2 – December 30, 2021
* Fix percentage markup.
* Add Disable Shipping Options feature.
* Add Exclude Rates feature.
* Add Price Rate Override Per Service feature.
* Label Override Per Service feature.
* Fix warnings on datatypes for some server configurations.
= 5.0.1 – December 28, 2021
* Fix shipping options auto-selecting.
* Normalise weight to KG if config set to other weight units.
* Fix Uncaught TypeError: class TCG_Plugin does not have a method «updateTCGServiceOnOrder»
= 5.0.0 – December 27, 2021
* Initial version using Ship Logic API. PLEASE CONTACT TCG DIRECTLY BEFORE UPDATING.
= 4.5.4 – November 18, 2021
* Fix free shipping error on multi-box.
* Improve logic to prevent area/suburb field from being skipped.
* Add server side filtering of rates when method box is enabled.
* Fix undefined operand issue on items without dimensions.
* Change apiToken storage to use transient.
* Reduce potential of hanging on checkout.
* Improve items per box algorithm.
* Tested on WooCommerce 5.9.0.
= 4.5.0 – August 30, 2021
* Fix free shipping for product when “free shipping over a certain amount» is disabled.
* Make entire label clickable for method box feature.
* Fix failed to open stream for .htaccess.setup.
* Tested on WooCommerce 5.6.0.
= 4.4.9 – August 5, 2021
* Fix undefined index ‘enablenonstandardpackingbox’ warning.
* Encrypt waybill number name on the filesystem.
* Improve non-standard algorithm for single-product parcels.
= 4.4.8 – July 27, 2021
* Revert to using local storage of waybills but include htaccess file.
* Fix LSF showing up if cart is non-flyer compatible.
* Tested with WordPress 5.8 and WooCommerce 5.5.2
* Improve alternate method calculations.
= 4.4.7 – June 28, 2021
* Fix rate filter error on WCMP.
* Add ‘Use non-standard packing algorithm’ option for improved quotes.
* Remove local caching of Waybills for better POPI compliance.
* Add «specinstruction» so customer order notes appear on waybill.
* Improve code format and refactor.
* Test on WooCommerce 5.4.1
= 4.4.6 – June 15, 2021
* Fix incorrect weight calculation.
* Add «SPX : Special Trip» to rate options.
= 4.4.5 – June 11, 2021
* Fix ‘actmass’ per parcel when multiple items of the same product.
= 4.4.4 – June 11, 2021
* Fix Undefined variable: bestFitIndex.
* Fix Province/State fixed width of 1px when method box is enabled.
* Show «Deliver to a different address?» checkbox when method box is disabled.
* Fix JSON decode array/stdclass issue in TCG_Plugin.php.
= 4.4.3 – May 15, 2021
* Fix issue where destperemail was not sent to TCG.
= 4.4.2 – May 13, 2021
* Fix Undefined index: error.
* Tested with WordPress 5.7.2 and WooCommerce 5.3.0
= 4.4.1 – May 11, 2021
* Refactor product pooling for more efficient resource handling.
* Remove flyer services if parcel size too large.
* Add support for failures caused by long URIs sent.
= 4.4.0 – Apr 23, 2021
* Add exclude cartage from free shipping feature.
* Add disclaimer feature.
* Always select free shipping if present.
* Add 3 more custom parcel sizes.
* Fix customer name missing from destpers field if Company empty.
* Tested with WooCommerce 5.
* Improve quote caching reset and reliability.
* Fix the “Prohibit The Courier Guy” function for variable products.
* Add (cm) to parcel dimensions titles.
* Improve product box calculations by adding the ‘pool products’ capability.
* Fix logging when getting a quote.
* Fix Internet Explorer 11 checkout issue.
= 4.3.5 – Feb 10, 2021
* Fix Fatal error: Uncaught Error: Unsupported operand types in /wp-content/plugins/the-courier-guy/Core/ParcelPerfectApiPayload.php:728 on some servers.
* Fix destpercell field to use order billing phone.
* Add ‘Send to Courier Guy’ and ‘Print Waybill’ to action items.
* Remove «Percentage for free Shipping».
= 4.3.4 – Jan 25, 2021
* Tested with WooCommerce 4.9.1 and WordPress 5.6.
* Improve area/suburb field handing.
* Fix extra line added to WayBill.
* Change Monolog to the WooCommerce Logger.
* Don’t stop checkout if shipping internationally.
* Improve product parcel calculations.
* Change the default flyer sizes.
* Add pool products capability.
= 4.3.3 – Nov 16, 2020
* Add cache buster.
= 4.3.2 – Nov 16, 2020
* Fix ‘CRITICAL syntax error, unexpected » (T_ENCAPSED_AND_WHITESPACE)’ issue.
= 4.3.1 – Nov 16, 2020
* Add ‘Prohibit The Courier Guy’ in product settings if cart contains this product.
* Add Shipping Selector feature.
* Fix consistent naming of session variable and general tidy-up.
* Pre-populate city area in billing.
= 4.3.0 – Oct 23, 2020
* PLEASE NOTE: If you use a multivendor platform, please test the integration thoroughly after updating.
* Fix SyntaxError: JSON Parse error: Unrecognized token ‘<.
* Fix undefined index warnings.
* Force cart reload in shipping field change.
= 4.2.9 – Oct 12, 2020
* Add option for single product per parcel at the product level.
* Add option to remove lowest cost quotes in multi vendor.
* Improve handling of failed POST requests to Parcel Perfect quotes.
* Fix TCG VAT total added when using free shipping feature.
* Fix free shipping bug in multi vendor plugin.
* Fix missing instance_id for some third party plugins.
* Remove LOF Only Service.
= 4.2.8 – Sep 25, 2020
* PLEASE NOTE: Parcel sizes are based on your packaging structure. The plugin will compare the cart’s total dimensions against «Flyer», «Medium» and «Large» parcel sizes to determine the best fit. The resulting calculation will be submitted to The Courier Guy as using the parcel’s dimensions. By downloading and using this plugin, you accept that incorrect ‘Parcel Size’ settings may cause quotes to be inaccurate, and The Courier Guy will not be responsible for these inaccurate quotes.
* Amend shipping calculations to account for the entire order rather than individual line items.
= 4.2.7 – Sep 16, 2020
* Fix session_set error on some servers.
* Fix Invalid Product error for variable products.
= 4.2.6 – Sep 11, 2020
* Correct for index name changes in $package when using multivendor package.
* Simplify order shipping calculations and configuration.
* Remove product parcel settings.
* Remove global product quantity setting.
* Fix undefined index errors.
* Change payload calculation method for new sizes.
* Add customer phone on destpercell.
= 4.2.5 – Aug 25, 2020
* First try order meta to find shipping total, otherwise try the session, and if that fails, fallback to the cookie.
* Fix issue on guest checkout where the customer name was lost on waybill.
= 4.2.4 – Aug 12, 2020
* PLEASE NOTE: Print pending waybills before updating.
* Make insurance on checkout optional.
* Fix «An error of type E_ERROR».
* Remove old barcode and dompdf libraries.
* Show «Print Waybill» and «Send Order to Courier Guy» as appropriate.
* Add backup Cookie method if shipping missing from session.
* Fix «Undefined index: billing_insurance».
* Add option for generic product description on waybill.
= 4.2.3 – Aug 05, 2020
* Fix Call to undefined method ParcelPerfectApiPayload::factorise() if settings not configured.
* Improve ambiguous label «South Africa Only» -> «Ship internationally using other carriers».
* Waybill in email invalid if ‘collect from courier guy’ is not enabled.
= 4.2.2 – Jul 31, 2020
* Fix malformed number error.
* Use WC() session rather than $_SESSION to fix missing shipping information on orders.
* Fix null string issue.
* Add NFS service.
* Fix variable product calculations.
* Make shipping insurance on checkout optional.
= 4.2.1 – Jul 29, 2020
* Remove delivery date selection from checkout.
= 4.2.0 – Jul 25, 2020
* Add conditional free shipping feature.
* Add custom label and location for suburb area field.
* Fix shipment notifications.
* Fix parcel size, volume and weight calculations.
* Add parcel dimension configuration at both global and product levels.
* Add order id as WayBill reference.
* Add order notes for Parcel Perfect endpoint queries.
* Problem of variable products not calculating resolved with new methods.
* Adjust Waybill position and add clickable link in emails.
* Fix deprecated code warnings.
* Fix PHP missing index warnings.
* Fix collections submitted for the following day.
* Fix contact number is present where the name is supposed to go.
* Add option: If free shipping is active, remove all other shipping methods from checkout.
* Add option: Enable free shipping if selected products are in the cart.
* Add option: Enable free shipping if shipping total is a selected percentage of the total order value.
* Added VAT option for TCG shipping.
= 4.2.1 – November 28, 2020
* Change monolog to WC_Logger