Installation and setup
Requirements
Section titled “Requirements”- CS-Cart or Multi-Vendor 4.17.2 or later.
- Administrator access to the store’s admin panel.
- A Nilvera account with the e-Fatura and e-Arsiv modules and API access. Create the API key in the Nilvera portal (API Definitions > New Key); the key is shown only once. Nilvera has a separate test environment with its own key.
- At least one invoice series for e-Fatura and one for e-Arsiv in the Nilvera portal (three letters or digits each, for example EFT and EAR). Nilvera numbers the invoices from these series.
- A cron job on your server (see step 8).
Install the add-on
Section titled “Install the add-on”- Download the
kv_efatura_tr-<version>.zippackage from your Kavio Labs or CS-Cart Marketplace account. - In the admin panel, open Add-ons > Manage add-ons.
- Click the gear button and choose Manual installation, then upload the archive.
- Find Turkey e-Fatura and e-Arsiv in the list and make sure its status is Active.
- Enter your license key under Settings > License (Kavio Labs downloads) and click Check now.
Connect Nilvera
Section titled “Connect Nilvera”- Open Orders > Turkey e-invoices and the Connection tab.
- Choose Test mode. Enter your company tax number (VKN or TCKN) and the test API key. Enter the e-Fatura and e-Arsiv series codes.
- Click Save and test: a green message with your company name from Nilvera means the key works and belongs to that tax number. The seller on every invoice is read from your Nilvera company record, so keep that record correct in Nilvera.
- Switch to Live mode and enter the live key only after a successful test; test again.
- Open the add-on settings (Add-ons > Manage add-ons > Turkey e-Fatura and e-Arsiv > Settings) and choose the statuses that issue and reverse invoices (see Configuration).
- Create a profile field for the buyer’s tax number (Administration > Customers > Profile fields, type Input field, shown on checkout) and select it in the settings. Without it every web order is an e-Arsiv consumer invoice, and you can enter the number by hand on the order page.
- Make the store able to issue in TRY: either the primary currency is TRY, or TRY exists as a currency of the store (Administration > Currencies; it may be hidden) with a correct rate.
- Add the cron job from the settings page (Cron section), every minute is fine. Overlapping runs are prevented.
Multi-Vendor
Section titled “Multi-Vendor”By default the marketplace owner connects one account and issues the invoices for the whole order (Marketplace owner mode on). Switch it off to let each vendor connect their own Nilvera account in the vendor panel; each vendor then invoices their own part of an order. See Configuration.
Update
Section titled “Update”- Upload the new package the same way (Upgrade Center or manual upload). Your settings, credentials, invoices and data are kept.
- The add-on adds missing tables and settings by itself on the first request after the update.
See CHANGELOG for what changed in each version.
Uninstall
Section titled “Uninstall”Open Add-ons > Manage add-ons, click the add-on’s gear button and choose Uninstall. By default the invoices, their numbers and UUIDs, the connection and the settings are kept, because invoices are tax records; installing the add-on again continues where it stopped. To delete everything for good, switch on Permanently delete all invoice data on uninstall in the settings before you uninstall (the invoices stay in Nilvera).