Linux 软件免费装
Banner图

DZ COD Order Form

开发者 mrdhia
更新时间 2026年11月7日 08:52
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

cash on delivery algeria wilaya yalidine zr express

下载

1.5.3

详情介绍:

Most Algerian online stores sell with cash on delivery (COD). Customers do not want a cart, an account or a long checkout: they want to type their name and phone, pick their wilaya and commune, and confirm. This plugin puts that form directly on the product page and creates a normal WooCommerce order. Features Developers Filters: dzcod_free_delivery, dzcod_ecotrack_hosts, dzcod_leads_per_hour, dzcod_meta_api_version, dzcod_locations, dzcod_is_valid_phone, dzcod_antifraud_result, dzcod_sheets_row, dzcod_auto_insert_for_product, dzcod_client_ip, dzcod_courier_providers, dzcod_courier_parcel, dzcod_courier_payload, dzcod_courier_logo, dzcod_offers. Actions: dzcod_before_order_save, dzcod_order_created, dzcod_order_confirmed, dzcod_parcel_created, dzcod_parcel_status, dzcod_lead_recovered, dzcod_upsell_accepted. Source code, build-free (no compiled files), and issues: https://github.com/xthegodfatherx/dz-cod-order-form

安装:

  1. Install and activate WooCommerce.
  2. Upload the plugin and activate it.
  3. Go to WooCommerce → DZ COD Form and set your delivery prices.
  4. Open any product: the form is there. Or place [dzcod_form product_id="123"] / the Elementor widget wherever you want.

常见问题:

Where do the wilaya and commune names come from?

From the geoalgeria dataset (MIT License), which follows the 69-wilaya administrative division. A copy of its license is in data/LICENSE-geoalgeria.txt.

How do I connect Google Sheets?

Follow the steps on the "Google Sheets & export" tab. The script to paste is linked there; it is published in the plugin's GitHub repository: google-apps-script/Code.gs. Opening the link only displays the script; nothing is sent.

Which delivery companies are supported?

Yalidine, ZR Express, and any courier that runs on the Ecotrack platform (for example DHD, Conexlog/UPS, MSM Go, Rex Livraison, EcoRapide Express): choose "Ecotrack", then paste your courier's Ecotrack address and API token. Maystro and Noest are planned.

How do I import delivery prices from Google Sheets?

On the Delivery prices tab, download the template, open it in Google Sheets (File → Import), edit the home and desk columns, then Share → "Anyone with the link can view" and paste the link. Click "Import from sheet now", or tick the daily sync. You can also export your current prices to start from them.

Can I show the delivery companies' logos?

The plugin shows a coloured badge with each company's initials, because company logos are trademarks we cannot ship. To show your own logo files, use the dzcod_courier_logo filter: add_filter( 'dzcod_courier_logo', function ( $url, $key ) { return 'yalidine' === $key ? 'https://your-site/logos/yalidine.png' : $url; }, 10, 2 );

Does the abandoned-order feature store personal data?

Yes: the name, phone, wilaya, commune and address a visitor typed, plus the product. It is stored only in your own WordPress database, is shown only to shop managers, is deleted automatically after the number of days you set (30 by default), and is removed completely when you delete the plugin. A short notice under the form tells visitors their number may be saved; you can edit it or switch the feature off in General settings. Check what your local data-protection law requires.

How do quantity offers work?

Edit a product and fill in the "COD form — quantity offers" box: quantity, then either a fixed pack price or a % discount. The form then shows packs instead of the quantity selector. The pack with a badge is selected by default.

How should I set up the confirmation workflow?

In General settings set "New order status" to Pending payment and "When an order is confirmed by phone" to Processing. Your team works through WooCommerce → Confirm orders. If automatic sending is set to "When an order becomes Processing", confirmed orders go straight to your delivery company, and with "Count a purchase when the order is confirmed" Meta and TikTok only learn from real buyers.

What happens when a parcel is refused?

Parcel tracking marks it Returned and moves the order to "Returned (refused)". The phone number's history is updated, and if the customer refuses again they can be put on hold or refused automatically (Anti-fraud tab).

How do I give free delivery on a product?

Edit the product and use "Free delivery for this product" in the "COD form" box: free home delivery, free stop desk, or both, optionally only for some wilayas (for example 16, 09, 35). You can also give free delivery on a specific pack in the quantity offers, or above an order amount in Delivery prices.

How can I ask for a new feature?

Go to WooCommerce → Request a feature. It opens a pre-filled request on GitHub that you can review before posting. You can also vote 👍 on existing requests there.

Is Noest supported?

Not yet. Noest's API is not publicly documented; it is on the roadmap. Contributions are welcome on GitHub.

A parcel was refused because of the commune name

Delivery companies sometimes spell communes differently. Open the order, correct the commune in the shipping address, save, and click Send again. The exact error from the company is shown on the order.

Does it replace the WooCommerce checkout?

No. It creates standard WooCommerce orders with the Cash on delivery payment method, so your existing order management, emails and delivery plugins keep working.

更新日志:

1.5.3 1.5.2 1.5.1 1.5.0 1.4.0 1.3.1 1.3.0 1.2.0 1.1.0 1.0.1 1.0.0