-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Versão 1.2.7
- Loading branch information
Showing
12 changed files
with
141 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,52 @@ | ||
# WooCommerce NFe (NFe.io) | ||
|
||
# Woo NFe | ||
WooCommerce NFe é uma extensão do WooCommerce para emitir notas fiscais utilizando a API do NFe.io. | ||
|
||
Woo NFe é uma extensão do WooCommerce para emitir notas fiscais utilizando a API do NFe.io | ||
## Requisitos | ||
|
||
* PHP >= 5.5 | ||
* WP >= 4.9 | ||
* WooCommerce >= 3.3.5 | ||
|
||
## Instalação | ||
|
||
1. Vá ao menu *Plugins* e clique *Adicionar Novo*. | ||
2. Pesquise por *WooCommerce NFe*. | ||
3. Clique em *Instalar Agora*. | ||
4. Ativar o plugin | ||
|
||
Ou você pode colocar este plugin no diretório wp-content/plugins e ativá-lo. | ||
|
||
## Changelog ## | ||
|
||
### 1.0 | ||
* Initial release | ||
|
||
### 1.0.1 | ||
* Fix issue #6 | ||
|
||
### 1.0.2 | ||
* Added trigger to issue invoices on specific status | ||
* Fixed when issue invoices federal tax number must be only numbers | ||
|
||
### 1.0.3 | ||
* Added support to issue invoices without all address fields filled | ||
|
||
### 1.0.4 | ||
* Fix support to issue invoices without all address fields filled | ||
* Fix trigger to issue invoices on specific status | ||
|
||
### 1.2.5 | ||
* Added option to require an address when issuing an invoice. | ||
* Fixed a bug where zero orders could be issued. | ||
* Added notice in the order list when a order is zeroed. | ||
* Added php require header on the readme.txt | ||
* Fixed a bug that gave fatal error when on before PHP 5.5 versions. | ||
* Fix - load_textdomain first from WP_LANG_DIR before load_plugin_textdomain | ||
* Tweak - Tweak load_plugin_textdomain to be relative - this falls back to WP_LANG_DIR automatically. Can prevent "open_basedir restriction in effect". | ||
|
||
### 1.2.6 | ||
* Fixing client-php folder conflict. | ||
|
||
### 1.2.7 | ||
* Fixing how we verify the type of customer to output its information on the NFe receipt. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,36 @@ | ||
<?php | ||
|
||
// Exit if accessed directly | ||
// Exit if accessed directly. | ||
defined( 'ABSPATH' ) || exit; | ||
|
||
if ( ! class_exists('WC_NFe_Emails') ) : | ||
/** | ||
* WooCommerce NFe Email Class | ||
* | ||
* @author NFe.io | ||
* @package WooCommerce_NFe/Class/WC_NFe_Emails | ||
* @version 1.0.1 | ||
*/ | ||
class WC_NFe_Emails { | ||
|
||
/** | ||
* WooCommerce NFe Email Class | ||
* | ||
* @author NFe.io | ||
* @package WooCommerce_NFe/Class/WC_NFe_Emails | ||
* @version 1.0.1 | ||
* Bootstraps the class and hooks required actions & filters. | ||
*/ | ||
class WC_NFe_Emails { | ||
|
||
/** | ||
* Bootstraps the class and hooks required actions & filters. | ||
*/ | ||
public static function init() { | ||
add_action( 'woocommerce_email_classes', __CLASS__ . '::add_emails', 10, 1 ); | ||
} | ||
public static function init() { | ||
add_action( 'woocommerce_email_classes', __CLASS__ . '::add_emails', 10, 1 ); | ||
} | ||
|
||
/** | ||
* Add NFe's email classes. | ||
*/ | ||
public static function add_emails( $email_classes ) { | ||
require_once( 'emails/class-nfe-email-receipt-issued.php' ); | ||
/** | ||
* Add NFe's email classes. | ||
* | ||
* @param array $email_classes Email classes. | ||
*/ | ||
public static function add_emails( $email_classes ) { | ||
require_once( 'emails/class-nfe-email-receipt-issued.php' ); | ||
|
||
$email_classes['WC_NFe_Email_Receipt_Issued'] = new WC_NFe_Email_Receipt_Issued(); | ||
$email_classes['WC_NFe_Email_Receipt_Issued'] = new WC_NFe_Email_Receipt_Issued(); | ||
|
||
return $email_classes; | ||
} | ||
return $email_classes; | ||
} | ||
} | ||
|
||
WC_NFe_Emails::init(); | ||
|
||
endif; | ||
WC_NFe_Emails::init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<?php | ||
|
||
/** | ||
* PHPUnit bootstrap file | ||
* | ||
|
Oops, something went wrong.