Supported Integrations
Supported Integrations

Dangerous Goods (DG) Handling Setup for Live Pricing – WooCommerce

This guide explains how to configure Dangerous Goods (DG) handling so it is correctly applied during live pricing for your store.

Step 1: Add Custom Product Meta Fields

For each product that requires DG handling, create the following custom fields:

  1. MachShip DG ID
  2. DG Amount

These fields must be added at the product level in WooCommerce.

Step 2: Populate DG Information on Products

For applicable products:

  • MachShip DG ID
    Enter the MachShip DG ID, which can be obtained from the DG record in MachShip (this is visible in the DG URL).
  • DG Amount (Optional)
    Enter the DG amount specific to that product.

Important Notes:

  • The DG Amount field is optional
  • Using the DG Amount allows:
    • One DG record to be reused across multiple products
    • Different DG quantities to be applied per product
  • If you prefer:
    • Create one DG record per product in MachShip
    • Omit the DG Amount field and rely entirely on MachShip’s DG configuration

Live Pricing Behaviour (WooCommerce)

After configuration:

  • DG data is retrieved during the live pricing calculation
  • The correct DG surcharge is included in the returned shipping rates