Kybernaut IC DIC

Popis

Adds Company & VAT numbers (IČO & DIČ & IČ DPH) to WooCommerce billing fields and verifies if data are correct. Verification is based either on ARES and VIES database or only on mathmeatics. When billing to Czech republic, you can autofill fields Company, VAT number, Address, City, and Postcode based on IČO.

NEW Enhanced settings for:

  • Enable toggle switch to show/hide input fields („Buying as a company?“)
  • Move Country field above the „Buying as a company?“ toggle

Main functionality:

  • for CZ as billing country
    • ARES and VIES verification (or mathematicaly verifies IČO and DIČ)
    • ARES autofill (fields Company, VAT number, Address, City, and Postcode) based on IČO
  • for SK as billing country
    • VIES DIČ valiadtion (or just validate format of values)
  • for EU countries as billing country
    • VIES DIČ valiadtion
  • adds fields to IČO & DIČ & IČ DPH WooCommerce frontend: Checkout and My Acount page
  • allows edits from administration (backend):
    • Users -> Joe Doe (Edit) -> Billing address of the customer
    • E-shop-WooCommerce -> Orders-> Order (show(edit)) -> Billing Information (edit)

Compatibility

Requirements

  • PHP 5.4 and above
  • SoapClient PHP library for VIES validation (ask your hosting)

Credits

If you want to help, join the Github.

Obrázky

  • Checkout validation of IČO.

Inštalácia

  1. Just follow the standard WordPress plugin installation procedere.
  2. Go to WooCommerce->Settings->General and scroll down for Kybernaut IČO DIČ options.

Časté otázky

I want to display values in Woo iDoklad by Vladislav Musílek (Toret)

Go to Toret plugins -> Woo iDoklad and scroll to Přiřazení polí pro IČ a DIČ and fill following values:
IČ: _billing_ic
DIČ: _billing_dic
SK DIČ: _billing_dic_dph

I want to style ARES verified fields

U can use css selectors .kbnt-validating, .kbnt-ok, and .kbnt-wrong for example:
.kbnt-wrong input {
color: #e2401c;
}
.kbnt-ok input {
color: #0f834d;
}
.kbnt-validating input{
color: #3d9cd2;
}

I want to display fields in the same row, one besides other (half width)

You can use this snippet to modify the classes of outputed fileds, just add them to your functions.php

add_filter( 'woolab_icdic_class_billing_ic', 'my_theme_class_billing_ic', 10, 1 );
function my_theme_class_billing_ic ( $class ) {
    return array('form-row-first');
}

add_filter( 'woolab_icdic_class_billing_dic', 'my_theme_class_billing_dic', 10, 1 );
function my_theme_class_billing_dic ( $class ) {
    return array('form-row-last');
}

I want to update customers meta when I change IČO or DIČ value within order edit.

You can use this snippet to update customers data when you edit order, just add them to your functions.php

add_filter( 'woolab_icdic_update_user_meta', '__return_true' );

I want to use the latest files. How can I do this?

