Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[*] MO : new version of avalaratax module with the verification of th…

…e address
  • Loading branch information...
commit 51f1488abf16b4e2efa64460a8ca69e3d1d90a68 1 parent 9d7c774
mBertholino mBertholino authored
Showing with 10,061 additions and 10,055 deletions.
  1. +149 −146 avalaratax/CacheTools.php
  2. +19 −0 avalaratax/ajax.php
  3. +1,435 −1,441 avalaratax/avalaratax.php
  4. +2 −2 avalaratax/config.xml
  5. +66 −66 avalaratax/css/avalara.css
  6. +28 −28 avalaratax/de.php
  7. +74 −74 avalaratax/es.php
  8. +78 −78 avalaratax/fr.php
  9. +35 −35 avalaratax/index.php
  10. +73 −73 avalaratax/it.php
  11. +105 −105 avalaratax/override/classes/Cart.php
  12. +35 −35 avalaratax/override/classes/index.php
  13. +45 −68 avalaratax/override/classes/tax/Tax.php
  14. +35 −35 avalaratax/override/classes/tax/index.php
  15. +32 −26 avalaratax/override/controllers/front/AddressController.php
  16. +40 −40 avalaratax/override/controllers/front/AuthController.php
  17. +35 −35 avalaratax/override/controllers/front/index.php
  18. +35 −35 avalaratax/override/controllers/index.php
  19. +35 −35 avalaratax/override/index.php
  20. +90 −90 avalaratax/sdk/AvaTax.php
  21. +50 −50 avalaratax/sdk/classes/ATConfig.class.php
  22. +54 −54 avalaratax/sdk/classes/ATObject.class.php
  23. +21 −21 avalaratax/sdk/classes/AddCustomer.class.php
  24. +33 −33 avalaratax/sdk/classes/AddCustomerRequest.class.php
  25. +19 −19 avalaratax/sdk/classes/AddCustomerResult.class.php
  26. +153 −153 avalaratax/sdk/classes/AddressServiceSoap.class.php
  27. +40 −40 avalaratax/sdk/classes/AddressType.class.php
  28. +76 −76 avalaratax/sdk/classes/AdjustTaxRequest.class.php
  29. +261 −261 avalaratax/sdk/classes/AdjustTaxResult.class.php
  30. +84 −84 avalaratax/sdk/classes/ApplyPaymentRequest.class.php
  31. +20 −20 avalaratax/sdk/classes/ApplyPaymentResult.class.php
  32. +193 −193 avalaratax/sdk/classes/AvaCertSvc.class.php
  33. +167 −167 avalaratax/sdk/classes/AvalaraAddress.class.php
  34. +82 −82 avalaratax/sdk/classes/AvalaraCustomer.class.php
  35. +84 −84 avalaratax/sdk/classes/AvalaraMessage.class.php
  36. +33 −33 avalaratax/sdk/classes/AvalaraSoapClient.class.php
  37. +36 −36 avalaratax/sdk/classes/BaseResult.class.php
  38. +21 −21 avalaratax/sdk/classes/BatchSvc/AuditMessage.class.php
  39. +75 −75 avalaratax/sdk/classes/BatchSvc/AvaTaxBatchSvc.php
  40. +45 −45 avalaratax/sdk/classes/BatchSvc/AvalaraMessage.class.php
  41. +33 −33 avalaratax/sdk/classes/BatchSvc/AvalaraProfile.class.php
  42. +29 −29 avalaratax/sdk/classes/BatchSvc/BaseResult.class.php
  43. +94 −94 avalaratax/sdk/classes/BatchSvc/Batch.class.php
  44. +21 −21 avalaratax/sdk/classes/BatchSvc/BatchDelete.class.php
  45. +21 −21 avalaratax/sdk/classes/BatchSvc/BatchDeleteResponse.class.php
  46. +21 −21 avalaratax/sdk/classes/BatchSvc/BatchFetch.class.php
  47. +21 −21 avalaratax/sdk/classes/BatchSvc/BatchFetchResponse.class.php
  48. +25 −25 avalaratax/sdk/classes/BatchSvc/BatchFetchResult.class.php
  49. +59 −59 avalaratax/sdk/classes/BatchSvc/BatchFile.class.php
  50. +21 −21 avalaratax/sdk/classes/BatchSvc/BatchFileDelete.class.php
  51. +21 −21 avalaratax/sdk/classes/BatchSvc/BatchFileDeleteResponse.class.php
  52. +21 −21 avalaratax/sdk/classes/BatchSvc/BatchFileFetch.class.php
  53. +21 −21 avalaratax/sdk/classes/BatchSvc/BatchFileFetchResponse.class.php
  54. +25 −25 avalaratax/sdk/classes/BatchSvc/BatchFileFetchResult.class.php
  55. +21 −21 avalaratax/sdk/classes/BatchSvc/BatchFileSave.class.php
  56. +21 −21 avalaratax/sdk/classes/BatchSvc/BatchFileSaveResponse.class.php
  57. +21 −21 avalaratax/sdk/classes/BatchSvc/BatchFileSaveResult.class.php
  58. +21 −21 avalaratax/sdk/classes/BatchSvc/BatchProcess.class.php
  59. +32 −32 avalaratax/sdk/classes/BatchSvc/BatchProcessRequest.class.php
  60. +21 −21 avalaratax/sdk/classes/BatchSvc/BatchProcessResponse.class.php
  61. +17 −17 avalaratax/sdk/classes/BatchSvc/BatchProcessResult.class.php
  62. +21 −21 avalaratax/sdk/classes/BatchSvc/BatchSave.class.php
  63. +21 −21 avalaratax/sdk/classes/BatchSvc/BatchSaveResponse.class.php
  64. +25 −25 avalaratax/sdk/classes/BatchSvc/BatchSaveResult.class.php
  65. +181 −181 avalaratax/sdk/classes/BatchSvc/BatchSvc.class.php
  66. +32 −32 avalaratax/sdk/classes/BatchSvc/DeleteRequest.class.php
  67. +17 −17 avalaratax/sdk/classes/BatchSvc/DeleteResult.class.php
  68. +53 −53 avalaratax/sdk/classes/BatchSvc/FetchRequest.class.php
  69. +31 −31 avalaratax/sdk/classes/BatchSvc/FilterRequest.class.php
  70. +21 −21 avalaratax/sdk/classes/BatchSvc/FilterResult.class.php
  71. +21 −21 avalaratax/sdk/classes/BatchSvc/IsAuthorized.class.php
  72. +21 −21 avalaratax/sdk/classes/BatchSvc/IsAuthorizedResponse.class.php
  73. +25 −25 avalaratax/sdk/classes/BatchSvc/IsAuthorizedResult.class.php
  74. +21 −21 avalaratax/sdk/classes/BatchSvc/Ping.class.php
  75. +21 −21 avalaratax/sdk/classes/BatchSvc/PingResponse.class.php
  76. +34 −34 avalaratax/sdk/classes/BatchSvc/PingResult.class.php
  77. +21 −21 avalaratax/sdk/classes/BatchSvc/SeverityLevel.class.php
  78. +35 −35 avalaratax/sdk/classes/BatchSvc/index.php
  79. +57 −57 avalaratax/sdk/classes/BoundaryLevel.class.php
  80. +61 −61 avalaratax/sdk/classes/CancelCode.class.php
  81. +58 −58 avalaratax/sdk/classes/CancelTaxRequest.class.php
  82. +54 −54 avalaratax/sdk/classes/CancelTaxResult.class.php
  83. +50 −50 avalaratax/sdk/classes/CertificateStatus.class.php
  84. +50 −50 avalaratax/sdk/classes/CertificateUsage.class.php
  85. +45 −45 avalaratax/sdk/classes/CommitTaxRequest.class.php
  86. +51 −51 avalaratax/sdk/classes/CommitTaxResult.class.php
  87. +31 −31 avalaratax/sdk/classes/CommunicationMode.class.php
  88. +56 −56 avalaratax/sdk/classes/DetailLevel.class.php
  89. +85 −85 avalaratax/sdk/classes/DocStatus.class.php
  90. +87 −87 avalaratax/sdk/classes/DocumentType.class.php
  91. +62 −62 avalaratax/sdk/classes/DynamicSoapClient.class.php
  92. +30 −30 avalaratax/sdk/classes/Enum.class.php
  93. +147 −147 avalaratax/sdk/classes/ExemptionCertificate.class.php
  94. +22 −22 avalaratax/sdk/classes/GetExemptionCertificates.class.php
  95. +50 −50 avalaratax/sdk/classes/GetExemptionCertificatesRequest.class.php
  96. +26 −26 avalaratax/sdk/classes/GetExemptionCertificatesResult.class.php
  97. +51 −51 avalaratax/sdk/classes/GetTaxHistoryRequest.class.php
  98. +71 −71 avalaratax/sdk/classes/GetTaxHistoryResult.class.php
  99. +478 −478 avalaratax/sdk/classes/GetTaxRequest.class.php
  100. +261 −261 avalaratax/sdk/classes/GetTaxResult.class.php
  101. +23 −23 avalaratax/sdk/classes/InitiateExemptCert.class.php
  102. +45 −45 avalaratax/sdk/classes/InitiateExemptCertRequest.class.php
  103. +25 −25 avalaratax/sdk/classes/InitiateExemptCertResult.class.php
  104. +79 −79 avalaratax/sdk/classes/IsAuthorizedResult.class.php
  105. +37 −37 avalaratax/sdk/classes/Jurisdiction.class.php
  106. +73 −73 avalaratax/sdk/classes/JurisdictionType.class.php
  107. +252 −252 avalaratax/sdk/classes/Line.class.php
  108. +73 −73 avalaratax/sdk/classes/PingResult.class.php
  109. +72 −72 avalaratax/sdk/classes/PostTaxRequest.class.php
  110. +53 −53 avalaratax/sdk/classes/PostTaxResult.class.php
  111. +87 −87 avalaratax/sdk/classes/ReconcileTaxHistoryRequest.class.php
  112. +110 −110 avalaratax/sdk/classes/ReconcileTaxHistoryResult.class.php
  113. +41 −41 avalaratax/sdk/classes/RequestType.class.php
  114. +50 −50 avalaratax/sdk/classes/ReviewStatus.class.php
  115. +101 −101 avalaratax/sdk/classes/SearchTaxHistoryResult.class.php
  116. +48 −48 avalaratax/sdk/classes/ServiceMode.class.php
  117. +37 −37 avalaratax/sdk/classes/SeverityLevel.class.php
  118. +195 −195 avalaratax/sdk/classes/TaxDetail.class.php
  119. +130 −130 avalaratax/sdk/classes/TaxLine.class.php
  120. +46 −46 avalaratax/sdk/classes/TaxOverride.class.php
  121. +21 −21 avalaratax/sdk/classes/TaxOverrideType.class.php
  122. +150 −150 avalaratax/sdk/classes/TaxRequest.class.php
  123. +303 −303 avalaratax/sdk/classes/TaxServiceSoap.class.php
  124. +33 −33 avalaratax/sdk/classes/TaxType.class.php
  125. +32 −32 avalaratax/sdk/classes/TextCase.class.php
  126. +477 −477 avalaratax/sdk/classes/ValidAddress.class.php
  127. +191 −191 avalaratax/sdk/classes/ValidateRequest.class.php
  128. +84 −84 avalaratax/sdk/classes/ValidateResult.class.php
  129. +35 −35 avalaratax/sdk/classes/index.php
  130. +35 −35 avalaratax/sdk/classes/wsdl/index.php
  131. +35 −35 avalaratax/sdk/index.php
  132. +14 −14 avalaratax/states.php
  133. +10 −3 klarnaprestashop/klarnaprestashop.php
