1. Docs
  2. Guides
  3. Advanced Features

Advanced Features

Discover the advanced features of ACOD Cash on Delivery that help you create more powerful and customized COD fee rules for your Shopify store.

Dynamic Fee Calculation

Create sophisticated fee calculations based on multiple conditions:

// Dynamic Fee Rule Example
{
  "name": "Dynamic Tiered Fees",
  "conditions": {
    "logic": "AND",
    "rules": [
      {
        "field": "cart_total",
        "operator": "greaterThan",
        "value": 1000
      },
      {
        "field": "shipping_method",
        "operator": "in",
        "value": ["express", "standard"]
      },
      {
        "logic": "OR",
        "rules": [
          {
            "field": "customer_tag",
            "operator": "contains",
            "value": "VIP"
          },
          {
            "field": "purchase_count",
            "operator": "greaterThan",
            "value": 5
          }
        ]
      }
    ]
  },
  "fee": {
    "type": "percentage",
    "value": 1.5
  }
}

Location-Based Rules

Set up granular location-based fees using different geographic levels:

// Location Rules Configuration
{
  "locationRules": [
    {
      "name": "Metro Cities",
      "type": "cities",
      "locations": ["Mumbai", "Delhi", "Bangalore", "Chennai", "Kolkata"],
      "fee": {
        "type": "flat",
        "amount": 40
      }
    },
    {
      "name": "North India",
      "type": "states",
      "locations": ["Punjab", "Haryana", "Uttar Pradesh", "Rajasthan"],
      "fee": {
        "type": "flat",
        "amount": 50
      }
    },
    {
      "name": "Pin Code Range",
      "type": "pincode_range",
      "locations": [
        { "start": "400001", "end": "400099" },
        { "start": "110001", "end": "110099" }
      ],
      "fee": {
        "type": "flat",
        "amount": 30
      }
    }
  ]
}

Custom Checkout Messages

Create dynamic checkout messages based on COD selection:

// Checkout Message Configuration
{
  "checkoutMessages": {
    "standard": "A ₹{{fee}} COD fee will be applied to your order",
    "freeThreshold": "Orders above ₹{{threshold}} qualify for free COD!",
    "unavailable": "COD is not available for your location. Please select another payment method.",
    "conditionalMessages": [
      {
        "condition": {
          "field": "cart_total",
          "operator": "lessThan",
          "value": 500
        },
        "message": "Add items worth ₹{{difference}} more to qualify for COD"
      }
    ]
  }
}

Advanced Analytics

Access detailed analytics about your COD orders:

  • Conversion rates for COD vs. other payment methods
  • Geographic distribution of COD orders
  • Average order value for COD purchases
  • COD cancellation and return rates
  • Fee revenue generated by different rule types

Shipping Method Integration

Configure COD availability and fees based on shipping methods:

// Shipping Method Integration
{
  "shippingMethodRules": [
    {
      "method": "Express Delivery",
      "codAvailable": true,
      "fee": {
        "type": "flat",
        "amount": 30
      }
    },
    {
      "method": "Standard Delivery",
      "codAvailable": true,
      "fee": {
        "type": "flat",
        "amount": 50
      }
    },
    {
      "method": "Economy Delivery",
      "codAvailable": false,
      "message": "COD is not available with Economy Delivery"
    }
  ]
}

Customer Segmentation

Apply different COD fees based on customer segments:

// Customer Segment Rules
{
  "customerSegments": [
    {
      "name": "New Customers",
      "condition": {
        "orderCount": 0
      },
      "fee": {
        "type": "flat",
        "amount": 100
      }
    },
    {
      "name": "Regular Customers",
      "condition": {
        "orderCount": { "min": 1, "max": 5 }
      },
      "fee": {
        "type": "flat",
        "amount": 50
      }
    },
    {
      "name": "VIP Customers",
      "condition": {
        "orderCount": { "min": 6 },
        "totalSpent": { "min": 10000 }
      },
      "fee": {
        "type": "flat",
        "amount": 0
      }
    }
  ]
}

Note

Some advanced features may require a premium subscription to ACOD Cash on Delivery. Contact our support team to upgrade your plan and access these features.

Next Steps

To learn more about configuring these features, check out: