For OpenCart 2.3, 3.0, 4.0 and 4.1
How it decides
- Every checkout gets a score from 0 to 100, worked out when the shopper reaches the payment step.
- Points are added when the same email or phone number refused an order before (a refused order counts up to three times), when the postcode is one where most orders are refused, when the same IP address refused before, when the order value is high (limit of your choice), and when the shopper is new and has no delivered order yet.
- Points are taken off for each delivered order of the same email (up to three), unless that email also refused an order.
- Emails, phone numbers (formatted any way: +44 7000 000002 and 07000000002 are the same person) and postcodes (SW1A 1AA and sw1a1aa) are compared in one normal form.
- At or above your level (default 50) Cash on Delivery is not offered. A second level marks orders as high risk in the history. Setting a level to 0 switches it off.
What you do
- Mark an order refused (the parcel came back) or delivered with one click on the module page, or by order number. Orders that reach order statuses you choose are learned from automatically.
- Import your earlier Cash on Delivery orders with one button so the module knows your history from day one.
- Blocklist: an email, phone number, postcode or IP address on the list never gets Cash on Delivery, whatever its score.
- The history shows every order with the score it had, what was decided, and its outcome.
- All weights, levels, the value limit and the order statuses are settings. Turn the whole module on or off without uninstalling.
For the shopper
- Cash on Delivery simply does not appear in the list of payment methods, and a short notice at the bottom of the checkout asks for an online payment method. The notice has your colour and can be switched off.
- Every text the shopper sees is in a language file in the module; copy it into another language folder and translate the right side.
- If the shopper changes the email after the list was shown and tries to confirm with Cash on Delivery, the order is refused.
Works with
- The shop's own checkout on every supported version, and Supreme One Page Checkout (tested with both on 2.3, 3.0, 4.0 and 4.1).
For the store owner
- One admin page with the history, the blocklist and the settings. Uninstall removes the settings and the events and keeps the history and the blocklist, so a reinstall picks up where you left off.
- The module adds no cart total and changes no core file.
Notes
- The module can only learn from orders you mark or whose status you list as refused or delivered. Nothing is learned until you do one of the two (the import button helps).
- Orders in a listed status are picked up when an order is placed or when you open the module page.
- It withholds Cash on Delivery; it does not block the order itself. Online payments stay possible.
- The identity is what the shopper types in: a brand new email and phone number have no history. The new-customer points exist for that case.
- Behind a proxy or CDN that hides visitors' IP addresses, the IP rule sees everyone as one address: set its points to 0.
- The shopper can try 20 different emails, phone numbers or postcodes per visit; after that the module no longer answers about new ones.
- Only the payment method with the code "cod" (Cash on Delivery) is withheld.