295 avalaratax/CacheTools.php
View
@@ -1,146 +1,149 @@
-<?php
-/*
-* 2007-2011 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA <contact@prestashop.com>
-* @copyright 2007-2011 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-class CacheTools
-{
- public static function checkProductCache($ids_product, $region, Cart $cart)
- {
- $result = Db::getInstance()->ExecuteS('SELECT ac.`tax_rate`, ac.`update_date`
- FROM `'._DB_PREFIX_.'avalara_product_cache` ac
- WHERE ac.`id_product` IN ('.pSQL($ids_product).') AND ac.`region` = \''.pSQL($region).'\' AND ac.`id_address` = '.(int)$cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')});
-
- if (count($result) == count($cart->getProducts()))
- {
- // Compare date/time
- date_default_timezone_set(@date_default_timezone_get());
- $date2 = time();
- foreach ($result as $line)
- if (abs($date2 - strtotime($line['update_date'])) > 3600)
- return true;
- return false;
- }
- return true;
- }
-
- /**
- * @brief Check the Carrier Cache
- *
- * @param cart Cart object
- *
- * @return True if the cache expired, false otherwise
- */
- public static function checkCarrierCache(Cart $cart)
- {
- $result = Db::getInstance()->getRow('SELECT `cart_hash`, `update_date` FROM `'._DB_PREFIX_.'avalara_carrier_cache`
- WHERE `id_cart` = '.(int)$cart->id.' AND `id_carrier` = '.(int)$cart->id_carrier);
-
- if (!$result)
- return true;
-
- $tmp = array('id_carrier' => (int)$cart->id_carrier, 'id_address' => (int)$cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')});
- foreach ($cart->getProducts() as $product)
- $tmp[] = array('id_product' => (int)$product['id_product'], 'id_product_attribute' => (int)$product['id_product_attribute'], 'quantity' => (int)$product['quantity']);
-
- if ($result['cart_hash'] != md5(serialize($tmp)))
- return true;
-
- // Compare date/time
- date_default_timezone_set(@date_default_timezone_get());
- if (abs(time() - strtotime($result['update_date'])) > 3600)
- return true;
-
- return false;
- }
-
- public static function updateProductsTax(AvalaraTax $avalaraModule, Cart $cart, $id_address, $region, $taxable = true)
- {
- $p = array();
- foreach ($cart->getProducts() as $product)
- {
- $avalaraProducts = array('id_product' => (int)$product['id_product'],
- 'name' => $product['name'],
- 'description_short' => $product['description_short'],
- 'quantity' => 1, // This is a per product, so qty is 1
- 'total' => (float)$product['price'],
- 'tax_code' => $taxable ? $avalaraModule->getProductTaxCode((int)$product['id_product']) : 'NT');
-
- $p[] = $avalaraProducts;
-
- // Call Avalara
- $getTaxResult = $avalaraModule->getTax(array($avalaraProducts), array('type' => 'SalesOrder', 'DocCode' => 1, 'cart' => $cart, 'taxable' => $taxable), $id_address);
-
- // Store the taxrate in cache
- // If taxrate exists (but it's outdated), then update, else insert (REPLACE INTO)
- if (isset($getTaxResult['TotalTax']) && (float)$getTaxResult['TotalTax'] >= 0 && isset($getTaxResult['TotalAmount']) && $getTaxResult['TotalAmount'])
- Db::getInstance()->Execute('REPLACE INTO `'._DB_PREFIX_.'avalara_product_cache` (`id_product`, `tax_rate`, `region`, `update_date`, `id_address`)
- VALUES ('.(int)$product['id_product'].', '.(float)($getTaxResult['TotalTax'] * 100 / $getTaxResult['TotalAmount']).',
- \''.($region ? pSQL($region) : '').'\', \''.date('Y-m-d H:i:s').'\', '.(int)$cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')}.')');
- }
- return $p;
- }
-
- public static function updateCarrierTax(AvalaraTax $avalaraModule, Cart $cart, $id_address, $taxable = true)
- {
- /** Update cache only if it is outdated */
- if (self::checkCarrierCache($cart))
- {
- $avalaraProducts = array();
- foreach ($cart->getProducts() as $product)
- $avalaraProducts[] = array('id_product' => (int)$product['id_product'],
- 'name' => $product['name'],
- 'description_short' => $product['description_short'],
- 'quantity' => (int)$product['quantity'],
- 'total' => (float)$product['price'],
- 'tax_code' => $taxable ? $avalaraModule->getProductTaxCode((int)$product['id_product']) : 'NT');
- if (count($avalaraProducts))
- {
- // Calculate the carrier taxes
- $getTaxResult = $avalaraModule->getTax($avalaraProducts, array('cart' => $cart), (int)$id_address);
- $amount = (float)(isset($getTaxResult['TaxLines']['Shipping']['GetTax']) ? (float)$getTaxResult['TaxLines']['Shipping']['GetTax'] : 0);
- $total_tax = (float)(isset($getTaxResult['TotalTax']) ? $getTaxResult['TotalTax'] : 0);
- $total_amount = (float)(isset($getTaxResult['TotalAmount']) ? $getTaxResult['TotalAmount'] : 0);
- $tax_rate = (float)(($total_amount != 0) ? ($total_tax * 100 / $total_amount) : 0);
-
- $tmp = array('id_carrier' => (int)$cart->id_carrier, 'id_address' => (int)$cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')});
- foreach ($cart->getProducts() as $product)
- $tmp[] = array('id_product' => (int)$product['id_product'], 'id_product_attribute' => (int)$product['id_product_attribute'], 'quantity' => (int)$product['quantity']);
-
- Db::getInstance()->Execute('REPLACE INTO `'._DB_PREFIX_.'avalara_carrier_cache` (`id_carrier`, `tax_rate`, `amount`, `update_date`, `id_cart`, `cart_hash`)
- VALUES ('.(int)$cart->id_carrier.',
- '.(float)$tax_rate.',
- '.(float)$amount.',
- \''.date('Y-m-d H:i:s').'\',
- '.(int)$cart->id.',
- \''.md5(serialize($tmp)).'\')');
- }
- }
- }
-
- public static function getCarrierTaxAmount(Cart $cart)
- {
- return (float)Db::getInstance()->getValue('SELECT `amount` FROM `'._DB_PREFIX_.'avalara_carrier_cache` WHERE `id_cart` = '.(int)$cart->id.' AND `id_carrier` = '.(int)$cart->id_carrier);
- }
-}
+<?php
+/*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/afl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA <contact@prestashop.com>
+* @copyright 2007-2011 PrestaShop SA
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+class CacheTools
+{
+ public static function checkProductCache($ids_product, $region, Cart $cart)
+ {
+ $result = Db::getInstance()->ExecuteS('SELECT ac.`tax_rate`, ac.`update_date`
+ FROM `'._DB_PREFIX_.'avalara_product_cache` ac
+ WHERE ac.`id_product` IN ('.pSQL($ids_product).') AND ac.`region` = \''.pSQL($region).'\' AND ac.`id_address` = '.(int)$cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')});
+
+ if (count($result) == count($cart->getProducts()))
+ {
+ // Compare date/time
+ date_default_timezone_set(@date_default_timezone_get());
+ $date2 = time();
+ foreach ($result as $line)
+ if (abs($date2 - strtotime($line['update_date'])) > 3600)
+ return true;
+ return false;
+ }
+ return true;
+ }
+
+ /**
+ * @brief Check the Carrier Cache
+ *
+ * @param cart Cart object
+ *
+ * @return True if the cache expired, false otherwise
+ */
+ public static function checkCarrierCache(Cart $cart)
+ {
+ $result = Db::getInstance()->getRow('SELECT `cart_hash`, `update_date` FROM `'._DB_PREFIX_.'avalara_carrier_cache`
+ WHERE `id_cart` = '.(int)$cart->id.' AND `id_carrier` = '.(int)$cart->id_carrier);
+
+ if (!$result)
+ return true;
+
+ $tmp = array('id_carrier' => (int)$cart->id_carrier, 'id_address' => (int)$cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')});
+ foreach ($cart->getProducts() as $product)
+ $tmp[] = array('id_product' => (int)$product['id_product'], 'id_product_attribute' => (int)$product['id_product_attribute'], 'quantity' => (int)$product['quantity']);
+
+ if ($result['cart_hash'] != md5(serialize($tmp)))
+ return true;
+
+ // Compare date/time
+ date_default_timezone_set(@date_default_timezone_get());
+ if (abs(time() - strtotime($result['update_date'])) > 3600)
+ return true;
+
+ return false;
+ }
+
+ public static function updateProductsTax(AvalaraTax $avalaraModule, Cart $cart, $id_address, $region, $taxable = true)
+ {
+ $p = array();
+ foreach ($cart->getProducts() as $product)
+ {
+ $avalaraProducts = array('id_product' => (int)$product['id_product'],
+ 'name' => $product['name'],
+ 'description_short' => $product['description_short'],
+ 'quantity' => 1, // This is a per product, so qty is 1
+ 'total' => (float)$product['price'],
+ 'tax_code' => $taxable ? $avalaraModule->getProductTaxCode((int)$product['id_product']) : 'NT');
+
+ $p[] = $avalaraProducts;
+
+ // Call Avalara
+ $getTaxResult = $avalaraModule->getTax(array($avalaraProducts), array('type' => 'SalesOrder', 'DocCode' => 1, 'cart' => $cart, 'taxable' => $taxable), $id_address);
+
+ // Store the taxrate in cache
+ // If taxrate exists (but it's outdated), then update, else insert (REPLACE INTO)
+ if (isset($getTaxResult['TotalTax']) && (float)$getTaxResult['TotalTax'] >= 0 && isset($getTaxResult['TotalAmount']) && $getTaxResult['TotalAmount'])
+ {
+ Db::getInstance()->Execute('REPLACE INTO `'._DB_PREFIX_.'avalara_product_cache` (`id_product`, `tax_rate`, `region`, `update_date`, `id_address`)
+ VALUES ('.(int)$product['id_product'].', '.(float)($getTaxResult['TotalTax'] * 100 / $getTaxResult['TotalAmount']).',
+ \''.($region ? pSQL($region) : '').'\', \''.date('Y-m-d H:i:s').'\', '.(int)$cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')}.')');
+ }
+ }
+
+ return $p;
+ }
+
+ public static function updateCarrierTax(AvalaraTax $avalaraModule, Cart $cart, $id_address, $taxable = true)
+ {
+ /** Update cache only if it is outdated */
+ if (self::checkCarrierCache($cart))
+ {
+ $avalaraProducts = array();
+ foreach ($cart->getProducts() as $product)
+ $avalaraProducts[] = array('id_product' => (int)$product['id_product'],
+ 'name' => $product['name'],
+ 'description_short' => $product['description_short'],
+ 'quantity' => (int)$product['quantity'],
+ 'total' => (float)$product['price'],
+ 'tax_code' => $taxable ? $avalaraModule->getProductTaxCode((int)$product['id_product']) : 'NT');
+ if (count($avalaraProducts))
+ {
+ // Calculate the carrier taxes
+ $getTaxResult = $avalaraModule->getTax($avalaraProducts, array('cart' => $cart), (int)$id_address);
+ $amount = (float)(isset($getTaxResult['TaxLines']['Shipping']['GetTax']) ? (float)$getTaxResult['TaxLines']['Shipping']['GetTax'] : 0);
+ $total_tax = (float)(isset($getTaxResult['TotalTax']) ? $getTaxResult['TotalTax'] : 0);
+ $total_amount = (float)(isset($getTaxResult['TotalAmount']) ? $getTaxResult['TotalAmount'] : 0);
+ $tax_rate = (float)(($total_amount != 0) ? ($total_tax * 100 / $total_amount) : 0);
+
+ $tmp = array('id_carrier' => (int)$cart->id_carrier, 'id_address' => (int)$cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')});
+ foreach ($cart->getProducts() as $product)
+ $tmp[] = array('id_product' => (int)$product['id_product'], 'id_product_attribute' => (int)$product['id_product_attribute'], 'quantity' => (int)$product['quantity']);
+
+ Db::getInstance()->Execute('REPLACE INTO `'._DB_PREFIX_.'avalara_carrier_cache` (`id_carrier`, `tax_rate`, `amount`, `update_date`, `id_cart`, `cart_hash`)
+ VALUES ('.(int)$cart->id_carrier.',
+ '.(float)$tax_rate.',
+ '.(float)$amount.',
+ \''.date('Y-m-d H:i:s').'\',
+ '.(int)$cart->id.',
+ \''.md5(serialize($tmp)).'\')');
+ }
+ }
+ }
+
+ public static function getCarrierTaxAmount(Cart $cart)
+ {
+ return (float)Db::getInstance()->getValue('SELECT `amount` FROM `'._DB_PREFIX_.'avalara_carrier_cache` WHERE `id_cart` = '.(int)$cart->id.' AND `id_carrier` = '.(int)$cart->id_carrier);
+ }
+}
19 avalaratax/ajax.php
View
@@ -34,12 +34,28 @@
include(_PS_MODULE_DIR_.'avalaratax/avalaratax.php');
$avalaraModule = new AvalaraTax();
+if (!$avalaraModule->active)
+ die;
if (!Validate::isLoadedObject($avalaraModule) || !$avalaraModule->active)
die('{"hasError" : true, "errors" : ["Error while loading Avalara module"]}');
$timeout = Configuration::get('AVALARATAX_TIMEOUT');
ini_set('max_execution_time', (int)$timeout > 0 ? (int)$timeout : 120);
+if (Tools::getValue('ajax') == 'validateAddress')
+{
+ $result = $avalaraModule->fixPOST();
+ if (isset($result['ResultCode']) && $result['ResultCode'] == 'Error')
+ {
+ if (isset($result['Messages']['Summary']))
+ foreach ($result['Messages']['Summary'] as $error)
+ die(Tools::safeOutput($error));
+ else
+ die(Tools::displayError('This address cannot be submitted'));
+ }
+ die('1');
+}
+
// Check if the AJAX call is valid
if (!isset($_POST['id_cart']) || !isset($_POST['id_address']) || !isset($_POST['ajax']) || !isset($_POST['token']) ||
!(int)$_POST['id_cart'] || !(int)$_POST['id_address'] || $_POST['ajax'] != 'getProductTaxRate' ||
@@ -87,6 +103,9 @@
if (!$pc && !$cc)
die('{"hasError":false, "cached_tax":true}');
+$pc = 1;
+$cc = 1;
+
if ($pc)
CacheTools::updateProductsTax($avalaraModule, $cart, (int)$_POST['id_address'], $region, $taxable);
if ($cc)
2,876 avalaratax/avalaratax.php
View
1,435 additions, 1,441 deletions not shown
4 avalaratax/config.xml
View
@@ -2,11 +2,11 @@
<module>
<name>avalaratax</name>
<displayName><![CDATA[Avalara - AvaTax]]></displayName>
- <version><![CDATA[3.1.1]]></version>
+ <version><![CDATA[3.2.1]]></version>
<description><![CDATA[Sales Tax is complicated. AvaTax makes it easy.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[billing_invoicing]]></tab>
<is_configurable>1</is_configurable>
<need_instance>1</need_instance>
<limited_countries></limited_countries>
-</module>
+</module>
132 avalaratax/css/avalara.css
View
@@ -1,67 +1,67 @@
-.avalara-wrap { clear: both; margin: 0px auto; max-width: 1024px; min-width: 930px; overflow: hidden; }
-
-p.avalara-intro { clear: both; color: #999999; font-size: 18px; line-height: 22px; margin: 0px 0px 0px 0px; padding: 20px 0px 0px 400px; overflow: hidden; }
-a.avalara-logo { display: inline-block; float: left; margin: -20px 0px 0px -400px; }
-p.avalara-intro a.avalara-link { float: right; margin: 4px 0px 0px 30px; }
-
-.avalara-video { float: left; margin: 0px 0px 0px -400px; overflow: hidden; position: relative; width: 350px; }
-.avalara-content { border-bottom: #FF9933 solid 1px; border-top: #FF9933 solid 1px; clear: both; margin: 20px 0px 15px 0px; padding: 15px 0px 15px 400px; overflow: hidden; }
-.avalara-content h3 { color: #999999; font-size: 20px; font-weight: normal; line-height: 20px; margin: 0px 0px 15px 0px; }
-.avalara-content p { color: #555555; font-size: 13px; line-height: 18px; margin-bottom: 15px; }
-
-.avalara-content ul { list-style: none; margin: 0px 0px 15px 0px; padding: 0px; }
-.avalara-content ul li { background: url(../img/bullet.gif) left 8px no-repeat; color: #999999; font-size: 15px; line-height: 24px; margin: 0px; padding: 0px 0px 0px 15px; }
-img.avatax-badge { float: right; margin: 5px 40px 0px 0px; }
-
-a.avalara-link {
- color: #FFF;
- display: inline-block;
- font-size: 14px;
- line-height: 14px;
- padding: 6px 10px;
- text-decoration: none;
- text-transform: uppercase;
- text-shadow: 1px 1px 1px #A95336;
- border: 1px solid #FF6633;
- -moz-border-radius:5px; border-radius:5px;
- background-color: #FF9933;
- background-image: linear-gradient(bottom, #FE8114 14%, #FF9933 57%, #FE8114 99%);
- background-image: -o-linear-gradient(bottom, #FE8114 14%, #FF9933 57%, #FE8114 99%);
- background-image: -moz-linear-gradient(bottom, #FE8114 14%, #FF9933 57%, #FE8114 99%);
- background-image: -webkit-linear-gradient(bottom, #FE8114 14%, #FF9933 57%, #FE8114 99%);
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.14, #FE8114), color-stop(0.57, #FF9933), color-stop(0.99, #FE8114));
-}
-a.avalara-link:hover {
- color: #FFF; text-decoration: none;
- text-shadow: 1px 1px 1px #A95336;
- background-color: #FF6633;
- background-image: none;
-}
-
-a.avalara-video-btn { display: block; height: 195px; position: relative; width: 360px; }
-img.video-icon { position: absolute; left: 149px; top: 64px; }
-.avatax-logo { margin-top: 35px;}
-
-form { margin: 0px 0px 14px 0px;}
-fieldset h4 { margin-top: 0px; }
-label { width: 160px; }
-.margin-form { padding-left: 175px; }
-input[type="text"] { width: 200px; }
-img.icon-connection { border-left: solid 1px #585A69; margin: 0px 2px 0px 20px; padding-left: 10px; vertical-align: middle; }
-.right-fieldset { float: right; text-align: center; width: 245px; }
-.right-fieldset p { text-align: left; }
-.left-form { padding-right: 285px; }
-.form-half { float: left; width: 50%; }
-.MR7 { margin-right: 7px; }
-.ML7 { margin-left: 7px; }
-.sep { border-top: solid 1px #CCCED7; clear: both; height: 1px; margin: 0px 0px 10px 0px; }
-.avalara-info { color: #7F7F7F; display: block; font-size: 0.85em; margin-bottom: 4px; }
-.reset-label fieldset h4 { margin-bottom: 0px; }
-.reset-label label { width: 300px; }
-.reset-label .margin-form { padding-left: 310px; }
-
-table.avalara-table { border: #CCCED7 solid 1px; background-color: #FFFFFF; color: #585A69; font-size: 12px; text-shadow: 0 1px 0 #FFFFFF; }
-table.avalara-table th { background-color: #F7FBFF; border-bottom: #CCCED7 solid 1px; padding: 5px 25px 5px 8px; text-align: left; }
-table.avalara-table td.avalaratax_column { font-weight: bold; }
-table.avalara-table td { border-bottom: #CCCED7 solid 1px; padding: 5px 25px 5px 8px; }
+.avalara-wrap { clear: both; margin: 0px auto; max-width: 1024px; min-width: 930px; overflow: hidden; }
+
+p.avalara-intro { clear: both; color: #999999; font-size: 18px; line-height: 22px; margin: 0px 0px 0px 0px; padding: 20px 0px 0px 400px; overflow: hidden; }
+a.avalara-logo { display: inline-block; float: left; margin: -20px 0px 0px -400px; }
+p.avalara-intro a.avalara-link { float: right; margin: 4px 0px 0px 30px; }
+
+.avalara-video { float: left; margin: 0px 0px 0px -400px; overflow: hidden; position: relative; width: 350px; }
+.avalara-content { border-bottom: #FF9933 solid 1px; border-top: #FF9933 solid 1px; clear: both; margin: 20px 0px 15px 0px; padding: 15px 0px 15px 400px; overflow: hidden; }
+.avalara-content h3 { color: #999999; font-size: 20px; font-weight: normal; line-height: 20px; margin: 0px 0px 15px 0px; }
+.avalara-content p { color: #555555; font-size: 13px; line-height: 18px; margin-bottom: 15px; }
+
+.avalara-content ul { list-style: none; margin: 0px 0px 15px 0px; padding: 0px; }
+.avalara-content ul li { background: url(../img/bullet.gif) left 8px no-repeat; color: #999999; font-size: 15px; line-height: 24px; margin: 0px; padding: 0px 0px 0px 15px; }
+img.avatax-badge { float: right; margin: 5px 40px 0px 0px; }
+
+a.avalara-link {
+ color: #FFF;
+ display: inline-block;
+ font-size: 14px;
+ line-height: 14px;
+ padding: 6px 10px;
+ text-decoration: none;
+ text-transform: uppercase;
+ text-shadow: 1px 1px 1px #A95336;
+ border: 1px solid #FF6633;
+ -moz-border-radius:5px; border-radius:5px;
+ background-color: #FF9933;
+ background-image: linear-gradient(bottom, #FE8114 14%, #FF9933 57%, #FE8114 99%);
+ background-image: -o-linear-gradient(bottom, #FE8114 14%, #FF9933 57%, #FE8114 99%);
+ background-image: -moz-linear-gradient(bottom, #FE8114 14%, #FF9933 57%, #FE8114 99%);
+ background-image: -webkit-linear-gradient(bottom, #FE8114 14%, #FF9933 57%, #FE8114 99%);
+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.14, #FE8114), color-stop(0.57, #FF9933), color-stop(0.99, #FE8114));
+}
+a.avalara-link:hover {
+ color: #FFF; text-decoration: none;
+ text-shadow: 1px 1px 1px #A95336;
+ background-color: #FF6633;
+ background-image: none;
+}
+
+a.avalara-video-btn { display: block; height: 195px; position: relative; width: 360px; }
+img.video-icon { position: absolute; left: 149px; top: 64px; }
+.avatax-logo { margin-top: 35px;}
+
+form { margin: 0px 0px 14px 0px;}
+fieldset h4 { margin-top: 0px; }
+label { width: 160px; }
+.margin-form { padding-left: 175px; }
+input[type="text"] { width: 200px; }
+img.icon-connection { border-left: solid 1px #585A69; margin: 0px 2px 0px 20px; padding-left: 10px; vertical-align: middle; }
+.right-fieldset { float: right; text-align: center; width: 245px; }
+.right-fieldset p { text-align: left; }
+.left-form { padding-right: 285px; }
+.form-half { float: left; width: 50%; }
+.MR7 { margin-right: 7px; }
+.ML7 { margin-left: 7px; }
+.sep { border-top: solid 1px #CCCED7; clear: both; height: 1px; margin: 0px 0px 10px 0px; }
+.avalara-info { color: #7F7F7F; display: block; font-size: 0.85em; margin-bottom: 4px; }
+.reset-label fieldset h4 { margin-bottom: 0px; }
+.reset-label label { width: 300px; }
+.reset-label .margin-form { padding-left: 310px; }
+
+table.avalara-table { border: #CCCED7 solid 1px; background-color: #FFFFFF; color: #585A69; font-size: 12px; text-shadow: 0 1px 0 #FFFFFF; }
+table.avalara-table th { background-color: #F7FBFF; border-bottom: #CCCED7 solid 1px; padding: 5px 25px 5px 8px; text-align: left; }
+table.avalara-table td.avalaratax_column { font-weight: bold; }
+table.avalara-table td { border-bottom: #CCCED7 solid 1px; padding: 5px 25px 5px 8px; }
table.avalara-table td.last { border-bottom: none; }
56 avalaratax/de.php
View
@@ -1,28 +1,28 @@
-<?php
-
-global $_MODULE;
-$_MODULE = array();
-$_MODULE['<{avalaratax}prestashop>avalaratax_fea2a64a31f1513f4b2565ebfaff597b'] = 'Avalara – AvaTax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_ffea2d321be109fc7243cfeb515fe257'] = 'Nur für USA (Wählen Sie Ihr Bundesstaat)';
-$_MODULE['<{avalaratax}prestashop>avalaratax_63406c9482c644975f227cc93788e8fb'] = 'Wählen Sie Ihr Land';
-$_MODULE['<{avalaratax}prestashop>avalaratax_343618e9fcce53224cc7a47c2145c5e5'] = 'Welche Änderungen führt das Modul in meinem Shop durch?';
-$_MODULE['<{avalaratax}prestashop>avalaratax_254f642527b45bc260048e30704edb39'] = 'Konfiguration';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6910f753ce21ab6b256a2440296185df'] = 'AvaTax Credentials';
-$_MODULE['<{avalaratax}prestashop>avalaratax_2fcecaf04456ae2ceac826fd0ccaaf1c'] = 'Kontonummer';
-$_MODULE['<{avalaratax}prestashop>avalaratax_e6b391a8d2c4d45902a23a8b6585703d'] = 'URL';
-$_MODULE['<{avalaratax}prestashop>avalaratax_9daf1fb753b42c3cdc8f1d01669cd6d8'] = 'Einstellungen speichern';
-$_MODULE['<{avalaratax}prestashop>avalaratax_79ddd6cfbf01f63986f7b114ecc2ca95'] = 'Klicken Sie hier für einen Verbindungstest';
-$_MODULE['<{avalaratax}prestashop>avalaratax_dae8ace18bdcbcc6ae5aece263e14fe8'] = 'Optionen';
-$_MODULE['<{avalaratax}prestashop>avalaratax_783e8e29e6a8c3e22baa58a19420eb4f'] = 'Sekunden';
-$_MODULE['<{avalaratax}prestashop>avalaratax_640fd0cc0ffa0316ae087652871f4486'] = 'Minuten';
-$_MODULE['<{avalaratax}prestashop>avalaratax_004bf6c9a40003140292e97330236c53'] = 'Aktion';
-$_MODULE['<{avalaratax}prestashop>avalaratax_4bb3e6ea4b1aa93c3429e410129b4be4'] = 'Bestellstatus in Ihrem Shop';
-$_MODULE['<{avalaratax}prestashop>avalaratax_add3df7ab84caab59b62f89fdd35ac1f'] = 'Adresse Zeile 1:';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6a7b0d5f2f1354e398923d81b0e4d6ab'] = 'Adresse Zeile 2:';
-$_MODULE['<{avalaratax}prestashop>avalaratax_57d056ed0984166336b7879c2af3657f'] = 'Stadt';
-$_MODULE['<{avalaratax}prestashop>avalaratax_46a2a41cc6e552044816a2d04634545d'] = 'Staat';
-$_MODULE['<{avalaratax}prestashop>avalaratax_5e178542b85fb18ca3c459e9a95f4f2e'] = 'Postleitzahl';
-$_MODULE['<{avalaratax}prestashop>avalaratax_59716c97497eb9694541f7c3d37b1a4d'] = 'Land';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c888438d14855d7d96a2724ee9c306bd'] = 'Einstellungen aktualisiert';
-$_MODULE['<{avalaratax}prestashop>avalaratax_63a77eaf9f310dc5def6709c2887dcc4'] = 'Verbindungstest fehlgeschlagen.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_3b4f001aa4a4715a2449b8affb2eb3f5'] = 'Fehler aufgetreten';
+<?php
+
+global $_MODULE;
+$_MODULE = array();
+$_MODULE['<{avalaratax}prestashop>avalaratax_fea2a64a31f1513f4b2565ebfaff597b'] = 'Avalara – AvaTax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_ffea2d321be109fc7243cfeb515fe257'] = 'Nur für USA (Wählen Sie Ihr Bundesstaat)';
+$_MODULE['<{avalaratax}prestashop>avalaratax_63406c9482c644975f227cc93788e8fb'] = 'Wählen Sie Ihr Land';
+$_MODULE['<{avalaratax}prestashop>avalaratax_343618e9fcce53224cc7a47c2145c5e5'] = 'Welche Änderungen führt das Modul in meinem Shop durch?';
+$_MODULE['<{avalaratax}prestashop>avalaratax_254f642527b45bc260048e30704edb39'] = 'Konfiguration';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6910f753ce21ab6b256a2440296185df'] = 'AvaTax Credentials';
+$_MODULE['<{avalaratax}prestashop>avalaratax_2fcecaf04456ae2ceac826fd0ccaaf1c'] = 'Kontonummer';
+$_MODULE['<{avalaratax}prestashop>avalaratax_e6b391a8d2c4d45902a23a8b6585703d'] = 'URL';
+$_MODULE['<{avalaratax}prestashop>avalaratax_9daf1fb753b42c3cdc8f1d01669cd6d8'] = 'Einstellungen speichern';
+$_MODULE['<{avalaratax}prestashop>avalaratax_79ddd6cfbf01f63986f7b114ecc2ca95'] = 'Klicken Sie hier für einen Verbindungstest';
+$_MODULE['<{avalaratax}prestashop>avalaratax_dae8ace18bdcbcc6ae5aece263e14fe8'] = 'Optionen';
+$_MODULE['<{avalaratax}prestashop>avalaratax_783e8e29e6a8c3e22baa58a19420eb4f'] = 'Sekunden';
+$_MODULE['<{avalaratax}prestashop>avalaratax_640fd0cc0ffa0316ae087652871f4486'] = 'Minuten';
+$_MODULE['<{avalaratax}prestashop>avalaratax_004bf6c9a40003140292e97330236c53'] = 'Aktion';
+$_MODULE['<{avalaratax}prestashop>avalaratax_4bb3e6ea4b1aa93c3429e410129b4be4'] = 'Bestellstatus in Ihrem Shop';
+$_MODULE['<{avalaratax}prestashop>avalaratax_add3df7ab84caab59b62f89fdd35ac1f'] = 'Adresse Zeile 1:';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6a7b0d5f2f1354e398923d81b0e4d6ab'] = 'Adresse Zeile 2:';
+$_MODULE['<{avalaratax}prestashop>avalaratax_57d056ed0984166336b7879c2af3657f'] = 'Stadt';
+$_MODULE['<{avalaratax}prestashop>avalaratax_46a2a41cc6e552044816a2d04634545d'] = 'Staat';
+$_MODULE['<{avalaratax}prestashop>avalaratax_5e178542b85fb18ca3c459e9a95f4f2e'] = 'Postleitzahl';
+$_MODULE['<{avalaratax}prestashop>avalaratax_59716c97497eb9694541f7c3d37b1a4d'] = 'Land';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c888438d14855d7d96a2724ee9c306bd'] = 'Einstellungen aktualisiert';
+$_MODULE['<{avalaratax}prestashop>avalaratax_63a77eaf9f310dc5def6709c2887dcc4'] = 'Verbindungstest fehlgeschlagen.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_3b4f001aa4a4715a2449b8affb2eb3f5'] = 'Fehler aufgetreten';
148 avalaratax/es.php
View
@@ -1,74 +1,74 @@
-<?php
-
-global $_MODULE;
-$_MODULE = array();
-$_MODULE['<{avalaratax}prestashop>avalaratax_fea2a64a31f1513f4b2565ebfaff597b'] = 'Avalara - AvaTax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_ae8a727f868a8bbca075451c34154bfe'] = 'Impuesto son complicados. AvaTax hace que sea fácil.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6e25586fe78488784e764b8c7e523099'] = 'El módulo se ha instalado correctamente, pero el siguiente archivo(s) ya existen. Por favor, unir los archivo(s) de forma manual.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_53c2b2432a6d2b3e69298041223f2677'] = 'Los productos seleccionados fueron cancelados.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_580bc7347384fe1e3e2fdaf3930fdb00'] = 'Las impuestos para EE.UU. son sobrescritos por el módulo de Impuestos Avalara.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_2929b1675a0788e25b46dd923bf8d6f4'] = 'Código de Impuestos (Avalara)';
-$_MODULE['<{avalaratax}prestashop>avalaratax_453d38d159f47c6a572efab4dd8efb41'] = 'Mostrar los impuestos';
-$_MODULE['<{avalaratax}prestashop>avalaratax_56bb4e1f91985e7319c1d5cbe47096fe'] = 'La dirección que ha especificado ha sido validada.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_45d416b0d62f0e9579a08fac59a8fe48'] = 'El siguiente error se generó durante la validación de su dirección';
-$_MODULE['<{avalaratax}prestashop>avalaratax_ffea2d321be109fc7243cfeb515fe257'] = 'Seleccione su estado (si procede)';
-$_MODULE['<{avalaratax}prestashop>avalaratax_63406c9482c644975f227cc93788e8fb'] = 'Seleccione su país';
-$_MODULE['<{avalaratax}prestashop>avalaratax_76b5416ce9c34cc4d45e337db00a653a'] = 'Este módulo está diseñado para funcionar sólo en Estados Unidos de América y Canadá ';
-$_MODULE['<{avalaratax}prestashop>avalaratax_0173b19e723017c74ca1d34bc7e6515b'] = 'Cómo configurar el módulo de Impuesto Avalara :';
-$_MODULE['<{avalaratax}prestashop>avalaratax_3a0b9a760cae0b64183e2ed2b8b5789b'] = 'Rellene el número de cuenta, clave de licencia, y los campos de Código de la Empresa con los proporcionados por Avalara. ';
-$_MODULE['<{avalaratax}prestashop>avalaratax_aea420a9b05a0b1c5c1823e13cdf5c4b'] = 'Especifique su dirección de origen. Esto es de donde usted está enviando los productos (Tiene que ser una ';
-$_MODULE['<{avalaratax}prestashop>avalaratax_eb60dad6b9af2493998d6201caae1faa'] = 'DIRECCION VÁLIDA DE LOS ESTADOS UNIDOS';
-$_MODULE['<{avalaratax}prestashop>avalaratax_558e731e858fbdb4de1b01be9283e7c0'] = 'Objetivo del módulo:';
-$_MODULE['<{avalaratax}prestashop>avalaratax_a035358b6b8c497a70d2c5a838c27e6a'] = 'Este servicio basado en la nube es el más rápido, más fácil, manera más precisa y asequible para el cálculo de impuesto, gestión de certificados de exención, presentar declaraciones, y remitir los pagos a través de Norteamérica y más allá. ';
-$_MODULE['<{avalaratax}prestashop>avalaratax_343618e9fcce53224cc7a47c2145c5e5'] = '¿Qué modificaciones tiene el módulo de hacer en mi tienda?';
-$_MODULE['<{avalaratax}prestashop>avalaratax_227c1f6f0609c433fc3530aced1dd1a9'] = 'Tax.php y AddressController.php y AuthController.php serán sobreescritos. ';
-$_MODULE['<{avalaratax}prestashop>avalaratax_ed844b12d383390f1e8ac7796312390d'] = '[Ficha de pago -> Impuestos] y [Tab Pago -> Impuestos] Estas configuraciones serán anuladas para los EE.UU.. ';
-$_MODULE['<{avalaratax}prestashop>avalaratax_3a2eb2cc29ccc9fc619e47fe4df5b148'] = 'En los detalles del producto (producto en modo de edición) una opción \"Código Tributario\" campo se agregará lo que le permite especificar un código de impuestos válida para cada uno de sus productos. ';
-$_MODULE['<{avalaratax}prestashop>avalaratax_254f642527b45bc260048e30704edb39'] = 'Configuración';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6910f753ce21ab6b256a2440296185df'] = 'Credenciales AvaTax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_2fcecaf04456ae2ceac826fd0ccaaf1c'] = 'Número de cuenta';
-$_MODULE['<{avalaratax}prestashop>avalaratax_5d5c4ad5db4bd841e161e43ac45bc5c6'] = 'Clave de licencia';
-$_MODULE['<{avalaratax}prestashop>avalaratax_e6b391a8d2c4d45902a23a8b6585703d'] = 'URL';
-$_MODULE['<{avalaratax}prestashop>avalaratax_5f8257b5273b995afe894c6b851f115c'] = 'Código de la Empresa';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c6a0ae4c3ae26cc37b15d7cf6494547c'] = 'Ubicado en la esquina superior derecha de la consola de administración AvaTax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_9daf1fb753b42c3cdc8f1d01669cd6d8'] = 'Guardar configuración';
-$_MODULE['<{avalaratax}prestashop>avalaratax_79ddd6cfbf01f63986f7b114ecc2ca95'] = 'Haga clic aquí para Conexión de prueba';
-$_MODULE['<{avalaratax}prestashop>avalaratax_dae8ace18bdcbcc6ae5aece263e14fe8'] = 'Opciones';
-$_MODULE['<{avalaratax}prestashop>avalaratax_075f49c9bb1da54fd022ddcfb6a9f09b'] = 'Permitir la validación de direcciones';
-$_MODULE['<{avalaratax}prestashop>avalaratax_355fc749cbbfcba999612f3a91cd2667'] = 'Habilitar el cálculo de los impuestos';
-$_MODULE['<{avalaratax}prestashop>avalaratax_4b8dfce98a161ad3ad9a5eab52225d86'] = 'Habilitar la normalización de la dirección en mayúsculas';
-$_MODULE['<{avalaratax}prestashop>avalaratax_db669c6377ab90eef78800a48fd4a453'] = 'Solicitud de tiempo de espera';
-$_MODULE['<{avalaratax}prestashop>avalaratax_783e8e29e6a8c3e22baa58a19420eb4f'] = 'segundos';
-$_MODULE['<{avalaratax}prestashop>avalaratax_5b092e4c3fc280f8d23bc52c544498d8'] = 'Frecuencia de actualización tributaria caché de cada:';
-$_MODULE['<{avalaratax}prestashop>avalaratax_640fd0cc0ffa0316ae087652871f4486'] = 'minutos';
-$_MODULE['<{avalaratax}prestashop>avalaratax_06f4f7bd90b1c8a0145d18ee55c265c4'] = 'Borrar la caché';
-$_MODULE['<{avalaratax}prestashop>avalaratax_bf58340449ab95a854343bfb704b9638'] = 'Opciones por defecto Enviar / Confirmar / Cancelar / Reembolso';
-$_MODULE['<{avalaratax}prestashop>avalaratax_7a9409d7e2a131729d052c4f0c40172c'] = 'Cuando el estado de un pedido se actualiza, las siguientes opciones se utilizarán para actualizar los registros de Avalara. ';
-$_MODULE['<{avalaratax}prestashop>avalaratax_004bf6c9a40003140292e97330236c53'] = 'Acción';
-$_MODULE['<{avalaratax}prestashop>avalaratax_4bb3e6ea4b1aa93c3429e410129b4be4'] = 'Estado de la orden en su tienda';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c2557908b54658949a9cf6363befb940'] = 'Enviar para Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6bcf0964b8e694d02aba7d7dfcdf5442'] = '[ERROR] Un valor por defecto no se ha encontrado. Por favor, restaurar estados de PrestaShop por defecto.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_73d84adcfc3b54cf9bec85791236b73d'] = 'Enviar a Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_0316320415f5e35b004c81ae93cc36bd'] = 'Eliminar de Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_1fc4faeb7e0ececc2a6bd54abda65f73'] = 'Cancelar orden en Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c7a504ef03bdf275db8151959034f00b'] = 'Dirección Origen predeterminada ';
-$_MODULE['<{avalaratax}prestashop>avalaratax_add3df7ab84caab59b62f89fdd35ac1f'] = 'Dirección Línea 1';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6a7b0d5f2f1354e398923d81b0e4d6ab'] = 'Dirección Línea 2';
-$_MODULE['<{avalaratax}prestashop>avalaratax_57d056ed0984166336b7879c2af3657f'] = 'Ciudad';
-$_MODULE['<{avalaratax}prestashop>avalaratax_46a2a41cc6e552044816a2d04634545d'] = 'Estado';
-$_MODULE['<{avalaratax}prestashop>avalaratax_5e178542b85fb18ca3c459e9a95f4f2e'] = 'Código postal';
-$_MODULE['<{avalaratax}prestashop>avalaratax_59716c97497eb9694541f7c3d37b1a4d'] = 'País';
-$_MODULE['<{avalaratax}prestashop>avalaratax_9410e0f9048d0fdecef38e745ce2e9ed'] = 'La consola de administración AvaTax ';
-$_MODULE['<{avalaratax}prestashop>avalaratax_f47aa2664e16e45a8b17e2f0a8a05b1c'] = 'Inicie sesión en la consola de administración AvaTax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c888438d14855d7d96a2724ee9c306bd'] = 'Configuración actualizada';
-$_MODULE['<{avalaratax}prestashop>avalaratax_70b07b7f1a6e3c7f20fd75461aaefb9f'] = 'Prueba de conexión a cabo con éxito.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_f63f3c0a7a1fa62fa64ba8e8763f1106'] = 'La versión ping es:';
-$_MODULE['<{avalaratax}prestashop>avalaratax_224f5e74c7e0d63742fcff8e1776b3f0'] = 'Fecha de caducidad de la licencia:';
-$_MODULE['<{avalaratax}prestashop>avalaratax_63a77eaf9f310dc5def6709c2887dcc4'] = 'Error de conexión de prueba.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6053c937d7fec8bd03e6a9dce45b4104'] = 'O bien la cuenta o clave de licencia es incorrecta. Por favor, confirme la cuenta y la clave de licencia antes de probar la conexión de nuevo.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_3b4f001aa4a4715a2449b8affb2eb3f5'] = 'Error(es):';
-$_MODULE['<{avalaratax}prestashop>avalaratax_d284d38f7ef7a9d00d82f8395510c845'] = 'Las órdenes que ha seleccionado se publicaron.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_91b736ea6bbca1d447985ff6262cde25'] = 'El siguiente error ocurrió cuando se enviaban las órdenes que ha seleccionado para Avalara.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_62b4a111d5272f0d5e6da820de9fee8d'] = 'Las órdenes que ha seleccionado se cometieron.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c45e7677f4f5ccc23c0e4a6989308e8e'] = 'El siguiente error se generó, mientras se cancelaban las órdenes que usted seleccionó. ';
-$_MODULE['<{avalaratax}prestashop>avalaratax_2ac3d2e77dddb4c35713ba077a3a9639'] = 'Los pedidos seleccionados fueron cancelados ';
+<?php
+
+global $_MODULE;
+$_MODULE = array();
+$_MODULE['<{avalaratax}prestashop>avalaratax_fea2a64a31f1513f4b2565ebfaff597b'] = 'Avalara - AvaTax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_ae8a727f868a8bbca075451c34154bfe'] = 'Impuesto son complicados. AvaTax hace que sea fácil.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6e25586fe78488784e764b8c7e523099'] = 'El módulo se ha instalado correctamente, pero el siguiente archivo(s) ya existen. Por favor, unir los archivo(s) de forma manual.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_53c2b2432a6d2b3e69298041223f2677'] = 'Los productos seleccionados fueron cancelados.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_580bc7347384fe1e3e2fdaf3930fdb00'] = 'Las impuestos para EE.UU. son sobrescritos por el módulo de Impuestos Avalara.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_2929b1675a0788e25b46dd923bf8d6f4'] = 'Código de Impuestos (Avalara)';
+$_MODULE['<{avalaratax}prestashop>avalaratax_453d38d159f47c6a572efab4dd8efb41'] = 'Mostrar los impuestos';
+$_MODULE['<{avalaratax}prestashop>avalaratax_56bb4e1f91985e7319c1d5cbe47096fe'] = 'La dirección que ha especificado ha sido validada.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_45d416b0d62f0e9579a08fac59a8fe48'] = 'El siguiente error se generó durante la validación de su dirección';
+$_MODULE['<{avalaratax}prestashop>avalaratax_ffea2d321be109fc7243cfeb515fe257'] = 'Seleccione su estado (si procede)';
+$_MODULE['<{avalaratax}prestashop>avalaratax_63406c9482c644975f227cc93788e8fb'] = 'Seleccione su país';
+$_MODULE['<{avalaratax}prestashop>avalaratax_76b5416ce9c34cc4d45e337db00a653a'] = 'Este módulo está diseñado para funcionar sólo en Estados Unidos de América y Canadá ';
+$_MODULE['<{avalaratax}prestashop>avalaratax_0173b19e723017c74ca1d34bc7e6515b'] = 'Cómo configurar el módulo de Impuesto Avalara :';
+$_MODULE['<{avalaratax}prestashop>avalaratax_3a0b9a760cae0b64183e2ed2b8b5789b'] = 'Rellene el número de cuenta, clave de licencia, y los campos de Código de la Empresa con los proporcionados por Avalara. ';
+$_MODULE['<{avalaratax}prestashop>avalaratax_aea420a9b05a0b1c5c1823e13cdf5c4b'] = 'Especifique su dirección de origen. Esto es de donde usted está enviando los productos (Tiene que ser una ';
+$_MODULE['<{avalaratax}prestashop>avalaratax_eb60dad6b9af2493998d6201caae1faa'] = 'DIRECCION VÁLIDA DE LOS ESTADOS UNIDOS';
+$_MODULE['<{avalaratax}prestashop>avalaratax_558e731e858fbdb4de1b01be9283e7c0'] = 'Objetivo del módulo:';
+$_MODULE['<{avalaratax}prestashop>avalaratax_a035358b6b8c497a70d2c5a838c27e6a'] = 'Este servicio basado en la nube es el más rápido, más fácil, manera más precisa y asequible para el cálculo de impuesto, gestión de certificados de exención, presentar declaraciones, y remitir los pagos a través de Norteamérica y más allá. ';
+$_MODULE['<{avalaratax}prestashop>avalaratax_343618e9fcce53224cc7a47c2145c5e5'] = '¿Qué modificaciones tiene el módulo de hacer en mi tienda?';
+$_MODULE['<{avalaratax}prestashop>avalaratax_227c1f6f0609c433fc3530aced1dd1a9'] = 'Tax.php y AddressController.php y AuthController.php serán sobreescritos. ';
+$_MODULE['<{avalaratax}prestashop>avalaratax_ed844b12d383390f1e8ac7796312390d'] = '[Ficha de pago -> Impuestos] y [Tab Pago -> Impuestos] Estas configuraciones serán anuladas para los EE.UU.. ';
+$_MODULE['<{avalaratax}prestashop>avalaratax_3a2eb2cc29ccc9fc619e47fe4df5b148'] = 'En los detalles del producto (producto en modo de edición) una opción \"Código Tributario\" campo se agregará lo que le permite especificar un código de impuestos válida para cada uno de sus productos. ';
+$_MODULE['<{avalaratax}prestashop>avalaratax_254f642527b45bc260048e30704edb39'] = 'Configuración';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6910f753ce21ab6b256a2440296185df'] = 'Credenciales AvaTax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_2fcecaf04456ae2ceac826fd0ccaaf1c'] = 'Número de cuenta';
+$_MODULE['<{avalaratax}prestashop>avalaratax_5d5c4ad5db4bd841e161e43ac45bc5c6'] = 'Clave de licencia';
+$_MODULE['<{avalaratax}prestashop>avalaratax_e6b391a8d2c4d45902a23a8b6585703d'] = 'URL';
+$_MODULE['<{avalaratax}prestashop>avalaratax_5f8257b5273b995afe894c6b851f115c'] = 'Código de la Empresa';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c6a0ae4c3ae26cc37b15d7cf6494547c'] = 'Ubicado en la esquina superior derecha de la consola de administración AvaTax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_9daf1fb753b42c3cdc8f1d01669cd6d8'] = 'Guardar configuración';
+$_MODULE['<{avalaratax}prestashop>avalaratax_79ddd6cfbf01f63986f7b114ecc2ca95'] = 'Haga clic aquí para Conexión de prueba';
+$_MODULE['<{avalaratax}prestashop>avalaratax_dae8ace18bdcbcc6ae5aece263e14fe8'] = 'Opciones';
+$_MODULE['<{avalaratax}prestashop>avalaratax_075f49c9bb1da54fd022ddcfb6a9f09b'] = 'Permitir la validación de direcciones';
+$_MODULE['<{avalaratax}prestashop>avalaratax_355fc749cbbfcba999612f3a91cd2667'] = 'Habilitar el cálculo de los impuestos';
+$_MODULE['<{avalaratax}prestashop>avalaratax_4b8dfce98a161ad3ad9a5eab52225d86'] = 'Habilitar la normalización de la dirección en mayúsculas';
+$_MODULE['<{avalaratax}prestashop>avalaratax_db669c6377ab90eef78800a48fd4a453'] = 'Solicitud de tiempo de espera';
+$_MODULE['<{avalaratax}prestashop>avalaratax_783e8e29e6a8c3e22baa58a19420eb4f'] = 'segundos';
+$_MODULE['<{avalaratax}prestashop>avalaratax_5b092e4c3fc280f8d23bc52c544498d8'] = 'Frecuencia de actualización tributaria caché de cada:';
+$_MODULE['<{avalaratax}prestashop>avalaratax_640fd0cc0ffa0316ae087652871f4486'] = 'minutos';
+$_MODULE['<{avalaratax}prestashop>avalaratax_06f4f7bd90b1c8a0145d18ee55c265c4'] = 'Borrar la caché';
+$_MODULE['<{avalaratax}prestashop>avalaratax_bf58340449ab95a854343bfb704b9638'] = 'Opciones por defecto Enviar / Confirmar / Cancelar / Reembolso';
+$_MODULE['<{avalaratax}prestashop>avalaratax_7a9409d7e2a131729d052c4f0c40172c'] = 'Cuando el estado de un pedido se actualiza, las siguientes opciones se utilizarán para actualizar los registros de Avalara. ';
+$_MODULE['<{avalaratax}prestashop>avalaratax_004bf6c9a40003140292e97330236c53'] = 'Acción';
+$_MODULE['<{avalaratax}prestashop>avalaratax_4bb3e6ea4b1aa93c3429e410129b4be4'] = 'Estado de la orden en su tienda';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c2557908b54658949a9cf6363befb940'] = 'Enviar para Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6bcf0964b8e694d02aba7d7dfcdf5442'] = '[ERROR] Un valor por defecto no se ha encontrado. Por favor, restaurar estados de PrestaShop por defecto.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_73d84adcfc3b54cf9bec85791236b73d'] = 'Enviar a Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_0316320415f5e35b004c81ae93cc36bd'] = 'Eliminar de Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_1fc4faeb7e0ececc2a6bd54abda65f73'] = 'Cancelar orden en Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c7a504ef03bdf275db8151959034f00b'] = 'Dirección Origen predeterminada ';
+$_MODULE['<{avalaratax}prestashop>avalaratax_add3df7ab84caab59b62f89fdd35ac1f'] = 'Dirección Línea 1';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6a7b0d5f2f1354e398923d81b0e4d6ab'] = 'Dirección Línea 2';
+$_MODULE['<{avalaratax}prestashop>avalaratax_57d056ed0984166336b7879c2af3657f'] = 'Ciudad';
+$_MODULE['<{avalaratax}prestashop>avalaratax_46a2a41cc6e552044816a2d04634545d'] = 'Estado';
+$_MODULE['<{avalaratax}prestashop>avalaratax_5e178542b85fb18ca3c459e9a95f4f2e'] = 'Código postal';
+$_MODULE['<{avalaratax}prestashop>avalaratax_59716c97497eb9694541f7c3d37b1a4d'] = 'País';
+$_MODULE['<{avalaratax}prestashop>avalaratax_9410e0f9048d0fdecef38e745ce2e9ed'] = 'La consola de administración AvaTax ';
+$_MODULE['<{avalaratax}prestashop>avalaratax_f47aa2664e16e45a8b17e2f0a8a05b1c'] = 'Inicie sesión en la consola de administración AvaTax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c888438d14855d7d96a2724ee9c306bd'] = 'Configuración actualizada';
+$_MODULE['<{avalaratax}prestashop>avalaratax_70b07b7f1a6e3c7f20fd75461aaefb9f'] = 'Prueba de conexión a cabo con éxito.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_f63f3c0a7a1fa62fa64ba8e8763f1106'] = 'La versión ping es:';
+$_MODULE['<{avalaratax}prestashop>avalaratax_224f5e74c7e0d63742fcff8e1776b3f0'] = 'Fecha de caducidad de la licencia:';
+$_MODULE['<{avalaratax}prestashop>avalaratax_63a77eaf9f310dc5def6709c2887dcc4'] = 'Error de conexión de prueba.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6053c937d7fec8bd03e6a9dce45b4104'] = 'O bien la cuenta o clave de licencia es incorrecta. Por favor, confirme la cuenta y la clave de licencia antes de probar la conexión de nuevo.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_3b4f001aa4a4715a2449b8affb2eb3f5'] = 'Error(es):';
+$_MODULE['<{avalaratax}prestashop>avalaratax_d284d38f7ef7a9d00d82f8395510c845'] = 'Las órdenes que ha seleccionado se publicaron.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_91b736ea6bbca1d447985ff6262cde25'] = 'El siguiente error ocurrió cuando se enviaban las órdenes que ha seleccionado para Avalara.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_62b4a111d5272f0d5e6da820de9fee8d'] = 'Las órdenes que ha seleccionado se cometieron.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c45e7677f4f5ccc23c0e4a6989308e8e'] = 'El siguiente error se generó, mientras se cancelaban las órdenes que usted seleccionó. ';
+$_MODULE['<{avalaratax}prestashop>avalaratax_2ac3d2e77dddb4c35713ba077a3a9639'] = 'Los pedidos seleccionados fueron cancelados ';
156 avalaratax/fr.php
View
@@ -1,78 +1,78 @@
-<?php
-
-global $_MODULE;
-$_MODULE = array();
-$_MODULE['<{avalaratax}prestashop>avalaratax_fea2a64a31f1513f4b2565ebfaff597b'] = 'Avalara - AvaTax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_ae8a727f868a8bbca075451c34154bfe'] = 'Les taxes de vente sont compliquées. Avatax facilite les taxes.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_abec8ce9e661c64f0731e0bf94473d89'] = 'Erreur lors de la suppression de l\'override';
-$_MODULE['<{avalaratax}prestashop>avalaratax_4ce97a64a65a5ef27f9d497481f6d1bf'] = 'Ce fichier override existe deja, veulliez le fusionner manuellement';
-$_MODULE['<{avalaratax}prestashop>avalaratax_954eea3c07ec89bdb2bd2b59c016e7ed'] = 'Erreur lors de la copie de l\'override :';
-$_MODULE['<{avalaratax}prestashop>avalaratax_53c2b2432a6d2b3e69298041223f2677'] = 'Les produits que vous avez choisis ont été annulés.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_2929b1675a0788e25b46dd923bf8d6f4'] = 'Code taxe (Avalara)';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6c18511d259e56b91071c673ee486fd1'] = 'Code taxe:';
-$_MODULE['<{avalaratax}prestashop>avalaratax_802f657935b88d6d5047aa87b3e20efd'] = 'Les regeles de taxes sont surchargés par le module Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6a8c8129f7d86941bd699a1e898ce102'] = 'Erreur lors du calcul des taxes';
-$_MODULE['<{avalaratax}prestashop>avalaratax_56bb4e1f91985e7319c1d5cbe47096fe'] = 'L\'adresse que vous avez soumise a été validé.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_5e75f748e7f06f54b073c307c8062c25'] = 'Les erreurs suivantes sont survenues lors de la validation de l\'adresse :';
-$_MODULE['<{avalaratax}prestashop>avalaratax_ffea2d321be109fc7243cfeb515fe257'] = 'Choississez votre état (si applicable)';
-$_MODULE['<{avalaratax}prestashop>avalaratax_63406c9482c644975f227cc93788e8fb'] = 'Choississez votre pays';
-$_MODULE['<{avalaratax}prestashop>avalaratax_2fdfd506efea08144c0794c32ca8250a'] = 'Créer un compte';
-$_MODULE['<{avalaratax}prestashop>avalaratax_cdd461e8534a30eb08b155fcf2f11da1'] = 'Avalara et PrestaShop sont partenaires afin de vous apporter le moyen le plus simple pour vous de calculer efficacement vos taxes.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_56b8391721f97665ae9fabff869e0674'] = 'Personne n\'aime traiter avec les taxes.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_515b006df15081a22fffbde68f5a0cca'] = 'Les taxes de vente ne sont pas le coeur de votre métier et devraient être automatisées. Vous pourriez le faire de mauvaise manière, et exposer votre affaire à un risque non nécessaire, et cela sans même le savoir.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_e909c29089d3d9eda30a3bee0468b481'] = 'Travailler correctement avec les taxes de vente est simple avec Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_83db45b1df730cae93810ba1bfd501c4'] = 'Nous effectuons toute la recherche et automatisons le procédé à votre place, assurant que le système est à jour avec les dernières taxes, taux de VAT et règles en vigueur dans chaque état et chaque pays. En tant que service basé sur le Cloud, AvalaraTax vous évite support et maintenance. Ce système vous apporte une solution complète pour gérer vos taxes.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_8b88bf316f85852356604a615276ff06'] = 'Validation de l\'adresse incluse';
-$_MODULE['<{avalaratax}prestashop>avalaratax_dee601cfe9c0b511bf2fafb2711d5959'] = 'Calcul précis des seuils';
-$_MODULE['<{avalaratax}prestashop>avalaratax_be8976301d53fe84645630e6a87a206b'] = 'Règles de taxation des produits et services';
-$_MODULE['<{avalaratax}prestashop>avalaratax_ac82a2f3665b1d2a9b8bd9a4187b0e20'] = 'Gestion des certificats d\'exemption';
-$_MODULE['<{avalaratax}prestashop>avalaratax_810175d536622a06a17b294a4a62dfd1'] = 'Rapport sur les taxes de ventes';
-$_MODULE['<{avalaratax}prestashop>avalaratax_9410e0f9048d0fdecef38e745ce2e9ed'] = 'Console d\'administration AvaTax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_f47aa2664e16e45a8b17e2f0a8a05b1c'] = 'Identifiez vous sur la console d\'administration AvaTax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_254f642527b45bc260048e30704edb39'] = 'Configuration';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6910f753ce21ab6b256a2440296185df'] = 'Références AvaTax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_2fcecaf04456ae2ceac826fd0ccaaf1c'] = 'Numéro de compte';
-$_MODULE['<{avalaratax}prestashop>avalaratax_5d5c4ad5db4bd841e161e43ac45bc5c6'] = 'Clé de licence';
-$_MODULE['<{avalaratax}prestashop>avalaratax_e6b391a8d2c4d45902a23a8b6585703d'] = 'URL';
-$_MODULE['<{avalaratax}prestashop>avalaratax_5f8257b5273b995afe894c6b851f115c'] = 'Code de la société';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c6a0ae4c3ae26cc37b15d7cf6494547c'] = 'Situé dans le coin en haut à droite de votre console d\'administration AvaTax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_9daf1fb753b42c3cdc8f1d01669cd6d8'] = 'Sauvegarder';
-$_MODULE['<{avalaratax}prestashop>avalaratax_79ddd6cfbf01f63986f7b114ecc2ca95'] = 'Cliquez ici pour tester la connection';
-$_MODULE['<{avalaratax}prestashop>avalaratax_dae8ace18bdcbcc6ae5aece263e14fe8'] = 'Options';
-$_MODULE['<{avalaratax}prestashop>avalaratax_075f49c9bb1da54fd022ddcfb6a9f09b'] = 'Activer la validation d\'adresse';
-$_MODULE['<{avalaratax}prestashop>avalaratax_355fc749cbbfcba999612f3a91cd2667'] = 'Activer le calcul des taxes';
-$_MODULE['<{avalaratax}prestashop>avalaratax_4b8dfce98a161ad3ad9a5eab52225d86'] = 'Activer la normalisation des adresses en majuscule';
-$_MODULE['<{avalaratax}prestashop>avalaratax_9d0c2658dfe76ba5daa9f2c9af16cbf8'] = 'Activer le calcul des taxes en dehors de l\'etat';
-$_MODULE['<{avalaratax}prestashop>avalaratax_db669c6377ab90eef78800a48fd4a453'] = 'Temps de requête dépassé';
-$_MODULE['<{avalaratax}prestashop>avalaratax_783e8e29e6a8c3e22baa58a19420eb4f'] = 'secondes';
-$_MODULE['<{avalaratax}prestashop>avalaratax_5b092e4c3fc280f8d23bc52c544498d8'] = 'Rafraichir le cache des taxes tous les jours :';
-$_MODULE['<{avalaratax}prestashop>avalaratax_640fd0cc0ffa0316ae087652871f4486'] = 'minutes';
-$_MODULE['<{avalaratax}prestashop>avalaratax_06f4f7bd90b1c8a0145d18ee55c265c4'] = 'Effacer le cache';
-$_MODULE['<{avalaratax}prestashop>avalaratax_bf58340449ab95a854343bfb704b9638'] = 'Default Post/Commit/Cancel/Refund Options';
-$_MODULE['<{avalaratax}prestashop>avalaratax_7a9409d7e2a131729d052c4f0c40172c'] = 'Quand le statut d\'une commande est mis à jour, les options suivantes seront utilisées pour mettre à jour les données d\'Avalara.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_004bf6c9a40003140292e97330236c53'] = 'Action';
-$_MODULE['<{avalaratax}prestashop>avalaratax_4bb3e6ea4b1aa93c3429e410129b4be4'] = 'Statuts de commande dans votre boutique';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c2557908b54658949a9cf6363befb940'] = 'Envoyer une commande à Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6bcf0964b8e694d02aba7d7dfcdf5442'] = '[ERREUR] Aucune valeur par défaut n\'a été trouvée. Veuillez restaurer les statuts par défaut de PrestaShop';
-$_MODULE['<{avalaratax}prestashop>avalaratax_73d84adcfc3b54cf9bec85791236b73d'] = 'Commit order to Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_0316320415f5e35b004c81ae93cc36bd'] = 'Delete order from Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_1fc4faeb7e0ececc2a6bd54abda65f73'] = 'Void order in Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c7a504ef03bdf275db8151959034f00b'] = 'Adresse d\'origine par défaut';
-$_MODULE['<{avalaratax}prestashop>avalaratax_add3df7ab84caab59b62f89fdd35ac1f'] = 'Adresse ligne 1';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6a7b0d5f2f1354e398923d81b0e4d6ab'] = 'Adresse ligne 2';
-$_MODULE['<{avalaratax}prestashop>avalaratax_57d056ed0984166336b7879c2af3657f'] = 'Ville';
-$_MODULE['<{avalaratax}prestashop>avalaratax_5e178542b85fb18ca3c459e9a95f4f2e'] = 'Code postal';
-$_MODULE['<{avalaratax}prestashop>avalaratax_59716c97497eb9694541f7c3d37b1a4d'] = 'Pays';
-$_MODULE['<{avalaratax}prestashop>avalaratax_46a2a41cc6e552044816a2d04634545d'] = 'Etat';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c888438d14855d7d96a2724ee9c306bd'] = 'Configurations mises à jour';
-$_MODULE['<{avalaratax}prestashop>avalaratax_70b07b7f1a6e3c7f20fd75461aaefb9f'] = 'Test de connection effectuée avec succès';
-$_MODULE['<{avalaratax}prestashop>avalaratax_f63f3c0a7a1fa62fa64ba8e8763f1106'] = 'La version de Ping est :';
-$_MODULE['<{avalaratax}prestashop>avalaratax_224f5e74c7e0d63742fcff8e1776b3f0'] = 'La date d\'expiration de la licence est :';
-$_MODULE['<{avalaratax}prestashop>avalaratax_63a77eaf9f310dc5def6709c2887dcc4'] = 'Le test de connection a échoué';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6053c937d7fec8bd03e6a9dce45b4104'] = 'Le compte ou la clé de licence est incorrect. Veuillez vérifier le compte et la clé de licence avant de tester la connexion à nouveau.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_3b4f001aa4a4715a2449b8affb2eb3f5'] = 'Erreur(s) :';
-$_MODULE['<{avalaratax}prestashop>avalaratax_d284d38f7ef7a9d00d82f8395510c845'] = 'Les commandes que vous avez choisies ont été postées.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_91b736ea6bbca1d447985ff6262cde25'] = 'L\'erreur suivante a été générée pendant l\'envoi des commandes choisies à Avalara.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_62b4a111d5272f0d5e6da820de9fee8d'] = 'Les commandes que vous avez choisies ont été commités.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c45e7677f4f5ccc23c0e4a6989308e8e'] = 'L\'erreur suivante a été générée pendant l\'annulation des commandes choisies d\'Avalara.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_2ac3d2e77dddb4c35713ba077a3a9639'] = 'Les commandes que vous avez choisies ont été annulées.';
+<?php
+
+global $_MODULE;
+$_MODULE = array();
+$_MODULE['<{avalaratax}prestashop>avalaratax_fea2a64a31f1513f4b2565ebfaff597b'] = 'Avalara - AvaTax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_ae8a727f868a8bbca075451c34154bfe'] = 'Les taxes de vente sont compliquées. Avatax facilite les taxes.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_abec8ce9e661c64f0731e0bf94473d89'] = 'Erreur lors de la suppression de l\'override';
+$_MODULE['<{avalaratax}prestashop>avalaratax_4ce97a64a65a5ef27f9d497481f6d1bf'] = 'Ce fichier override existe deja, veulliez le fusionner manuellement';
+$_MODULE['<{avalaratax}prestashop>avalaratax_954eea3c07ec89bdb2bd2b59c016e7ed'] = 'Erreur lors de la copie de l\'override :';
+$_MODULE['<{avalaratax}prestashop>avalaratax_53c2b2432a6d2b3e69298041223f2677'] = 'Les produits que vous avez choisis ont été annulés.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_2929b1675a0788e25b46dd923bf8d6f4'] = 'Code taxe (Avalara)';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6c18511d259e56b91071c673ee486fd1'] = 'Code taxe:';
+$_MODULE['<{avalaratax}prestashop>avalaratax_802f657935b88d6d5047aa87b3e20efd'] = 'Les regeles de taxes sont surchargés par le module Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6a8c8129f7d86941bd699a1e898ce102'] = 'Erreur lors du calcul des taxes';
+$_MODULE['<{avalaratax}prestashop>avalaratax_56bb4e1f91985e7319c1d5cbe47096fe'] = 'L\'adresse que vous avez soumise a été validé.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_5e75f748e7f06f54b073c307c8062c25'] = 'Les erreurs suivantes sont survenues lors de la validation de l\'adresse :';
+$_MODULE['<{avalaratax}prestashop>avalaratax_ffea2d321be109fc7243cfeb515fe257'] = 'Choississez votre état (si applicable)';
+$_MODULE['<{avalaratax}prestashop>avalaratax_63406c9482c644975f227cc93788e8fb'] = 'Choississez votre pays';
+$_MODULE['<{avalaratax}prestashop>avalaratax_2fdfd506efea08144c0794c32ca8250a'] = 'Créer un compte';
+$_MODULE['<{avalaratax}prestashop>avalaratax_cdd461e8534a30eb08b155fcf2f11da1'] = 'Avalara et PrestaShop sont partenaires afin de vous apporter le moyen le plus simple pour vous de calculer efficacement vos taxes.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_56b8391721f97665ae9fabff869e0674'] = 'Personne n\'aime traiter avec les taxes.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_515b006df15081a22fffbde68f5a0cca'] = 'Les taxes de vente ne sont pas le coeur de votre métier et devraient être automatisées. Vous pourriez le faire de mauvaise manière, et exposer votre affaire à un risque non nécessaire, et cela sans même le savoir.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_e909c29089d3d9eda30a3bee0468b481'] = 'Travailler correctement avec les taxes de vente est simple avec Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_83db45b1df730cae93810ba1bfd501c4'] = 'Nous effectuons toute la recherche et automatisons le procédé à votre place, assurant que le système est à jour avec les dernières taxes, taux de VAT et règles en vigueur dans chaque état et chaque pays. En tant que service basé sur le Cloud, AvalaraTax vous évite support et maintenance. Ce système vous apporte une solution complète pour gérer vos taxes.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_8b88bf316f85852356604a615276ff06'] = 'Validation de l\'adresse incluse';
+$_MODULE['<{avalaratax}prestashop>avalaratax_dee601cfe9c0b511bf2fafb2711d5959'] = 'Calcul précis des seuils';
+$_MODULE['<{avalaratax}prestashop>avalaratax_be8976301d53fe84645630e6a87a206b'] = 'Règles de taxation des produits et services';
+$_MODULE['<{avalaratax}prestashop>avalaratax_ac82a2f3665b1d2a9b8bd9a4187b0e20'] = 'Gestion des certificats d\'exemption';
+$_MODULE['<{avalaratax}prestashop>avalaratax_810175d536622a06a17b294a4a62dfd1'] = 'Rapport sur les taxes de ventes';
+$_MODULE['<{avalaratax}prestashop>avalaratax_9410e0f9048d0fdecef38e745ce2e9ed'] = 'Console d\'administration AvaTax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_f47aa2664e16e45a8b17e2f0a8a05b1c'] = 'Identifiez vous sur la console d\'administration AvaTax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_254f642527b45bc260048e30704edb39'] = 'Configuration';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6910f753ce21ab6b256a2440296185df'] = 'Références AvaTax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_2fcecaf04456ae2ceac826fd0ccaaf1c'] = 'Numéro de compte';
+$_MODULE['<{avalaratax}prestashop>avalaratax_5d5c4ad5db4bd841e161e43ac45bc5c6'] = 'Clé de licence';
+$_MODULE['<{avalaratax}prestashop>avalaratax_e6b391a8d2c4d45902a23a8b6585703d'] = 'URL';
+$_MODULE['<{avalaratax}prestashop>avalaratax_5f8257b5273b995afe894c6b851f115c'] = 'Code de la société';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c6a0ae4c3ae26cc37b15d7cf6494547c'] = 'Situé dans le coin en haut à droite de votre console d\'administration AvaTax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_9daf1fb753b42c3cdc8f1d01669cd6d8'] = 'Sauvegarder';
+$_MODULE['<{avalaratax}prestashop>avalaratax_79ddd6cfbf01f63986f7b114ecc2ca95'] = 'Cliquez ici pour tester la connection';
+$_MODULE['<{avalaratax}prestashop>avalaratax_dae8ace18bdcbcc6ae5aece263e14fe8'] = 'Options';
+$_MODULE['<{avalaratax}prestashop>avalaratax_075f49c9bb1da54fd022ddcfb6a9f09b'] = 'Activer la validation d\'adresse';
+$_MODULE['<{avalaratax}prestashop>avalaratax_355fc749cbbfcba999612f3a91cd2667'] = 'Activer le calcul des taxes';
+$_MODULE['<{avalaratax}prestashop>avalaratax_4b8dfce98a161ad3ad9a5eab52225d86'] = 'Activer la normalisation des adresses en majuscule';
+$_MODULE['<{avalaratax}prestashop>avalaratax_9d0c2658dfe76ba5daa9f2c9af16cbf8'] = 'Activer le calcul des taxes en dehors de l\'etat';
+$_MODULE['<{avalaratax}prestashop>avalaratax_db669c6377ab90eef78800a48fd4a453'] = 'Temps de requête dépassé';
+$_MODULE['<{avalaratax}prestashop>avalaratax_783e8e29e6a8c3e22baa58a19420eb4f'] = 'secondes';
+$_MODULE['<{avalaratax}prestashop>avalaratax_5b092e4c3fc280f8d23bc52c544498d8'] = 'Rafraichir le cache des taxes tous les jours :';
+$_MODULE['<{avalaratax}prestashop>avalaratax_640fd0cc0ffa0316ae087652871f4486'] = 'minutes';
+$_MODULE['<{avalaratax}prestashop>avalaratax_06f4f7bd90b1c8a0145d18ee55c265c4'] = 'Effacer le cache';
+$_MODULE['<{avalaratax}prestashop>avalaratax_bf58340449ab95a854343bfb704b9638'] = 'Default Post/Commit/Cancel/Refund Options';
+$_MODULE['<{avalaratax}prestashop>avalaratax_7a9409d7e2a131729d052c4f0c40172c'] = 'Quand le statut d\'une commande est mis à jour, les options suivantes seront utilisées pour mettre à jour les données d\'Avalara.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_004bf6c9a40003140292e97330236c53'] = 'Action';
+$_MODULE['<{avalaratax}prestashop>avalaratax_4bb3e6ea4b1aa93c3429e410129b4be4'] = 'Statuts de commande dans votre boutique';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c2557908b54658949a9cf6363befb940'] = 'Envoyer une commande à Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6bcf0964b8e694d02aba7d7dfcdf5442'] = '[ERREUR] Aucune valeur par défaut n\'a été trouvée. Veuillez restaurer les statuts par défaut de PrestaShop';
+$_MODULE['<{avalaratax}prestashop>avalaratax_73d84adcfc3b54cf9bec85791236b73d'] = 'Commit order to Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_0316320415f5e35b004c81ae93cc36bd'] = 'Delete order from Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_1fc4faeb7e0ececc2a6bd54abda65f73'] = 'Void order in Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c7a504ef03bdf275db8151959034f00b'] = 'Adresse d\'origine par défaut';
+$_MODULE['<{avalaratax}prestashop>avalaratax_add3df7ab84caab59b62f89fdd35ac1f'] = 'Adresse ligne 1';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6a7b0d5f2f1354e398923d81b0e4d6ab'] = 'Adresse ligne 2';
+$_MODULE['<{avalaratax}prestashop>avalaratax_57d056ed0984166336b7879c2af3657f'] = 'Ville';
+$_MODULE['<{avalaratax}prestashop>avalaratax_5e178542b85fb18ca3c459e9a95f4f2e'] = 'Code postal';
+$_MODULE['<{avalaratax}prestashop>avalaratax_59716c97497eb9694541f7c3d37b1a4d'] = 'Pays';
+$_MODULE['<{avalaratax}prestashop>avalaratax_46a2a41cc6e552044816a2d04634545d'] = 'Etat';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c888438d14855d7d96a2724ee9c306bd'] = 'Configurations mises à jour';
+$_MODULE['<{avalaratax}prestashop>avalaratax_70b07b7f1a6e3c7f20fd75461aaefb9f'] = 'Test de connection effectuée avec succès';
+$_MODULE['<{avalaratax}prestashop>avalaratax_f63f3c0a7a1fa62fa64ba8e8763f1106'] = 'La version de Ping est :';
+$_MODULE['<{avalaratax}prestashop>avalaratax_224f5e74c7e0d63742fcff8e1776b3f0'] = 'La date d\'expiration de la licence est :';
+$_MODULE['<{avalaratax}prestashop>avalaratax_63a77eaf9f310dc5def6709c2887dcc4'] = 'Le test de connection a échoué';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6053c937d7fec8bd03e6a9dce45b4104'] = 'Le compte ou la clé de licence est incorrect. Veuillez vérifier le compte et la clé de licence avant de tester la connexion à nouveau.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_3b4f001aa4a4715a2449b8affb2eb3f5'] = 'Erreur(s) :';
+$_MODULE['<{avalaratax}prestashop>avalaratax_d284d38f7ef7a9d00d82f8395510c845'] = 'Les commandes que vous avez choisies ont été postées.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_91b736ea6bbca1d447985ff6262cde25'] = 'L\'erreur suivante a été générée pendant l\'envoi des commandes choisies à Avalara.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_62b4a111d5272f0d5e6da820de9fee8d'] = 'Les commandes que vous avez choisies ont été commités.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c45e7677f4f5ccc23c0e4a6989308e8e'] = 'L\'erreur suivante a été générée pendant l\'annulation des commandes choisies d\'Avalara.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_2ac3d2e77dddb4c35713ba077a3a9639'] = 'Les commandes que vous avez choisies ont été annulées.';
70 avalaratax/index.php
View
@@ -1,35 +1,35 @@
-<?php
-/*
-* 2007-2013 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Open Software License (OSL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/osl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA <contact@prestashop.com>
-* @copyright 2007-2013 PrestaShop SA
-* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
+<?php
+/*
+* 2007-2013 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Open Software License (OSL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/osl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA <contact@prestashop.com>
+* @copyright 2007-2013 PrestaShop SA
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
146 avalaratax/it.php
View
@@ -1,73 +1,73 @@
-<?php
-
-global $_MODULE;
-$_MODULE = array();
-$_MODULE['<{avalaratax}prestashop>avalaratax_fea2a64a31f1513f4b2565ebfaff597b'] = 'Avalara - AvaTax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_ae8a727f868a8bbca075451c34154bfe'] = 'Le tasse di vendita sono compilate, AvaTax le rende semplici.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6e25586fe78488784e764b8c7e523099'] = 'Il modulo è stato installato con successo, ma i seguenti file esistono già. Per favore inserisci i file manualmente';
-$_MODULE['<{avalaratax}prestashop>avalaratax_53c2b2432a6d2b3e69298041223f2677'] = 'I prodotti che hai selezionato saranno cancellati.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_580bc7347384fe1e3e2fdaf3930fdb00'] = 'Le regole per le tasse USA saranno sovrascritta dal Modulo Avalara Tax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_2929b1675a0788e25b46dd923bf8d6f4'] = 'Codice Tassa (Avalara)';
-$_MODULE['<{avalaratax}prestashop>avalaratax_56bb4e1f91985e7319c1d5cbe47096fe'] = 'L\'indirizzo che hai inviato è stato validato';
-$_MODULE['<{avalaratax}prestashop>avalaratax_45d416b0d62f0e9579a08fac59a8fe48'] = 'Il seguente errore è stato generato durante la validazione dell\'indirizzo';
-$_MODULE['<{avalaratax}prestashop>avalaratax_ffea2d321be109fc7243cfeb515fe257'] = 'Scegli la tua nazione';
-$_MODULE['<{avalaratax}prestashop>avalaratax_63406c9482c644975f227cc93788e8fb'] = 'Scegli la tua nazione';
-$_MODULE['<{avalaratax}prestashop>avalaratax_76b5416ce9c34cc4d45e337db00a653a'] = 'Questo modulo lavora SOLO negli USA e in Canada';
-$_MODULE['<{avalaratax}prestashop>avalaratax_0173b19e723017c74ca1d34bc7e6515b'] = 'Come configurare il modulo Avalara Tax:';
-$_MODULE['<{avalaratax}prestashop>avalaratax_3a0b9a760cae0b64183e2ed2b8b5789b'] = 'Riempi il numero di Account, la chiave di Licenza, il codice azienza con quelli forniti da Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_aea420a9b05a0b1c5c1823e13cdf5c4b'] = 'Secifica il tuo indirizzo di origine. Questo sarà da DOVe spedisci i tuoi prodotti (deve essere';
-$_MODULE['<{avalaratax}prestashop>avalaratax_eb60dad6b9af2493998d6201caae1faa'] = 'UN VALIDO INDIRIZZO NEGLI USA';
-$_MODULE['<{avalaratax}prestashop>avalaratax_558e731e858fbdb4de1b01be9283e7c0'] = 'Scopo del modulo:';
-$_MODULE['<{avalaratax}prestashop>avalaratax_a035358b6b8c497a70d2c5a838c27e6a'] = 'Questo sistema basato su Cloud è il più rapido, facile, precisa via per calcolare le tasse di vendita, certificati di rimborso, in tutti gli stati USA';
-$_MODULE['<{avalaratax}prestashop>avalaratax_343618e9fcce53224cc7a47c2145c5e5'] = 'Che modifiche fa il modulo al mio negozio?';
-$_MODULE['<{avalaratax}prestashop>avalaratax_227c1f6f0609c433fc3530aced1dd1a9'] = 'Tax.php, AddressController.php, and AuthController.php saranno sovrascritti';
-$_MODULE['<{avalaratax}prestashop>avalaratax_ed844b12d383390f1e8ac7796312390d'] = '[Payment Tab -> Taxes] and [Payment Tab -> Tax Rules] configurazioni saranno sovrascritti per gli US.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_3a2eb2cc29ccc9fc619e47fe4df5b148'] = 'Nel dettagli prodotto un campo opzionale: \"Tax Code\" verrò aggiunto dove tu potrai configurare il tuo codice tassa.';
-$_MODULE['<{avalaratax}prestashop>avalaratax_254f642527b45bc260048e30704edb39'] = 'Configurazione';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6910f753ce21ab6b256a2440296185df'] = 'Credenziali AvaTax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_2fcecaf04456ae2ceac826fd0ccaaf1c'] = 'Numero di account';
-$_MODULE['<{avalaratax}prestashop>avalaratax_5d5c4ad5db4bd841e161e43ac45bc5c6'] = 'Chiave di Licenza';
-$_MODULE['<{avalaratax}prestashop>avalaratax_e6b391a8d2c4d45902a23a8b6585703d'] = 'URL:';
-$_MODULE['<{avalaratax}prestashop>avalaratax_5f8257b5273b995afe894c6b851f115c'] = 'Codice Azienda';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c6a0ae4c3ae26cc37b15d7cf6494547c'] = 'Si trova in alto a destra nella tua console di amministrazione AvaTax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_9daf1fb753b42c3cdc8f1d01669cd6d8'] = 'Salva impostazioni';
-$_MODULE['<{avalaratax}prestashop>avalaratax_79ddd6cfbf01f63986f7b114ecc2ca95'] = 'Clicca qui per fare un test di connessione';
-$_MODULE['<{avalaratax}prestashop>avalaratax_dae8ace18bdcbcc6ae5aece263e14fe8'] = 'Opzioni';
-$_MODULE['<{avalaratax}prestashop>avalaratax_075f49c9bb1da54fd022ddcfb6a9f09b'] = 'Abilita verifica indirizzo';
-$_MODULE['<{avalaratax}prestashop>avalaratax_355fc749cbbfcba999612f3a91cd2667'] = 'Abilita calcolo tasse';
-$_MODULE['<{avalaratax}prestashop>avalaratax_4b8dfce98a161ad3ad9a5eab52225d86'] = 'Abilita conversione in maiuscolo dell\'indirizzo';
-$_MODULE['<{avalaratax}prestashop>avalaratax_db669c6377ab90eef78800a48fd4a453'] = 'Richiedi timeout';
-$_MODULE['<{avalaratax}prestashop>avalaratax_783e8e29e6a8c3e22baa58a19420eb4f'] = 'secondi';
-$_MODULE['<{avalaratax}prestashop>avalaratax_5b092e4c3fc280f8d23bc52c544498d8'] = 'Ricarica le percentuali di tasse ogni:';
-$_MODULE['<{avalaratax}prestashop>avalaratax_640fd0cc0ffa0316ae087652871f4486'] = 'minuti';
-$_MODULE['<{avalaratax}prestashop>avalaratax_06f4f7bd90b1c8a0145d18ee55c265c4'] = 'Cancella la cache';
-$_MODULE['<{avalaratax}prestashop>avalaratax_bf58340449ab95a854343bfb704b9638'] = 'Opzioni di default Ivia/Cancella/Rimbnorsa';
-$_MODULE['<{avalaratax}prestashop>avalaratax_7a9409d7e2a131729d052c4f0c40172c'] = 'Quando uno stato d\'ordine è aggiornato, la seguente azione aggiornerà i record di Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_004bf6c9a40003140292e97330236c53'] = 'Azione';
-$_MODULE['<{avalaratax}prestashop>avalaratax_4bb3e6ea4b1aa93c3429e410129b4be4'] = 'Stato ordine nel negozio';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c2557908b54658949a9cf6363befb940'] = 'invia ordine a Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6bcf0964b8e694d02aba7d7dfcdf5442'] = '[Errore] un valore di default non è stato trovato. Per favore re-imposta i valori di default di PrestaShop';
-$_MODULE['<{avalaratax}prestashop>avalaratax_73d84adcfc3b54cf9bec85791236b73d'] = 'invia ordine a Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_0316320415f5e35b004c81ae93cc36bd'] = 'Cancella ordine su Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_1fc4faeb7e0ececc2a6bd54abda65f73'] = 'Conferma ordine a Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c7a504ef03bdf275db8151959034f00b'] = 'Indirizzo origine di default';
-$_MODULE['<{avalaratax}prestashop>avalaratax_add3df7ab84caab59b62f89fdd35ac1f'] = 'Indirizzo riga 1';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6a7b0d5f2f1354e398923d81b0e4d6ab'] = 'Indirizzo aggiuntivo';
-$_MODULE['<{avalaratax}prestashop>avalaratax_57d056ed0984166336b7879c2af3657f'] = 'Città:';
-$_MODULE['<{avalaratax}prestashop>avalaratax_46a2a41cc6e552044816a2d04634545d'] = 'Status';
-$_MODULE['<{avalaratax}prestashop>avalaratax_5e178542b85fb18ca3c459e9a95f4f2e'] = 'CAP';
-$_MODULE['<{avalaratax}prestashop>avalaratax_59716c97497eb9694541f7c3d37b1a4d'] = 'Nazione';
-$_MODULE['<{avalaratax}prestashop>avalaratax_9410e0f9048d0fdecef38e745ce2e9ed'] = 'Consolle di admin di AvaTax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_f47aa2664e16e45a8b17e2f0a8a05b1c'] = 'Login sulla consolle di admin di AvaTax';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c888438d14855d7d96a2724ee9c306bd'] = 'Impostazioni aggiornate';
-$_MODULE['<{avalaratax}prestashop>avalaratax_70b07b7f1a6e3c7f20fd75461aaefb9f'] = 'Test di connessione eseguito con successo';
-$_MODULE['<{avalaratax}prestashop>avalaratax_f63f3c0a7a1fa62fa64ba8e8763f1106'] = 'Versione di Ping è:';
-$_MODULE['<{avalaratax}prestashop>avalaratax_224f5e74c7e0d63742fcff8e1776b3f0'] = 'Data di scadenza licenza:';
-$_MODULE['<{avalaratax}prestashop>avalaratax_63a77eaf9f310dc5def6709c2887dcc4'] = 'Test di connessione fallito';
-$_MODULE['<{avalaratax}prestashop>avalaratax_6053c937d7fec8bd03e6a9dce45b4104'] = 'Il numero di Acount o la chiave di Licenza sono incorratti. Per favore verifica entrambi prima di fare di nuovo un test';
-$_MODULE['<{avalaratax}prestashop>avalaratax_3b4f001aa4a4715a2449b8affb2eb3f5'] = 'errore(i)';
-$_MODULE['<{avalaratax}prestashop>avalaratax_d284d38f7ef7a9d00d82f8395510c845'] = 'L\'ordine selezionato è stao inviato';
-$_MODULE['<{avalaratax}prestashop>avalaratax_91b736ea6bbca1d447985ff6262cde25'] = 'Il seguente errore è stato generato durante l\'invio ordine a Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_62b4a111d5272f0d5e6da820de9fee8d'] = 'L\'ordine selezionato è stao aggiornato';
-$_MODULE['<{avalaratax}prestashop>avalaratax_c45e7677f4f5ccc23c0e4a6989308e8e'] = 'Il seguente errore è stato generato durante la cancellazione dell\'ordine a Avalara';
-$_MODULE['<{avalaratax}prestashop>avalaratax_2ac3d2e77dddb4c35713ba077a3a9639'] = 'L\'ordine selezionato è stao cancellato';
+<?php
+
+global $_MODULE;
+$_MODULE = array();
+$_MODULE['<{avalaratax}prestashop>avalaratax_fea2a64a31f1513f4b2565ebfaff597b'] = 'Avalara - AvaTax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_ae8a727f868a8bbca075451c34154bfe'] = 'Le tasse di vendita sono compilate, AvaTax le rende semplici.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6e25586fe78488784e764b8c7e523099'] = 'Il modulo è stato installato con successo, ma i seguenti file esistono già. Per favore inserisci i file manualmente';
+$_MODULE['<{avalaratax}prestashop>avalaratax_53c2b2432a6d2b3e69298041223f2677'] = 'I prodotti che hai selezionato saranno cancellati.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_580bc7347384fe1e3e2fdaf3930fdb00'] = 'Le regole per le tasse USA saranno sovrascritta dal Modulo Avalara Tax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_2929b1675a0788e25b46dd923bf8d6f4'] = 'Codice Tassa (Avalara)';
+$_MODULE['<{avalaratax}prestashop>avalaratax_56bb4e1f91985e7319c1d5cbe47096fe'] = 'L\'indirizzo che hai inviato è stato validato';
+$_MODULE['<{avalaratax}prestashop>avalaratax_45d416b0d62f0e9579a08fac59a8fe48'] = 'Il seguente errore è stato generato durante la validazione dell\'indirizzo';
+$_MODULE['<{avalaratax}prestashop>avalaratax_ffea2d321be109fc7243cfeb515fe257'] = 'Scegli la tua nazione';
+$_MODULE['<{avalaratax}prestashop>avalaratax_63406c9482c644975f227cc93788e8fb'] = 'Scegli la tua nazione';
+$_MODULE['<{avalaratax}prestashop>avalaratax_76b5416ce9c34cc4d45e337db00a653a'] = 'Questo modulo lavora SOLO negli USA e in Canada';
+$_MODULE['<{avalaratax}prestashop>avalaratax_0173b19e723017c74ca1d34bc7e6515b'] = 'Come configurare il modulo Avalara Tax:';
+$_MODULE['<{avalaratax}prestashop>avalaratax_3a0b9a760cae0b64183e2ed2b8b5789b'] = 'Riempi il numero di Account, la chiave di Licenza, il codice azienza con quelli forniti da Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_aea420a9b05a0b1c5c1823e13cdf5c4b'] = 'Secifica il tuo indirizzo di origine. Questo sarà da DOVe spedisci i tuoi prodotti (deve essere';
+$_MODULE['<{avalaratax}prestashop>avalaratax_eb60dad6b9af2493998d6201caae1faa'] = 'UN VALIDO INDIRIZZO NEGLI USA';
+$_MODULE['<{avalaratax}prestashop>avalaratax_558e731e858fbdb4de1b01be9283e7c0'] = 'Scopo del modulo:';
+$_MODULE['<{avalaratax}prestashop>avalaratax_a035358b6b8c497a70d2c5a838c27e6a'] = 'Questo sistema basato su Cloud è il più rapido, facile, precisa via per calcolare le tasse di vendita, certificati di rimborso, in tutti gli stati USA';
+$_MODULE['<{avalaratax}prestashop>avalaratax_343618e9fcce53224cc7a47c2145c5e5'] = 'Che modifiche fa il modulo al mio negozio?';
+$_MODULE['<{avalaratax}prestashop>avalaratax_227c1f6f0609c433fc3530aced1dd1a9'] = 'Tax.php, AddressController.php, and AuthController.php saranno sovrascritti';
+$_MODULE['<{avalaratax}prestashop>avalaratax_ed844b12d383390f1e8ac7796312390d'] = '[Payment Tab -> Taxes] and [Payment Tab -> Tax Rules] configurazioni saranno sovrascritti per gli US.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_3a2eb2cc29ccc9fc619e47fe4df5b148'] = 'Nel dettagli prodotto un campo opzionale: \"Tax Code\" verrò aggiunto dove tu potrai configurare il tuo codice tassa.';
+$_MODULE['<{avalaratax}prestashop>avalaratax_254f642527b45bc260048e30704edb39'] = 'Configurazione';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6910f753ce21ab6b256a2440296185df'] = 'Credenziali AvaTax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_2fcecaf04456ae2ceac826fd0ccaaf1c'] = 'Numero di account';
+$_MODULE['<{avalaratax}prestashop>avalaratax_5d5c4ad5db4bd841e161e43ac45bc5c6'] = 'Chiave di Licenza';
+$_MODULE['<{avalaratax}prestashop>avalaratax_e6b391a8d2c4d45902a23a8b6585703d'] = 'URL:';
+$_MODULE['<{avalaratax}prestashop>avalaratax_5f8257b5273b995afe894c6b851f115c'] = 'Codice Azienda';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c6a0ae4c3ae26cc37b15d7cf6494547c'] = 'Si trova in alto a destra nella tua console di amministrazione AvaTax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_9daf1fb753b42c3cdc8f1d01669cd6d8'] = 'Salva impostazioni';
+$_MODULE['<{avalaratax}prestashop>avalaratax_79ddd6cfbf01f63986f7b114ecc2ca95'] = 'Clicca qui per fare un test di connessione';
+$_MODULE['<{avalaratax}prestashop>avalaratax_dae8ace18bdcbcc6ae5aece263e14fe8'] = 'Opzioni';
+$_MODULE['<{avalaratax}prestashop>avalaratax_075f49c9bb1da54fd022ddcfb6a9f09b'] = 'Abilita verifica indirizzo';
+$_MODULE['<{avalaratax}prestashop>avalaratax_355fc749cbbfcba999612f3a91cd2667'] = 'Abilita calcolo tasse';
+$_MODULE['<{avalaratax}prestashop>avalaratax_4b8dfce98a161ad3ad9a5eab52225d86'] = 'Abilita conversione in maiuscolo dell\'indirizzo';
+$_MODULE['<{avalaratax}prestashop>avalaratax_db669c6377ab90eef78800a48fd4a453'] = 'Richiedi timeout';
+$_MODULE['<{avalaratax}prestashop>avalaratax_783e8e29e6a8c3e22baa58a19420eb4f'] = 'secondi';
+$_MODULE['<{avalaratax}prestashop>avalaratax_5b092e4c3fc280f8d23bc52c544498d8'] = 'Ricarica le percentuali di tasse ogni:';
+$_MODULE['<{avalaratax}prestashop>avalaratax_640fd0cc0ffa0316ae087652871f4486'] = 'minuti';
+$_MODULE['<{avalaratax}prestashop>avalaratax_06f4f7bd90b1c8a0145d18ee55c265c4'] = 'Cancella la cache';
+$_MODULE['<{avalaratax}prestashop>avalaratax_bf58340449ab95a854343bfb704b9638'] = 'Opzioni di default Ivia/Cancella/Rimbnorsa';
+$_MODULE['<{avalaratax}prestashop>avalaratax_7a9409d7e2a131729d052c4f0c40172c'] = 'Quando uno stato d\'ordine è aggiornato, la seguente azione aggiornerà i record di Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_004bf6c9a40003140292e97330236c53'] = 'Azione';
+$_MODULE['<{avalaratax}prestashop>avalaratax_4bb3e6ea4b1aa93c3429e410129b4be4'] = 'Stato ordine nel negozio';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c2557908b54658949a9cf6363befb940'] = 'invia ordine a Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6bcf0964b8e694d02aba7d7dfcdf5442'] = '[Errore] un valore di default non è stato trovato. Per favore re-imposta i valori di default di PrestaShop';
+$_MODULE['<{avalaratax}prestashop>avalaratax_73d84adcfc3b54cf9bec85791236b73d'] = 'invia ordine a Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_0316320415f5e35b004c81ae93cc36bd'] = 'Cancella ordine su Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_1fc4faeb7e0ececc2a6bd54abda65f73'] = 'Conferma ordine a Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c7a504ef03bdf275db8151959034f00b'] = 'Indirizzo origine di default';
+$_MODULE['<{avalaratax}prestashop>avalaratax_add3df7ab84caab59b62f89fdd35ac1f'] = 'Indirizzo riga 1';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6a7b0d5f2f1354e398923d81b0e4d6ab'] = 'Indirizzo aggiuntivo';
+$_MODULE['<{avalaratax}prestashop>avalaratax_57d056ed0984166336b7879c2af3657f'] = 'Città:';
+$_MODULE['<{avalaratax}prestashop>avalaratax_46a2a41cc6e552044816a2d04634545d'] = 'Status';
+$_MODULE['<{avalaratax}prestashop>avalaratax_5e178542b85fb18ca3c459e9a95f4f2e'] = 'CAP';
+$_MODULE['<{avalaratax}prestashop>avalaratax_59716c97497eb9694541f7c3d37b1a4d'] = 'Nazione';
+$_MODULE['<{avalaratax}prestashop>avalaratax_9410e0f9048d0fdecef38e745ce2e9ed'] = 'Consolle di admin di AvaTax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_f47aa2664e16e45a8b17e2f0a8a05b1c'] = 'Login sulla consolle di admin di AvaTax';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c888438d14855d7d96a2724ee9c306bd'] = 'Impostazioni aggiornate';
+$_MODULE['<{avalaratax}prestashop>avalaratax_70b07b7f1a6e3c7f20fd75461aaefb9f'] = 'Test di connessione eseguito con successo';
+$_MODULE['<{avalaratax}prestashop>avalaratax_f63f3c0a7a1fa62fa64ba8e8763f1106'] = 'Versione di Ping è:';
+$_MODULE['<{avalaratax}prestashop>avalaratax_224f5e74c7e0d63742fcff8e1776b3f0'] = 'Data di scadenza licenza:';
+$_MODULE['<{avalaratax}prestashop>avalaratax_63a77eaf9f310dc5def6709c2887dcc4'] = 'Test di connessione fallito';
+$_MODULE['<{avalaratax}prestashop>avalaratax_6053c937d7fec8bd03e6a9dce45b4104'] = 'Il numero di Acount o la chiave di Licenza sono incorratti. Per favore verifica entrambi prima di fare di nuovo un test';
+$_MODULE['<{avalaratax}prestashop>avalaratax_3b4f001aa4a4715a2449b8affb2eb3f5'] = 'errore(i)';
+$_MODULE['<{avalaratax}prestashop>avalaratax_d284d38f7ef7a9d00d82f8395510c845'] = 'L\'ordine selezionato è stao inviato';
+$_MODULE['<{avalaratax}prestashop>avalaratax_91b736ea6bbca1d447985ff6262cde25'] = 'Il seguente errore è stato generato durante l\'invio ordine a Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_62b4a111d5272f0d5e6da820de9fee8d'] = 'L\'ordine selezionato è stao aggiornato';
+$_MODULE['<{avalaratax}prestashop>avalaratax_c45e7677f4f5ccc23c0e4a6989308e8e'] = 'Il seguente errore è stato generato durante la cancellazione dell\'ordine a Avalara';
+$_MODULE['<{avalaratax}prestashop>avalaratax_2ac3d2e77dddb4c35713ba077a3a9639'] = 'L\'ordine selezionato è stao cancellato';
210 avalaratax/override/classes/Cart.php
View
@@ -1,105 +1,105 @@
-<?php
-/*
-* 2007-2011 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA <contact@prestashop.com>
-* @copyright 2007-2011 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-class Cart extends CartCore
-{
- /**
- * @brief Calculate the shipping cost.
- *
- * Override it in order to calculate and add the correct tax amount.
- *
- * @note This method is only called in PrestaShop < 1.5
- * @see Cart::geTotalShippingCost() for PrestaShop > 1.5
- *
- * @param integrer $id_carrier Id of the selected carrier
- * @param boolean $use_tax Do we want the taxes?
- * @param Country $default_country Unused 1.5 only, for inheritance compatibility
- * @param Array $product_list Unused 1.5 only, for inheritance compatibility
- *
- * @return float Price of the shipping.
- */
- public function getOrderShippingCost($id_carrier = null, $use_tax = true, Country $default_country = null, $product_list = null)
- {
- include_once(_PS_ROOT_DIR_.'/modules/avalaratax/avalaratax.php');
-
- /* Instanciate the Avalara module and check if active */
- $avalara = new AvalaraTax();
- if (!$avalara->active)
- return parent::getOrderShippingCost((int)$id_carrier, $use_tax, $default_country, $product_list);
-
- /* Retrieve the original carrier fee tax excluded */
- $tax_excluded_cost = parent::getOrderShippingCost((int)$id_carrier, false, $default_country, $product_list);
-
- /* If we want price without tax or if this carrier is tax free, return this price */
- if (!(int)$this->{Configuration::get('PS_TAX_ADDRESS_TYPE')} || !$use_tax || Db::getInstance()->getValue('SELECT `tax_code` FROM `'._DB_PREFIX_.'avalara_carrier_cache` WHERE `id_carrier` = '.(int)$id_carrier) == 'NT')
- return $tax_excluded_cost;
-
- /* If there is no cache or cache expired, we regenerate it */
- if (CacheTools::checkCarrierCache($this))
- CacheTools::updateCarrierTax($avalara, $this, $this->{Configuration::get('PS_TAX_ADDRESS_TYPE')}, $use_tax);
-
- /* If we do already know it, then return it */
- return $tax_excluded_cost + (float)CacheTools::getCarrierTaxAmount($this);
- }
-
- /**
- * @brief Calculate the shipping cost.
- *
- * Override it in order to calculate and add the correct tax amount.
- *
- * @note This method is only called in PrestaShop > 1.5
- * @see Cart::getOrderShippingCost() for PrestaShop < 1.5
- *
- * @param Array $delivery_option Delivery options
- * @param boolean $use_tax Do we want the taxes?
- * @param Country $default_country Default country (1.5 only)
- *
- * @return float Price of the shipping.
- */
- public function getTotalShippingCost($delivery_option = null, $use_tax = true, Country $default_country = null)
- {
- include_once(_PS_ROOT_DIR_.'/modules/avalaratax/avalaratax.php');
-
- /* Instanciate the Avalara module and check if active */
- $avalara = new AvalaraTax();
- if (!$avalara->active)
- return parent::getTotalShippingCost($delivery_option, $use_tax, $default_country);
-
- /* Retrieve the original carrier fee tax excluded */
- $tax_excluded_cost = parent::getTotalShippingCost($delivery_option, false, $default_country);
-
- /* If we want price without tax or if this carrier is tax free, return this price */
- if (!(int)$this->{Configuration::get('PS_TAX_ADDRESS_TYPE')} || !$use_tax)
- return $tax_excluded_cost;
-
- /* If there is no cache or cache expired, we regenerate it */
- if (CacheTools::checkCarrierCache($this))
- CacheTools::updateCarrierTax($avalara, $this, $this->{Configuration::get('PS_TAX_ADDRESS_TYPE')});
-
- /* If we do already know it, then return it */
- return $tax_excluded_cost + (float)CacheTools::getCarrierTaxAmount($this);
- }
-}
+<?php
+/*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/afl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA <contact@prestashop.com>
+* @copyright 2007-2011 PrestaShop SA
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+class Cart extends CartCore
+{
+ /**
+ * @brief Calculate the shipping cost.
+ *
+ * Override it in order to calculate and add the correct tax amount.
+ *
+ * @note This method is only called in PrestaShop < 1.5
+ * @see Cart::geTotalShippingCost() for PrestaShop > 1.5
+ *
+ * @param integrer $id_carrier Id of the selected carrier
+ * @param boolean $use_tax Do we want the taxes?
+ * @param Country $default_country Unused 1.5 only, for inheritance compatibility
+ * @param Array $product_list Unused 1.5 only, for inheritance compatibility
+ *
+ * @return float Price of the shipping.
+ */
+ public function getOrderShippingCost($id_carrier = null, $use_tax = true, Country $default_country = null, $product_list = null)
+ {
+ include_once(_PS_ROOT_DIR_.'/modules/avalaratax/avalaratax.php');
+
+ /* Instanciate the Avalara module and check if active */
+ $avalara = new AvalaraTax();
+ if (!$avalara->active)
+ return parent::getOrderShippingCost((int)$id_carrier, $use_tax, $default_country, $product_list);
+
+ /* Retrieve the original carrier fee tax excluded */
+ $tax_excluded_cost = parent::getOrderShippingCost((int)$id_carrier, false, $default_country, $product_list);
+
+ /* If we want price without tax or if this carrier is tax free, return this price */
+ if (!(int)$this->{Configuration::get('PS_TAX_ADDRESS_TYPE')} || !$use_tax || Db::getInstance()->getValue('SELECT `tax_code` FROM `'._DB_PREFIX_.'avalara_carrier_cache` WHERE `id_carrier` = '.(int)$id_carrier) == 'NT')
+ return $tax_excluded_cost;
+
+ /* If there is no cache or cache expired, we regenerate it */
+ if (CacheTools::checkCarrierCache($this))
+ CacheTools::updateCarrierTax($avalara, $this, $this->{Configuration::get('PS_TAX_ADDRESS_TYPE')}, $use_tax);
+
+ /* If we do already know it, then return it */
+ return $tax_excluded_cost + (float)CacheTools::getCarrierTaxAmount($this);
+ }
+
+ /**
+ * @brief Calculate the shipping cost.
+ *
+ * Override it in order to calculate and add the correct tax amount.
+ *
+ * @note This method is only called in PrestaShop > 1.5
+ * @see Cart::getOrderShippingCost() for PrestaShop < 1.5
+ *
+ * @param Array $delivery_option Delivery options
+ * @param boolean $use_tax Do we want the taxes?
+ * @param Country $default_country Default country (1.5 only)
+ *
+ * @return float Price of the shipping.
+ */
+ public function getTotalShippingCost($delivery_option = null, $use_tax = true, Country $default_country = null)
+ {
+ include_once(_PS_ROOT_DIR_.'/modules/avalaratax/avalaratax.php');
+
+ /* Instanciate the Avalara module and check if active */
+ $avalara = new AvalaraTax();
+ if (!$avalara->active)
+ return parent::getTotalShippingCost($delivery_option, $use_tax, $default_country);
+
+ /* Retrieve the original carrier fee tax excluded */
+ $tax_excluded_cost = parent::getTotalShippingCost($delivery_option, false, $default_country);
+
+ /* If we want price without tax or if this carrier is tax free, return this price */
+ if (!(int)$this->{Configuration::get('PS_TAX_ADDRESS_TYPE')} || !$use_tax)
+ return $tax_excluded_cost;
+
+ /* If there is no cache or cache expired, we regenerate it */
+ if (CacheTools::checkCarrierCache($this))
+ CacheTools::updateCarrierTax($avalara, $this, $this->{Configuration::get('PS_TAX_ADDRESS_TYPE')});
+
+ /* If we do already know it, then return it */
+ return $tax_excluded_cost + (float)CacheTools::getCarrierTaxAmount($this);
+ }
+}
70 avalaratax/override/classes/index.php
View
@@ -1,35 +1,35 @@
-<?php
-/*
-* 2007-2013 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Open Software License (OSL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/osl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA <contact@prestashop.com>
-* @copyright 2007-2013 PrestaShop SA
-* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
+<?php
+/*
+* 2007-2013 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Open Software License (OSL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/osl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA <contact@prestashop.com>
+* @copyright 2007-2013 PrestaShop SA
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
113 avalaratax/override/classes/tax/Tax.php
View
@@ -1,68 +1,45 @@
-<?php
-/*
-* 2007-2011 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA <contact@prestashop.com>
-* @copyright 2007-2011 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-class Tax extends TaxCore
-{
- /**
- * Return the product tax
- *
- * @param integer $id_product
- * @param integer $id_address
- * @return Tax Rate
- */
- public static function getProductTaxRate($id_product, $id_address = null, Context $context = null, $getCarrierRate = false)
- {
- include_once(_PS_ROOT_DIR_.'/modules/avalaratax/avalaratax.php');
-
- /* Instanciate the Avalara module and check if active */
- $avalara = new AvalaraTax();
- if (!$avalara->active)
- return parent::getProductTaxRate($id_product, $id_address, $getCarrierRate);
-
- /* With Avalara, we disable the tax for non logged users */
- if (!(int)$id_address)
- return 0.;
-
- $region = Db::getInstance()->getValue('SELECT s.`iso_code`
- FROM '._DB_PREFIX_.'address a
- LEFT JOIN '._DB_PREFIX_.'state s ON (s.`id_state` = a.`id_state`)
- WHERE a.`id_address` = '.(int)$id_address);
-
- /* If the Merchant does not want to calculate taxes outside his state and we are outside the state, we return 0 */
- if ((!empty($region) && $region != Configuration::get('AVALARATAX_STATE') && !Configuration::get('AVALARATAX_TAX_OUTSIDE')))
- return 0.;
-
- return (float)Db::getInstance()->getValue('SELECT ac.`tax_rate`
- FROM '._DB_PREFIX_.'avalara_'.($getCarrierRate ? 'carrier' : 'product').'_cache ac
- WHERE ac.`id_'.($getCarrierRate ? 'carrier' : 'product').'` = '.(int)$id_product.'
- AND ac.`region` = \''.pSQL($region).'\'');
- }
-
- public static function getCarrierTaxRate($id_carrier, $id_address = NULL)
- {
- return (float)self::getProductTaxRate($id_carrier, $id_address, null, true);
- }
-}
+<?php
+
+class Tax extends TaxCore
+{
+
+ /**
+ * Return the product tax
+ *
+ * @param integer $id_product
+ * @param integer $id_address
+ * @return Tax Rate
+ */
+ public static function getProductTaxRate($id_product, $id_address = null, Context $context = null, $getCarrierRate = false)
+ {
+ include_once(_PS_ROOT_DIR_.'/modules/avalaratax/avalaratax.php');
+
+ /* Instanciate the Avalara module and check if active */
+ $avalara = new AvalaraTax();
+ if (!$avalara->active)
+ return parent::getProductTaxRate($id_product, $id_address, $context);
+
+ /* With Avalara, we disable the tax for non logged users */
+ if (!(int)$id_address)
+ return 0.;
+
+ $region = Db::getInstance()->getValue('SELECT s.`iso_code`
+ FROM '._DB_PREFIX_.'address a
+ LEFT JOIN '._DB_PREFIX_.'state s ON (s.`id_state` = a.`id_state`)
+ WHERE a.`id_address` = '.(int)$id_address);
+
+ /* If the Merchant does not want to calculate taxes outside his state and we are outside the state, we return 0 */
+ if ((!empty($region) && $region != Configuration::get('AVALARATAX_STATE') && !Configuration::get('AVALARATAX_TAX_OUTSIDE')))
+ return 0.;
+
+ return (float)Db::getInstance()->getValue('SELECT ac.`tax_rate`
+ FROM '._DB_PREFIX_.'avalara_'.($getCarrierRate ? 'carrier' : 'product').'_cache ac
+ WHERE ac.`id_'.($getCarrierRate ? 'carrier' : 'product').'` = '.(int)$id_product.'
+ AND ac.`region` = \''.pSQL($region).'\'');
+ }
+
+ public static function getCarrierTaxRate($id_carrier, $id_address = NULL)
+ {
+ return (float)self::getProductTaxRate($id_carrier, $id_address, null, true);
+ }
+}
70 avalaratax/override/classes/tax/index.php
View
@@ -1,35 +1,35 @@
-<?php
-/*
-* 2007-2013 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Open Software License (OSL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/osl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA <contact@prestashop.com>
-* @copyright 2007-2013 PrestaShop SA
-* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
+<?php
+/*
+* 2007-2013 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Open Software License (OSL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/osl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA <contact@prestashop.com>
+* @copyright 2007-2013 PrestaShop SA
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
58 avalaratax/override/controllers/front/AddressController.php
View
@@ -1,39 +1,45 @@
<?php
-/*
-* 2007-2011 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Open Software License (OSL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/osl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA <contact@prestashop.com>
-* @copyright 2007-2011 PrestaShop SA
-* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
class AddressController extends AddressControllerCore
{
public function preProcess()
{
- if (Tools::isSubmit('submitAddress') || Tools::isSubmit('submitAccount'))
+ if (version_compare(_PS_VERSION_, '1.5', '<') && (Tools::isSubmit('submitAddress') || Tools::isSubmit('submitAccount')))
{
include_once(dirname(__FILE__).'/../../modules/avalaratax/avalaratax.php');
$avalaraModule = new AvalaraTax();
- $avalaraModule->fixPOST();
+ $result = $avalaraModule->fixPOST();
+ if (isset($result['ResultCode']) && $result['ResultCode'] == 'Error')
+ {
+ if (isset($result['Messages']['Summary']))
+ foreach ($result['Messages']['Summary'] as $error)
+ $this->errors[] = Tools::safeOutput($error);
+ else
+ $this->errors[] = Tools::displayError('This address cannot be submitted');
+ return false;
+ }
}
parent::preProcess();
}
+
+ public function processSubmitAddress()
+ {
+ include_once(_PS_MODULE_DIR_.'avalaratax/avalaratax.php');
+ $avalara_module = new AvalaraTax();
+ if ($avalara_module->active)
+ {
+ $result = $avalara_module->fixPOST();
+ if (isset($result['ResultCode']) && $result['ResultCode'] == 'Error')
+ {
+ if (isset($result['Messages']['Summary']))
+ foreach ($result['Messages']['Summary'] as $error)
+ $this->errors[] = Tools::safeOutput($error);
+ else
+ $this->errors[] = Tools::displayError('This address cannot be submitted');
+ return false;
+ }
+ }
+
+ parent::processSubmitAddress();
+ }
}
80 avalaratax/override/controllers/front/AuthController.php
View
@@ -1,40 +1,40 @@
-<?php
-/*
-* 2007-2011 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Open Software License (OSL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/osl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA <contact@prestashop.com>
-* @copyright 2007-2011 PrestaShop SA
-* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-class AuthController extends AuthControllerCore
-{
- public function preProcess()
- {
- if (Tools::isSubmit('submitAccount') || Tools::isSubmit('submitGuestAccount'))
- {
- include_once(dirname(__FILE__).'/../../modules/avalaratax/avalaratax.php');
- $avalaraModule = new AvalaraTax();
- $avalaraModule->fixPOST();
- }
-
- parent::preProcess();
- }
-}
+<?php
+/*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Open Software License (OSL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL: