Stokzone for WooCommerce
Connect your WooCommerce store to Stokzone.
Install in
Stokzone for WooCommerce connects your WooCommerce store to Stokzone and adds
the shipment tracking fields that WooCommerce core does not provide.
What it does
- One-click connection. The plugin creates the WooCommerce REST API key for
you; you never have to copyck_/cs_values by hand. - Carrier, tracking number and tracking link fields. WooCommerce core has no
such fields. The plugin adds them to the order edit screen, to order emails and
to the customer’s “My account > Orders” page. - Tracking link generation. Builds a tracking link from the tracking number
for Yurtiçi, Aras, Sürat, PTT, MNG, UPS, FedEx and DHL. - WooCommerce REST support. Tracking data is returned in the order REST
response as astokzone_kargofield. - Province > district > neighbourhood > postcode for Turkey. WooCommerce ships
the 81 provinces but has no district or neighbourhood level. Choosing a province
lists its districts, choosing a district lists its neighbourhoods and choosing a
neighbourhood fills in the postcode. The district is saved as the order’s City.
Works on the classic checkout (searchable dropdowns) and on the Checkout block
(suggestions as you type). Not used for addresses outside Turkey. - Invoice details (individual / corporate). A customer type choice on the
checkout. Individual (default): optional Turkish ID number, validated when
filled in. Corporate: company name, tax office and tax number are required and
the tax number is validated. Shown on the order screen and in order emails (the
ID number is masked in emails) and sent to Stokzone with the order. - Outdated PHP warning. If the server runs a PHP version that no longer
receives security updates, a dismissible admin notice says so. Nothing is
blocked.
What the Stokzone service does (not this plugin)
Once connected, the Stokzone service works with your store through the
WooCommerce REST API using the key this plugin created. These features run on
Stokzone’s side and need a Stokzone subscription:
- Creating and updating products in your store, including variable products
with their variations. - Keeping stock and prices in sync. Stokzone keeps prices with VAT included; it
reads your store’s “prices entered with tax” setting and converts accordingly,
and does not send a price when it cannot read that setting. - Importing orders, including the invoice details entered at checkout.
- Writing the carrier, tracking number and tracking link back to the order; this
plugin then shows them to you and your customer.
Compatibility
- Compatible with WooCommerce HPOS (High-Performance Order Storage).
- Compatible with the WooCommerce Cart & Checkout blocks.
- Older WooCommerce versions are supported: the plugin detects capabilities,
not versions, and falls back to the classic approach when newer APIs are absent.
Requirements
Your store must be served over HTTPS. WooCommerce refuses API key
authentication over plain HTTP connections, so a store without an SSL
certificate cannot be connected. The plugin tells you this up front instead of
failing later with a misleading error.
Third-party service
This plugin connects to an external service called Stokzone. Stokzone is a
paid subscription service that manages marketplace, shipping, accounting and
fulfilment integrations from a single panel. A Stokzone account is required to
use the connection features of this plugin.
- Service: https://stokzone.com
- Terms of Use: https://stokzone.com/kullanim-kosullari
- Privacy Policy: https://stokzone.com/gizlilik
What data is sent, and where?
The plugin makes no external requests at all until you press “Connect to
Stokzone” and approve the request in your Stokzone account. After you connect,
the following is transmitted:
- Your site address and your WordPress / WooCommerce / PHP versions (for
compatibility purposes), - The WooCommerce REST API key created by the plugin (so that Stokzone can access
your store data), - A randomly generated signing key, unique to this installation (so that requests
coming from Stokzone can be verified).
Order, product and stock data is read by Stokzone through WooCommerce’s own
REST API. This includes the invoice details (Turkish ID number, or company name,
tax office and tax number) that the customer enters at checkout, so that Stokzone
can issue the invoice.
The Turkish province / district / neighbourhood / postcode list is bundled with
the plugin; the checkout does not contact Stokzone or any other service to
load it.
You can end the connection at any time using “Disconnect”. Doing so deletes the
API key that was created and clears the locally stored secrets.
Carrier tracking links
To turn a tracking number into a clickable “Track shipment” link, the plugin
builds a URL that points to the relevant carrier’s own public tracking page. The
plugin itself does not send any request to these carriers or share any data
with them: it only assembles the link on your own site. It is you or your
customer who chooses to click it, and only then does the carrier’s website open
in the browser, with the tracking number carried as a URL parameter.
Tracking links can be generated for these carriers, each an independent company
with its own terms of service and privacy policy available on its site:
- Yurtiçi Kargo — https://www.yurticikargo.com
- Aras Kargo — https://www.araskargo.com.tr
- Sürat Kargo — https://www.suratkargo.com.tr
- PTT Kargo — https://www.ptt.gov.tr
- MNG Kargo — https://www.mngkargo.com.tr
- UPS — https://www.ups.com
- FedEx — https://www.fedex.com
- DHL — https://www.dhl.com
No link is built (and no carrier URL is used) unless an order has both a tracking
number and a recognised carrier.
Written by Joobi from the project's own listing. See the source page
0.2.0
- Tested with WordPress 7.2 and WooCommerce 11.3 (HPOS on/off, classic and block
checkout) on PHP 7.4 to 8.6. - New: province > district > neighbourhood > postcode selection for Turkish
addresses (classic checkout and Checkout block). - New: individual / corporate invoice details at checkout with Turkish ID and tax
number validation; stored on the order only. - New: dismissible notice when the server’s PHP no longer gets security updates.
- Classic checkout layout fixes (customer type, searchable dropdowns); settings
use the standard WordPress buttons. - Fix: settings checkboxes could not be switched off.
- No stored data is removed or renamed.
Older versions: see changelog.txt.
Follow this listing's changes (Atom feed)