Use the GitHub Repo rather than the WordPress Plugin. Do as follows:

  1. If you haven’t already done: Install git

  2. in the console cd into Your ‚wp-content/plugins´ directory

  3. type git clone https://github.com/vyskoczilova/kybernaut-ic-dic or better type git fork https://github.com/vyskoczilova/kybernaut-ic-dic

  4. If you want to update to the latest files (be careful, might be untested on Your WP-Version) type `git pull´.

I found a bug. Where should I post it?

I personally prefer GitHub, to keep things straight. The plugin code is here: GitHub
But you may use the WordPress Forum as well.

I found a bug and fixed it. How can I contribute?

Either post it on GitHub or—if you are working on a cloned repository—send me a pull request.

Recenzie

24. júla 2020
Dakujem za paradny plugin a zaroven dakujem za skvelu, rychlu komunikaciu. Len tak dalej!
27. mája 2019
Měl jsem problém (můj) - plugin nekomunikoval - ihned jsem obdržel na FB zprávu. Moje chyba - stačilo vypnout a zapnout v nastavení kontrolu oproti ARESu a vše funguje.
Prečítať všetkých 11 recenzií

Prispievatelia a vývojári

“Kybernaut IC DIC” je softvér s otvoreným zdrojovým kódom. Do tohto pluginu prispeli nasledujúci ľudia.

Prispievatelia

„Kybernaut IC DIC“ bol preložený do 2 jazykov. Ďakujeme prekladateľom za ich príspevky.

Preložiť „Kybernaut IC DIC“ do vašho jazyka.

Máte záujem o vývoj?

Prehľadávajte zdrojový kód, preskúmajte SVN repozitár, alebo sa prihláste na odber vývojárskeho logu cez RSS.

Zoznam zmien

1.5.0 (2020-07-20)

  • Fix: Slovak DIC validation fix, #22– thanks to @morvy
  • Feature: Show/Hide toggle functionality, #24@morvy
  • Maintenance: Update language files and dependencies

1.4.0 (2019-09-05)

  • Fix: Strip spaces from ICO, DIC, DIC DPH fields (#8)
  • Fix: Validation of Slovak DIČ in Vies (#9)
  • Fix: Trigger update_checkout JS when address loaded
  • Performance: Don’t validate IČO in ARES when the value has not been changed, called after ‚donetyping‘
  • Maintenance: Update node_modules

1.3.3 (2018-11-18)

  • Compatibility with WC 3.5.1 which has „fixed“ old ordering of checkout fields #21763

1.3.2 (2018-08-14)

  • Fix: Use number for address in ARES when no correct land registry and hous number are not filled (@pryx)

1.3.1 (2018-06-03)

  • Fix: Show „IČ DPH“ on „Manually add new order“ screen when „Slovakia“ selected
  • Fix: Correct validation „IČ DPH“ (with SK prefix) and „DIČ“ (without SK prefix)
  • Fix: Remove the WC nonce check (already checked in WC itself)
  • Fix: Problem with loading plugin options
  • Added „How to“ for Woo iDoklad to readme.txt
  • Update .pot source file.

1.3.0 (2018-02-21)

  • Fix: Display „VAT reg. no.“ field in Order Billing-edit.
  • Fix: Compatibility with WooCommerce Sequential Order Numbers (#3)
  • Performance: CSS in admin.
  • Feature: Validation for Czech Business ID (via ARES)
  • Feature: Autofill for fields such as Company, VAT number, Address, City, and Postcode based on Czech Business ID (via ARES)
  • Feature: Validation of VAT (via VIES)
  • Added: Plugin settings to WooCommerce->Settings->General
  • Fields moved after „company“ field.

1.2.0 (2018-02-08)

  • Fixed: Editing Business ID and VAT values within order in admin backend
  • Feature: Texts in plugin only in English (Czech as a translation)
  • Feature: Added woolab_icdic_class_{field_name} filters to customize class of added billing input fields
  • Feature: Added woolab_icdic_update_user_meta filter to enable updating user meta on order details edit
  • Added: Links to GitHub and Write a review to plugins page.
  • Added: Basic SK support (based on this article)

1.1.0 (2017-04-05)

  • Fix: „Order properties should not be accessed directly.“ Added support for WooCommerce 3.0.

1.0.3 (2017-02-1)

  • Fix: display fields in My Account frontend page.
  • Add: support for WooCommerce PDF Invoices & Packing Slips.

1.0.2.1 (2016-12-15)

  • Feature: Created the GIT repository

1.0.2 (2016-09-05)

  • Fix: the term „IČ“ to „IČO“.

1.0.1 (2016-07-18)

  • Feature: Checks billing country and validates IC & DIC if is set to CZ

1.0.0 (2016-07-16)

  • Initial release