Description
ByteCraftDZ Cash on Delivery for WooCommerce adds a customizable, one-page Cash on Delivery (COD) order form to WooCommerce product pages. It is designed for stores serving customers in Algeria and supports location-based delivery options, simple and variable products, and WooCommerce order creation.
ByteCraftDZ Cash on Delivery for WooCommerce is an independent plugin developed by ByteCraftDZ. It is not affiliated with, endorsed by, or sponsored by WooCommerce or Automattic.
Follow ByteCraftDZ on Facebook for updates and support: facebook.com/bytecraftdz
Français
Formulaire de paiement à la livraison (COD) pour WooCommerce, en une page, avec choix de la wilaya et de la commune, tarifs de livraison par wilaya (domicile ou stop-desk), produits simples et variables, et panier multi-produits. Conçu pour les boutiques en Algérie.
Plugin indépendant développé par ByteCraftDZ. Non affilié à WooCommerce ni à Automattic.
Facebook : facebook.com/bytecraftdz
العربية
نموذج طلب الدفع عند الاستلام (COD) لـ WooCommerce، في صفحة واحدة، مع اختيار الولاية والبلدية، وأسعار توصيل حسب الولاية (إلى المنزل أو مكتب الشحن)، ودعم المنتجات البسيطة والمتغيرة، وسلة متعددة المنتجات. مصمم للمتاجر في الجزائر.
إضافة مستقلة طورتها ByteCraftDZ. غير تابعة لـ WooCommerce أو Automattic.
فيسبوك: facebook.com/bytecraftdz
Main features
- Display an order form on product pages using configurable placement, or insert one using a shortcode.
- Support simple and variable WooCommerce products, including variation selection and stock availability.
- Choose between 69 wilayas or the previous 58-wilaya list; display names in Arabic, French, or both.
- Provide built-in commune selections and edit commune data in the admin settings.
- Offer home delivery and stop-desk delivery, with selectable delivery destinations.
- Optionally configure delivery fees by wilaya, delivery company, and commune exceptions; support a free-shipping threshold.
- Enable a multi-product cart mode with a COD form for the entire cart.
- Customize form fields, labels, placeholders, field order, and additional fields.
- Customize colors, layout, button appearance and texts; configure RTL or LTR layout.
- Create standard WooCommerce orders, with configurable order status and post-submission behavior.
- Configure anti-spam protections, including a honeypot and submission limits.
- Fight fake orders: see each customer’s order history and risk level on the order screen, block a phone in one click, block phones automatically after refused orders, and detect duplicate orders.
- Quantity offers per product, such as “2 for 4500 DA”, with the saving shown to the customer.
- Abandoned orders: optionally save the phone number of customers who fill the form without submitting it, with a consent notice, so you can call them back. Entries are deleted automatically after a set number of days.
- Courier integration: send orders to Yalidine, Guepex, ZR Express, NOEST, Maystro or an Ecotrack platform (DHD, Anderson, World Express and others) in one click or automatically, and update orders from the delivery status.
- Google Sheets sync for call-center teams, and CSV export of orders.
- French and Arabic translations included.
- Opt in to Facebook Pixel and TikTok Pixel conversion events if those pixels are already installed on the store.
- Import or export plugin settings as JSON.
- Disable the form for individual products.
Shortcodes
Use the following shortcode to render a form in a product context:
[dzcod_form]
To display a form for a specific product:
[dzcod_form product_id="123"]
For the multi-product COD cart form:
[dzcod_cart]
Replace 123 with the relevant WooCommerce product ID.
Theme customization
To override the form template, copy templates/form.php from the plugin into yourtheme/bytecraftdz-cod/form.php and customize the copy.
Requirements
- WordPress 6.0 or later.
- PHP 7.4 or later.
- WooCommerce installed and active. WooCommerce 7.0 or later is specified by the plugin.
External services
Facebook Pixel and TikTok Pixel events are disabled by default. Store administrators can enable each integration under ByteCraftDZ COD > General > Tracking pixels. The plugin uses the pixel already installed by the store when the corresponding option is enabled.
- Facebook Pixel (Meta) receives
Purchaseevents for successful orders andAddToCartevents when customers add products through the plugin’s cart mode. Event data includes the value, currency, and product ID. Purchase events include an order-based event ID for deduplication. Meta Privacy Policy - TikTok Pixel receives
CompletePaymentevents for successful orders andAddToCartevents when customers add products through the plugin’s cart mode. Event data includes the value, currency, and product ID. TikTok Privacy Policy
Courier APIs (off by default)
When the store administrator chooses a courier under ByteCraftDZ COD > Courier API and enters their own API credentials, the plugin connects to that courier only:
- When an order is sent (by the administrator, by a bulk action, or automatically on the status chosen in the settings), the plugin sends the order number, customer name, phone numbers, address, wilaya, commune, amount to collect, product names, delivery type, customer note and parcel weight, to create the parcel.
- Every hour, and when the administrator clicks “Refresh status”, the plugin sends the tracking numbers of open parcels to read their delivery status.
- To match communes and stop-desks, the plugin reads the courier’s lists of wilayas, communes and stop-desks.
Services, depending on the courier chosen:
- Yalidine:
api.yalidine.app– yalidine.app - Guepex:
api.guepex.app– guepex.app - ZR Express (Procolis):
procolis.com– procolis.com - NOEST Express:
app.noest-dz.com– noest-dz.com - Maystro Delivery:
orders-management.maystro-delivery.com,backend.maystro-delivery.com– maystro-delivery.com - Ecotrack platforms (DHD, Anderson, World Express, Conexlog and others): the platform address entered by the administrator, such as
anderson-ecommerce.ecotrack.dz– ecotrack.dz
The terms of use and privacy policy of each courier are part of the delivery contract between the store and the courier.
Google Sheets (off by default)
When the administrator turns on the Google Sheets sync and enters the URL of their own Google Apps Script web app, the plugin sends each new order (and, if chosen, each status change) to that URL: order number, date, status, customer name, phone numbers, wilaya, commune, address, delivery type, delivery company, products, quantity, shipping, total, note and tracking number. The data goes to the administrator’s own spreadsheet on Google servers (script.google.com). Google Terms of Service, Google Privacy Policy
Abandoned orders (off by default)
When turned on, the form saves the phone number and the details already typed (name, wilaya, commune, address, product) on the store’s own website when a customer types a valid phone number, even if the order is not submitted. Nothing is sent to an external service. A consent notice is shown under the form, entries are deleted when the customer places the order or after the number of days set by the administrator, and they can be erased with the WordPress Erase Personal Data tool using the phone number.
Installation
- Install and activate WooCommerce.
- In WordPress, navigate to Plugins > Add New Plugin > Upload Plugin.
- Upload the ByteCraftDZ Cash on Delivery for WooCommerce ZIP file and activate the plugin.
- Open ByteCraftDZ COD in the WordPress admin menu.
- Configure the form, wilayas, communes, delivery methods, and other settings.
- Open a WooCommerce product page to verify that the form appears, or insert a shortcode where needed.
- Place a test order and check the resulting WooCommerce order before accepting live orders.
FAQ
-
Does the plugin require WooCommerce?
-
Yes. WooCommerce must be installed and active.
-
Can I use the form with variable products?
-
Yes. The plugin supports simple and variable WooCommerce products.
-
Does it support Algerian wilayas and communes?
-
Yes. The plugin includes selectable wilaya data and built-in commune data. You can choose the 69-wilaya set or the previous 58-wilaya set.
-
Can I customize delivery prices?
-
Yes. Optional delivery pricing supports rates by wilaya, multiple delivery companies, home and stop-desk rates, and commune-specific exceptions. Delivery pricing is disabled by default.
-
Can customers order more than one product?
-
Yes. The optional cart mode supports multiple products in a single WooCommerce order using the
[dzcod_cart]shortcode. -
Can I change the appearance of the form?
-
Yes. The plugin includes controls for text, colors, layout and fields. Extra styles can be added with the WordPress Additional CSS tool.
-
Does the form create WooCommerce orders?
-
Yes. Submitted forms create WooCommerce orders, with a configurable order status.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“ByteCraftDZ Cash on Delivery for WooCommerce” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “ByteCraftDZ Cash on Delivery for WooCommerce” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.1.1
- Quantity offers now apply in the cart: a line gets the biggest offer that fits its quantity, and the rest is charged at the normal price.
- Fixed abandoned orders that came back right after the customer placed the order.
- Abandoned cart orders now list the products in the cart.
1.1.0
- Added a “Customer risk” box on the order screen with the customer’s order history (delivered, refused or cancelled, in progress) and a risk level.
- Added a one-click button to block or unblock the customer’s phone from the order screen.
- Added automatic blocking of a phone after a set number of refused or cancelled orders (off by default).
- Added duplicate order detection (same phone and product within a set number of hours), with flag or refuse options.
- Added quantity offers per product (“2 for 4500 DA”), priced on the server.
- Added abandoned order capture with a consent notice, automatic cleanup and personal data erasure.
- Added courier integration for Yalidine, Guepex, ZR Express, NOEST, Maystro and Ecotrack platforms: send orders, print the Yalidine label, and update orders from the delivery status every hour.
- Added Google Sheets sync and CSV export of orders.
- Added French and Arabic translations.
- API credentials are no longer included in the settings export.
1.0.1
- Added ByteCraftDZ credit and Facebook link to the plugin header and admin settings page.
- Added French and Arabic plugin descriptions.
1.0.0
- Initial release.
- One-page COD order form for WooCommerce.
- Algerian wilaya and commune selectors, optional delivery pricing, variable-product support, and customizable form settings.