Fianet_Core - Version 1.0.6

Version Notes

official commit

Download this release

Release Info

Developer Magento Core Team
Extension Fianet_Core
Version 1.0.6
Comparing to
See all releases


Code changes from version 1.0.5 to 1.0.6

Files changed (136) hide show
  1. app/code/community/Fianet/Core/Block/Adminhtml/Category/ProductType/Edit.php +1 -1
  2. app/code/community/Fianet/Core/Block/Adminhtml/Category/ProductType/Edit/Form.php +1 -1
  3. app/code/community/Fianet/Core/Block/Adminhtml/Configuration.php +1 -1
  4. app/code/community/Fianet/Core/Block/Adminhtml/Configuration/Content.php +1 -1
  5. app/code/community/Fianet/Core/Block/Adminhtml/Configuration/Edit/Form.php +1 -1
  6. app/code/community/Fianet/Core/Block/Adminhtml/Configuration/Tab.php +1 -1
  7. app/code/community/Fianet/Core/Block/Adminhtml/Fianetadmin.php +1 -1
  8. app/code/community/Fianet/Core/Block/Adminhtml/Fianetadmingrid.php +1 -1
  9. app/code/community/Fianet/Core/Block/Adminhtml/Log/Grid.php +1 -1
  10. app/code/community/Fianet/Core/Block/Adminhtml/Sales/Order/Grid.php +1 -1
  11. app/code/community/Fianet/Core/Block/Adminhtml/Store/Switcher.php +1 -1
  12. app/code/community/Fianet/Core/Block/Adminhtml/Tree/Abstract.php +1 -1
  13. app/code/community/Fianet/Core/Block/Adminhtml/Tree/ProductType.php +1 -1
  14. app/code/community/Fianet/Core/Block/Adminhtml/Tree/Products.php +1 -1
  15. app/code/community/Fianet/Core/Block/Adminhtml/Version.php +123 -0
  16. app/code/community/Fianet/Core/Block/Adminhtml/Widget/Grid/Column/Filter/Fianet.php +1 -1
  17. app/code/community/Fianet/Core/Block/Adminhtml/Widget/Grid/Column/Renderer/Fianet.php +1 -1
  18. app/code/community/Fianet/Core/Block/Category/Typeproduct/Edit.php +61 -0
  19. app/code/community/Fianet/Core/Block/Category/Typeproduct/Edit/Form.php +70 -0
  20. app/code/community/Fianet/Core/Block/Configuration.php +51 -0
  21. app/code/community/Fianet/Core/Block/Configuration/Content.php +86 -0
  22. app/code/community/Fianet/Core/Block/Configuration/Edit/Form.php +34 -0
  23. app/code/community/Fianet/Core/Block/Configuration/Tab.php +58 -0
  24. app/code/community/Fianet/Core/Block/Fianetadmin.php +31 -0
  25. app/code/community/Fianet/Core/Block/Fianetadmingrid.php +28 -0
  26. app/code/community/Fianet/Core/Block/Log/Grid.php +69 -0
  27. app/code/community/Fianet/Core/Block/Sales/Order/Grid.php +75 -0
  28. app/code/community/Fianet/Core/Block/Store/Switcher.php +102 -0
  29. app/code/community/Fianet/Core/Block/Tree/Abstract.php +92 -0
  30. app/code/community/Fianet/Core/Block/Tree/TypeProduct.php +46 -0
  31. app/code/community/Fianet/Core/Block/Widget/Grid/Column/Filter/Fianet.php +25 -0
  32. app/code/community/Fianet/Core/Block/Widget/Grid/Column/Renderer/Fianet.php +218 -0
  33. app/code/community/Fianet/Core/Controller/Tree/Abstract.php +1 -1
  34. app/code/community/Fianet/Core/Controller/Tree/ProductType.php +1 -1
  35. app/code/community/Fianet/Core/Controller/Tree/TypeProduct.php +73 -0
  36. app/code/community/Fianet/Core/Helper/Data.php +1 -1
  37. app/code/community/Fianet/Core/Model/Carrier/Abstract.php +1 -1
  38. app/code/community/Fianet/Core/Model/Catproduct/Association.php +1 -1
  39. app/code/community/Fianet/Core/Model/Configuration.php +1 -1
  40. app/code/community/Fianet/Core/Model/Configuration/Global.php +1 -1
  41. app/code/community/Fianet/Core/Model/Configuration/Value.php +1 -1
  42. app/code/community/Fianet/Core/Model/Fianet/EncodingKey.php +1 -1
  43. app/code/community/Fianet/Core/Model/Fianet/Hash32bits.php +1 -1
  44. app/code/community/Fianet/Core/Model/Fianet/Hash64bits.php +1 -1
  45. app/code/community/Fianet/Core/Model/Fianet/Order/Address/Base.php +1 -1
  46. app/code/community/Fianet/Core/Model/Fianet/Order/Address/Billing.php +1 -1
  47. app/code/community/Fianet/Core/Model/Fianet/Order/Address/Delivery.php +1 -1
  48. app/code/community/Fianet/Core/Model/Fianet/Order/Address/Transport.php +1 -1
  49. app/code/community/Fianet/Core/Model/Fianet/Order/Adress/Base.php +64 -0
  50. app/code/community/Fianet/Core/Model/Fianet/Order/Adress/Billing.php +24 -0
  51. app/code/community/Fianet/Core/Model/Fianet/Order/Adress/Delivery.php +24 -0
  52. app/code/community/Fianet/Core/Model/Fianet/Order/Info/Productlist.php +1 -1
  53. app/code/community/Fianet/Core/Model/Fianet/Order/Info/Productlist/Product.php +1 -1
  54. app/code/community/Fianet/Core/Model/Fianet/Order/Info/Rnp.php +53 -0
  55. app/code/community/Fianet/Core/Model/Fianet/Order/Info/Sac.php +59 -0
  56. app/code/community/Fianet/Core/Model/Fianet/Order/Info/Transport.php +1 -1
  57. app/code/community/Fianet/Core/Model/Fianet/Order/Optionpayment.php +1 -1
  58. app/code/community/Fianet/Core/Model/Fianet/Order/Payment.php +2 -3
  59. app/code/community/Fianet/Core/Model/Fianet/Order/Rnp.php +313 -0
  60. app/code/community/Fianet/Core/Model/Fianet/Order/User/Base.php +6 -3
  61. app/code/community/Fianet/Core/Model/Fianet/Order/User/Billing.php +1 -1
  62. app/code/community/Fianet/Core/Model/Fianet/Order/User/Delivery.php +1 -1
  63. app/code/community/Fianet/Core/Model/Fianet/Order/User/Siteconso.php +1 -1
  64. app/code/community/Fianet/Core/Model/Fianet/Order/Wallet.php +1 -1
  65. app/code/community/Fianet/Core/Model/Fianet/Paramcallback/Builder.php +1 -1
  66. app/code/community/Fianet/Core/Model/Fianet/Paramcallback/Element.php +1 -1
  67. app/code/community/Fianet/Core/Model/Fianet/Parser.php +10 -2
  68. app/code/community/Fianet/Core/Model/Fianet/Sender.php +76 -88
  69. app/code/community/Fianet/Core/Model/Functions.php +1 -1
  70. app/code/community/Fianet/Core/Model/Log.php +1 -1
  71. app/code/community/Fianet/Core/Model/MageConfiguration.php +1 -1
  72. app/code/community/Fianet/Core/Model/Mysql4/Abstract.php +1 -1
  73. app/code/community/Fianet/Core/Model/Mysql4/Catproduct/Association.php +1 -1
  74. app/code/community/Fianet/Core/Model/Mysql4/Catproduct/Association/Collection.php +1 -1
  75. app/code/community/Fianet/Core/Model/Mysql4/Configuration.php +1 -1
  76. app/code/community/Fianet/Core/Model/Mysql4/Configuration/Collection.php +1 -1
  77. app/code/community/Fianet/Core/Model/Mysql4/Configuration/Global.php +1 -1
  78. app/code/community/Fianet/Core/Model/Mysql4/Configuration/Value.php +1 -1
  79. app/code/community/Fianet/Core/Model/Mysql4/Configuration/Value/Collection.php +1 -1
  80. app/code/community/Fianet/Core/Model/Mysql4/Log.php +1 -1
  81. app/code/community/Fianet/Core/Model/Mysql4/Log/Collection.php +1 -1
  82. app/code/community/Fianet/Core/Model/Mysql4/Scope/Abstract.php +1 -1
  83. app/code/community/Fianet/Core/Model/Mysql4/Setup.php +1 -1
  84. app/code/community/Fianet/Core/Model/Mysql4/Shipping/Association.php +1 -1
  85. app/code/community/Fianet/Core/Model/Mysql4/Shipping/Association/Collection.php +1 -1
  86. app/code/community/Fianet/Core/Model/Mysql4/Store/Information.php +1 -1
  87. app/code/community/Fianet/Core/Model/Mysql4/Store/Information/Collection.php +1 -1
  88. app/code/community/Fianet/Core/Model/Observer.php +62 -0
  89. app/code/community/Fianet/Core/Model/Product.php +1 -1
  90. app/code/community/Fianet/Core/Model/Scope/Abstract.php +1 -1
  91. app/code/community/Fianet/Core/Model/Shipping/Association.php +1 -1
  92. app/code/community/Fianet/Core/Model/Source/Charset.php +1 -1
  93. app/code/community/Fianet/Core/Model/Source/Crypt.php +1 -1
  94. app/code/community/Fianet/Core/Model/Source/DeliveryTimes.php +1 -1
  95. app/code/community/Fianet/Core/Model/Source/Mode.php +1 -1
  96. app/code/community/Fianet/Core/Model/Source/ModeAction.php +27 -0
  97. app/code/community/Fianet/Core/Model/Source/PaymentType.php +31 -0
  98. app/code/community/Fianet/Core/Model/Source/ProductType.php +1 -1
  99. app/code/community/Fianet/Core/Model/Source/ShippingType.php +1 -1
  100. app/code/community/Fianet/Core/Model/Source/TypeProduct.php +44 -0
  101. app/code/community/Fianet/Core/Model/Store/Information.php +1 -1
  102. app/code/community/Fianet/Core/controllers/Adminhtml/Category/ProductTypeController.php +1 -1
  103. app/code/community/Fianet/Core/controllers/Adminhtml/ConfigurationController.php +1 -1
  104. app/code/community/Fianet/Core/controllers/Adminhtml/LogController.php +2 -2
  105. app/code/community/Fianet/Core/controllers/Adminhtml/OrderController.php +1 -1
  106. app/code/community/Fianet/Core/controllers/Adminhtml/ShippingController.php +1 -1
  107. app/code/community/Fianet/Core/controllers/Adminhtml/VersionsController.php +10 -0
  108. app/code/community/Fianet/Core/controllers/Category/TypeproductController.php +181 -0
  109. app/code/community/Fianet/Core/controllers/ConfigurationController.php +93 -0
  110. app/code/community/Fianet/Core/controllers/InsertController.php +49 -0
  111. app/code/community/Fianet/Core/controllers/LogController.php +84 -0
  112. app/code/community/Fianet/Core/controllers/ShippingController.php +61 -0
  113. app/code/community/Fianet/Core/etc/adminhtml.xml +10 -1
  114. app/code/community/Fianet/Core/etc/config.xml +25 -9
  115. app/code/community/Fianet/Core/etc/system.xml +26 -0
  116. app/code/community/Fianet/Core/sql/fianet_setup/mysql4-install-0.2.1.php +1 -1
  117. app/code/community/Fianet/Core/sql/fianet_setup/mysql4-upgrade-0.2.1-0.2.2.php +1 -1
  118. app/code/community/Fianet/Core/sql/fianet_setup/mysql4-upgrade-0.2.2-0.5.7.php +1 -1
  119. app/code/community/Fianet/Core/sql/fianet_setup/mysql4-upgrade-0.9.0-1.0.0.php +1 -1
  120. app/code/community/Fianet/Core/sql/fianet_setup/mysql4-upgrade-1.0.4-1.0.5.php +1 -1
  121. app/design/adminhtml/default/default/layout/fianet.xml +10 -1
  122. app/design/adminhtml/default/default/template/fianet/common/categoriestree.phtml +1 -1
  123. app/design/adminhtml/default/default/template/fianet/common/categorytreeformcontenair.phtml +1 -1
  124. app/design/adminhtml/default/default/template/fianet/common/catproduct.phtml +1 -1
  125. app/design/adminhtml/default/default/template/fianet/common/shipping.phtml +1 -1
  126. app/design/adminhtml/default/default/template/fianet/common/storeswitcher.phtml +1 -1
  127. app/design/adminhtml/default/default/template/fianet/common/versions.phtml +58 -0
  128. app/etc/modules/Fianet_Core.xml +2 -2
  129. app/locale/fr_FR/Fianet_Core.csv +7 -0
  130. js/fianet/calcMD5.js +175 -0
  131. js/fianet/log.js +42 -0
  132. package.xml +5 -5
  133. skin/adminhtml/default/default/images/fianet/manuel_PDF.png +0 -0
  134. skin/adminhtml/default/default/images/fianet/power_off.png +0 -0
  135. skin/adminhtml/default/default/images/fianet/power_on.png +0 -0
  136. skin/adminhtml/default/default/images/fianet/redirectToMagentoConnect.bmp +0 -0
app/code/community/Fianet/Core/Block/Adminhtml/Category/ProductType/Edit.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Category_ProductType_Edit extends Mage_Adminhtml_Block_Widget_Form_Container {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Category_ProductType_Edit extends Mage_Adminhtml_Block_Widget_Form_Container {
app/code/community/Fianet/Core/Block/Adminhtml/Category/ProductType/Edit/Form.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Category_ProductType_Edit_Form extends Mage_Adminhtml_Block_Widget_Form {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Category_ProductType_Edit_Form extends Mage_Adminhtml_Block_Widget_Form {
app/code/community/Fianet/Core/Block/Adminhtml/Configuration.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Configuration extends Mage_Adminhtml_Block_Widget_Form_Container {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Configuration extends Mage_Adminhtml_Block_Widget_Form_Container {
app/code/community/Fianet/Core/Block/Adminhtml/Configuration/Content.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Configuration_Content extends Mage_Adminhtml_Block_Widget_Form {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Configuration_Content extends Mage_Adminhtml_Block_Widget_Form {
app/code/community/Fianet/Core/Block/Adminhtml/Configuration/Edit/Form.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Configuration_Edit_Form extends Mage_Adminhtml_Block_Widget_Form {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Configuration_Edit_Form extends Mage_Adminhtml_Block_Widget_Form {
app/code/community/Fianet/Core/Block/Adminhtml/Configuration/Tab.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Configuration_Tab extends Mage_Adminhtml_Block_Widget_Tabs {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Configuration_Tab extends Mage_Adminhtml_Block_Widget_Tabs {
app/code/community/Fianet/Core/Block/Adminhtml/Fianetadmin.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_FianetAdmin extends Mage_Adminhtml_Block_Template {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_FianetAdmin extends Mage_Adminhtml_Block_Template {
app/code/community/Fianet/Core/Block/Adminhtml/Fianetadmingrid.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Fianetadmingrid extends Mage_Adminhtml_Block_Widget_Grid_Container {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Fianetadmingrid extends Mage_Adminhtml_Block_Widget_Grid_Container {
app/code/community/Fianet/Core/Block/Adminhtml/Log/Grid.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Log_Grid extends Mage_Adminhtml_Block_Widget_Grid {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Log_Grid extends Mage_Adminhtml_Block_Widget_Grid {
app/code/community/Fianet/Core/Block/Adminhtml/Sales/Order/Grid.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Sales_Order_Grid extends Mage_Adminhtml_Block_Sales_Order_Grid {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Sales_Order_Grid extends Mage_Adminhtml_Block_Sales_Order_Grid {
app/code/community/Fianet/Core/Block/Adminhtml/Store/Switcher.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Store_Switcher extends Mage_Adminhtml_Block_Template {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Store_Switcher extends Mage_Adminhtml_Block_Template {
app/code/community/Fianet/Core/Block/Adminhtml/Tree/Abstract.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Tree_Abstract extends Mage_Adminhtml_Block_Catalog_Category_Tree {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Tree_Abstract extends Mage_Adminhtml_Block_Catalog_Category_Tree {
app/code/community/Fianet/Core/Block/Adminhtml/Tree/ProductType.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Tree_ProductType extends Fianet_Core_Block_Adminhtml_Tree_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Tree_ProductType extends Fianet_Core_Block_Adminhtml_Tree_Abstract {
app/code/community/Fianet/Core/Block/Adminhtml/Tree/Products.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Tree_Products extends Fianet_Core_Block_Adminhtml_Tree_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Tree_Products extends Fianet_Core_Block_Adminhtml_Tree_Abstract {
app/code/community/Fianet/Core/Block/Adminhtml/Version.php ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2014 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author FIA-NET <support-boutique@fia-net.com>
14
+ * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_Adminhtml_Version extends Mage_Adminhtml_Block_Template {
19
+
20
+ public function getModulesInfos() {
21
+ try {
22
+ $modules = (array)Mage::getConfig()->getNode('modules')->children();
23
+ $modulesFianet = array();
24
+ foreach ($modules as $name => $content) {
25
+ $url = ''; $pdf = '';
26
+ if (preg_match('#Fianet#', $name)) {
27
+ if (preg_match('#Core#', $name)) {
28
+ $url = 'http://www.magentocommerce.com/magento-connect/fia-net-fianet-core.html';
29
+ $xmlMagentoConnect = 'http://connect20.magentocommerce.com/community/Fianet_Core/releases.xml';
30
+ }
31
+ if (preg_match('#Sac#', $name)) {
32
+ $url = 'http://www.magentocommerce.com/magento-connect/fia-net-certissim.html';
33
+ $xmlMagentoConnect = 'http://connect20.magentocommerce.com/community/Fianet_Sac/releases.xml';
34
+ $pdf = 'https://static.fia-net.com/__integration/docs/Magento_Guide_Integration_Certissim_15.pdf';
35
+ }
36
+ if (preg_match('#Kwixo#', $name)) {
37
+ $url = 'http://www.magentocommerce.com/magento-connect/fia-net-kwixo.html';
38
+ $xmlMagentoConnect = 'http://connect20.magentocommerce.com/community/Fianet_Kwixo/releases.xml';
39
+ $pdf = 'https://static.fia-net.com/__integration/docs/Magento_Guide_Integration_Kwixo_15.pdf';
40
+ }
41
+ if (preg_match('#Sceau#', $name)) {
42
+ $url = 'http://www.magentocommerce.com/magento-connect/fia-net-sceau-de-confiance.html';
43
+ $xmlMagentoConnect = 'http://connect20.magentocommerce.com/community/Fianet_Sceau/releases.xml';
44
+ $pdf = 'https://static.fia-net.com/__integration/docs/Magento_Guide_Integration_Sceau_15.pdf';
45
+ }
46
+ $xml = simplexml_load_file($xmlMagentoConnect);
47
+ $lastversion = $xml->xpath("/releases/r[last()]");
48
+
49
+ $modulesFianet[$name]['version'] = (string)$content->version;
50
+ $modulesFianet[$name]['active'] = $content->active;
51
+ $modulesFianet[$name]['link'] = $url;
52
+ $modulesFianet[$name]['pdf'] = $pdf;
53
+ $modulesFianet[$name]['magentoconnect']['version'] = $lastversion[0]->v;
54
+ $modulesFianet[$name]['magentoconnect']['state'] = $lastversion[0]->s;
55
+ $modulesFianet[$name]['magentoconnect']['date'] = date("d/m/Y", strtotime($lastversion[0]->d));
56
+ }
57
+ }
58
+ return $modulesFianet;
59
+ } catch (Exception $e) {
60
+
61
+ }
62
+ }
63
+
64
+ public function getVersion($installedVersion, $magentoconnectInfos) {
65
+ $img = 'fam_bullet_success.gif';
66
+ $title = 'Module à jour';
67
+ if (version_compare($installedVersion, $magentoconnectInfos['version'], '<')) {
68
+ $title = 'Une version plus récente est disponible : &#10;Version '. $magentoconnectInfos['version'] . ' (' . $magentoconnectInfos['state'] . ') - sortie le ' . $magentoconnectInfos['date'];
69
+ $img = 'warning_msg_icon.gif';
70
+ }
71
+ return $installedVersion . ' <img src="' . $this->getSkinUrl('images/' . $img) . '" title="' . $title . '">' . $warning;
72
+ }
73
+
74
+ public function getPictoActive($active) {
75
+ $img = 'power_off.png';
76
+ $title = 'Module d&eacute;sactiv&eacute;';
77
+ if ($active == "true") {
78
+ $img = 'power_on.png';
79
+ $title = 'Module activ&eacute;';
80
+ }
81
+ return '<img src = "' . $this->getSkinUrl('images/fianet/' . $img . '"') . '" title="' . $title . '"> ';
82
+ }
83
+
84
+ public function getContentMail($modules) {
85
+ $id = Mage::app()->getStore()->getId();
86
+
87
+ $text = "Bonjour,%0D%0A%0D%0A";
88
+ $text .= "Je souhaite vous soumettre la question suivante : %0D%0A%0D%0A=>%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A";
89
+ if (isset($modules)) {
90
+ $text .= "Pour vous aider dans la résolution du point, voici ma configuration boutique : %0D%0A%0D%0A";
91
+ foreach ($modules as $name => $content) {
92
+ $text .="- " . $name . " version " . $content['version'] ;
93
+ if ($content['active'] == "false") {
94
+ $text .= " (inactif)";
95
+ }
96
+ if ($name == "Fianet_Sac") {
97
+ $login = Mage::getStoreConfig('sac/sacconfg/siteid', $id);
98
+ if ($login == null && $id > 0)
99
+ $login = Mage::getStoreConfig('sac/sacconfg/siteid', '0');
100
+ if ($login)
101
+ $text .= " compte " . $login;
102
+ }
103
+ if ($name == "Fianet_Kwixo") {
104
+ $login = Mage::getStoreConfig('kwixo/kwixoconfg/siteid', $id);
105
+ if ($login == null && $id > 0)
106
+ $login = Mage::getStoreConfig('kwixo/kwixoconfg/siteid', '0');
107
+ if ($login)
108
+ $text .= " compte " . $login;
109
+ }
110
+ if ($name == "Fianet_Sceau") {
111
+ $login = Mage::getStoreConfig('sceau/sceauconfg/siteid', $id);
112
+ if ($login == null && $id > 0)
113
+ $login = Mage::getStoreConfig('sceau/sceauconfg/siteid', '0');
114
+ if ($login)
115
+ $text .= " compte " . $login;
116
+ }
117
+ $text .= " ; %0D%0A";
118
+ }
119
+ }
120
+
121
+ return $text;
122
+ }
123
+ }
app/code/community/Fianet/Core/Block/Adminhtml/Widget/Grid/Column/Filter/Fianet.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Widget_Grid_Column_Filter_Fianet extends Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Widget_Grid_Column_Filter_Fianet extends Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Abstract {
app/code/community/Fianet/Core/Block/Adminhtml/Widget/Grid/Column/Renderer/Fianet.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Widget_Grid_Column_Renderer_Fianet extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Block_Adminhtml_Widget_Grid_Column_Renderer_Fianet extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract {
app/code/community/Fianet/Core/Block/Category/Typeproduct/Edit.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_Category_Typeproduct_Edit extends Mage_Adminhtml_Block_Widget_Form_Container {
19
+
20
+ public function __construct() {
21
+ parent::__construct();
22
+ $this->_objectId = 'id';
23
+ $this->_controller = 'category_typeproduct';
24
+ $this->_mode = 'edit';
25
+ $this->_blockGroup = 'fianet';
26
+
27
+ $this->_updateButton('save', 'label', $this->__('Save'));
28
+ $this->_updateButton('save', 'url', $this->getSaveUrl());
29
+ $categoryId = (int) $this->getRequest()->getParam('id');
30
+ if ($categoryId > 0) {
31
+ $producttype = Mage::getModel('fianet/Catproduct_association')->loadByCategorieId($categoryId);
32
+ if ($producttype->getId() == 0) {
33
+ $this->_removeButton('delete');
34
+ }
35
+ } else {
36
+ $this->_removeButton('save');
37
+ }
38
+ $this->_removeButton('reset');
39
+ }
40
+
41
+ public function getHeaderText() {
42
+ $categoryId = (int) $this->getRequest()->getParam('id');
43
+
44
+ if ($categoryId <= 0) {
45
+ return Mage::helper('fianet')->__('Categories configuration');
46
+ }
47
+ $category = Mage::getModel('catalog/category')->load($categoryId);
48
+ return Mage::helper('fianet')->__("Categorie's %s configuration", $category->getName());
49
+ }
50
+
51
+ public function getDeleteUrl() {
52
+ $storeId = $this->getRequest()->getParam('store', 0);
53
+ //return $this->getUrl('*/*/delete', array($this->_objectId => $this->getRequest()->getParam($this->_objectId), 'store' => $storeId));
54
+ }
55
+
56
+ public function getSaveUrl() {
57
+ $storeId = $this->getRequest()->getParam('store', 0);
58
+ //return $this->getUrl('*/*/delete', array($this->_objectId => $this->getRequest()->getParam($this->_objectId), 'store' => $storeId));
59
+ }
60
+
61
+ }
app/code/community/Fianet/Core/Block/Category/Typeproduct/Edit/Form.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_Category_Typeproduct_Edit_Form extends Mage_Adminhtml_Block_Widget_Form {
19
+
20
+ protected function _prepareForm() {
21
+ $form = new Varien_Data_Form(
22
+ array(
23
+ 'id' => 'edit_form',
24
+ 'action' => $this->getUrl('*/*/save'),
25
+ 'method' => 'post',
26
+ 'enctype' => 'multipart/form-data'
27
+ )
28
+ );
29
+
30
+
31
+ $categoryId = (int) $this->getRequest()->getParam('id');
32
+ if ($categoryId <= 0) {
33
+ return parent::_prepareForm();
34
+ }
35
+ $producttype = Mage::getModel('fianet/Catproduct_association')->loadByCategorieId($categoryId);
36
+ $storeId = (int) $this->getRequest()->getParam('store');
37
+ //Zend_Debug::dump($storeId,'$storeId');
38
+
39
+ $fieldset = $form->addFieldset('fianet_form', array('legend' => Mage::helper('fianet')->__('Categories configuration')));
40
+ $fieldset->addField('storeId', 'hidden', array(
41
+ 'required' => true,
42
+ 'name' => 'storeId',
43
+ 'value' => $storeId,
44
+ ));
45
+ $fieldset->addField('id', 'hidden', array(
46
+ 'required' => true,
47
+ 'name' => 'id',
48
+ 'value' => $categoryId,
49
+ ));
50
+
51
+ $fieldset->addField('typeProduct', 'select', array(
52
+ 'label' => Mage::Helper('fianet')->__('Product type'),
53
+ 'class' => 'required-entry',
54
+ 'required' => true,
55
+ 'name' => 'typeProduct',
56
+ 'value' => $producttype->getFianet_product_type(),
57
+ 'values' => Mage::getModel('fianet/source_TypeProduct')->toOptionArray()
58
+ ));
59
+ $fieldset->addField('applysubcat', 'checkbox', array(
60
+ 'label' => Mage::Helper('fianet')->__('Apply to sub-categories'),
61
+ 'name' => 'applysubcat'
62
+ ));
63
+
64
+
65
+ $form->setUseContainer(true);
66
+ $this->setForm($form);
67
+ return parent::_prepareForm();
68
+ }
69
+
70
+ }
app/code/community/Fianet/Core/Block/Configuration.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_Configuration extends Mage_Adminhtml_Block_Widget_Form_Container {
19
+
20
+ public function __construct() {
21
+ parent::__construct();
22
+
23
+ $this->_objectId = 'id';
24
+
25
+ $this->_blockGroup = 'fianet';
26
+ $this->_controller = 'configuration';
27
+ $this->_mode = 'edit';
28
+
29
+ $this->_updateButton('save', 'label', $this->__('Save'));
30
+ $storeId = (integer) $this->getRequest()->getParam('store', 0);
31
+ if ($storeId > 0) {
32
+ $deleteButtonData = array(
33
+ 'label' => $this->__('Delete'),
34
+ 'onclick' => 'deleteConfirm(\'' . Mage::helper('adminhtml')->__('Are you sure you want to do this?') . '\', \'' . $this->getDeleteUrl() . '\')',
35
+ 'class' => 'delete',
36
+ 'level' => '-1',
37
+ );
38
+ $this->_addButton('delete', $deleteButtonData);
39
+ }
40
+ }
41
+
42
+ public function getHeaderText() {
43
+ return Mage::helper('fianet')->__('Manage configuration');
44
+ }
45
+
46
+ public function getDeleteUrl() {
47
+ $storeId = $this->getRequest()->getParam('store', 0);
48
+ return $this->getUrl('*/*/delete', array('store' => $storeId));
49
+ }
50
+
51
+ }
app/code/community/Fianet/Core/Block/Configuration/Content.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_Configuration_Content extends Mage_Adminhtml_Block_Widget_Form {
19
+
20
+ protected function _prepareForm() {
21
+ $storeId = $this->getRequest()->getParam('store', 0);
22
+ $form = new Varien_Data_Form(array(
23
+ 'id' => 'edit_form',
24
+ 'action' => $this->getUrl('*/*/save'),
25
+ 'method' => 'post',
26
+ 'enctype' => 'multipart/form-data'
27
+ )
28
+ );
29
+ //$form->setUseContainer(true);
30
+ $this->setForm($form);
31
+ $fieldset = $form->addFieldset('fianet_form', array('legend' => Mage::helper('fianet')->__('Normal')));
32
+ $fieldset->addField('storeId', 'hidden', array(
33
+ 'class' => 'required-entry',
34
+ 'required' => true,
35
+ 'name' => 'storeId',
36
+ 'value' => $storeId,
37
+ ));
38
+ //$this->getSkinUrl('images/fianet/RnP.gif');
39
+ foreach ($this->configuration as $conf) {
40
+ $fieldset_name = $conf->advanced == '0' ? 'fieldset' : 'fieldset_adv';
41
+ if ($conf->type == $this->type) {
42
+ if ($fieldset_name == 'fieldset_adv' && !isset($fieldset_adv)) {
43
+ $fieldset_adv = $form->addFieldset('fianet_form_adv', array('legend' => Mage::helper('fianet')->__('Advanced')));
44
+ }
45
+ if ($conf->is_global == '0') {
46
+ $note = '[' . $this->__(Mage::getModel('fianet/configuration_global')->load('CONFIGURATION_SCOPE')->Value) . ']';
47
+ $value = Mage::getModel('fianet/configuration_value')
48
+ ->setScope($storeId)
49
+ ->load($conf->code)
50
+ ->getValue();
51
+ } else {
52
+ $note = '[GLOBAL]';
53
+ $value = Mage::getModel('fianet/configuration_global')->load($conf->code)->Value;
54
+ }
55
+ if (is_null($value)) {
56
+ $value = $conf->default_value;
57
+ }
58
+ if (!$conf->values) {
59
+
60
+ ${$fieldset_name}->addField($conf->code, 'text', array(
61
+ 'label' => $this->__($conf->text),
62
+ 'class' => 'required-entry',
63
+ 'required' => true,
64
+ 'note' => $note,
65
+ 'name' => $conf->code,
66
+ 'value' => $value,
67
+ ));
68
+ } else {
69
+ eval('$values = ' . $conf->values . ';');
70
+ ${$fieldset_name}->addField($conf->code, 'select', array(
71
+ 'label' => $this->__($conf->text),
72
+ 'class' => 'required-entry',
73
+ 'required' => true,
74
+ 'note' => $note,
75
+ 'name' => $conf->code,
76
+ 'value' => $value,
77
+ 'values' => $values,
78
+ ));
79
+ }
80
+ }
81
+ }
82
+
83
+ return parent::_prepareForm();
84
+ }
85
+
86
+ }
app/code/community/Fianet/Core/Block/Configuration/Edit/Form.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_Configuration_Edit_Form extends Mage_Adminhtml_Block_Widget_Form {
19
+
20
+ protected function _prepareForm() {
21
+ $form = new Varien_Data_Form(array(
22
+ 'id' => 'edit_form',
23
+ 'action' => $this->getUrl('*/*/save'),
24
+ 'method' => 'post',
25
+ 'enctype' => 'multipart/form-data'
26
+ )
27
+ );
28
+
29
+ $form->setUseContainer(true);
30
+ $this->setForm($form);
31
+ return parent::_prepareForm();
32
+ }
33
+
34
+ }
app/code/community/Fianet/Core/Block/Configuration/Tab.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_Configuration_Tab extends Mage_Adminhtml_Block_Widget_Tabs {
19
+
20
+ public function __construct() {
21
+ parent::__construct();
22
+ $this->setId('fianet_tab');
23
+ $this->setDestElementId('edit_form');
24
+ $this->setTitle(Mage::helper('fianet')->__('Configuration'));
25
+ }
26
+
27
+ protected function _beforeToHtml() {
28
+ return parent::_beforeToHtml();
29
+ }
30
+
31
+ public function addConfigurationTab($name, $label, $title, $type) {
32
+ $label = Mage::helper('fianet')->__($label);
33
+ $title = Mage::helper('fianet')->__($title);
34
+ if ($type == 'R') {
35
+ $label = '<img src="' . $this->getSkinUrl('images/fianet/RnP.gif') . '"> ' . $label;
36
+ }
37
+ if ($type == 'S') {
38
+ $label = '<img src="' . $this->getSkinUrl('images/fianet/fianet_SAC_icon.gif') . '"> ' . $label;
39
+ }
40
+ if ($type != 'R' && $type != 'G' && $type != 'S') {
41
+ Mage::throwException($this->__('Invalid tab type, must be R, S or G.'));
42
+ }
43
+
44
+ $Configuration = Mage::getModel('fianet/configuration')
45
+ ->getCollection()
46
+ ->setOrder('sort', 'asc');
47
+ $genericBlock = $this->getLayout()->createBlock('fianet/configuration_content')
48
+ ->setData('configuration', $Configuration)
49
+ ->setData('advanced', '0');
50
+
51
+ $this->addTab($name, array(
52
+ 'label' => $label,
53
+ 'title' => $title,
54
+ 'content' => $genericBlock->setData('type', $type)->toHtml()
55
+ ));
56
+ }
57
+
58
+ }
app/code/community/Fianet/Core/Block/Fianetadmin.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_FianetAdmin extends Mage_Adminhtml_Block_Template {
19
+
20
+ public function _prepareLayout() {
21
+ return parent::_prepareLayout();
22
+ }
23
+
24
+ public function getFianet() {
25
+ if (!$this->hasData('fianet')) {
26
+ $this->setData('fianet', Mage::registry('fianet'));
27
+ }
28
+ return $this->getData('fianet');
29
+ }
30
+
31
+ }
app/code/community/Fianet/Core/Block/Fianetadmingrid.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_Fianetadmingrid extends Mage_Adminhtml_Block_Widget_Grid_Container {
19
+
20
+ public function __construct() {
21
+ $this->_controller = 'log';
22
+ $this->_blockGroup = 'fianet';
23
+ $this->_headerText = Mage::helper('fianet')->__('Log');
24
+ $this->setTemplate('widget/grid/container.phtml');
25
+ //$this->_addButtonLabel = Mage::helper('fianet')->__('Add Item');
26
+ }
27
+
28
+ }
app/code/community/Fianet/Core/Block/Log/Grid.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_Log_Grid extends Mage_Adminhtml_Block_Widget_Grid {
19
+
20
+ public function __construct() {
21
+ parent::__construct();
22
+ $this->setId('fianetGrid');
23
+ $this->setDefaultSort('date');
24
+ $this->setDefaultDir('DESC');
25
+ $this->setSaveParametersInSession(true);
26
+ }
27
+
28
+ protected function _prepareCollection() {
29
+ $collection = Mage::getModel('fianet/log')->getCollection();
30
+ $this->setCollection($collection);
31
+ return parent::_prepareCollection();
32
+ }
33
+
34
+ protected function _prepareColumns() {
35
+ $this->addColumn('date', array(
36
+ 'header' => Mage::helper('fianet')->__('Date'),
37
+ 'align' => 'left',
38
+ 'index' => 'date',
39
+ 'type' => 'datetime',
40
+ ));
41
+
42
+ $this->addColumn('message', array(
43
+ 'header' => Mage::helper('fianet')->__('Message'),
44
+ 'align' => 'left',
45
+ 'index' => 'message',
46
+ ));
47
+ $this->addExportType('*/*/exportCsv', Mage::helper('fianet')->__('CSV'));
48
+ $this->addExportType('*/*/exportXml', Mage::helper('fianet')->__('XML'));
49
+ return parent::_prepareColumns();
50
+ }
51
+
52
+ protected function _prepareMassaction() {
53
+ $this->setMassactionIdField('id');
54
+ $this->getMassactionBlock()->setFormFieldName('logform');
55
+ $this->getMassactionBlock()->addItem('delete', array(
56
+ 'label' => Mage::helper('fianet')->__('Delete'),
57
+ 'url' => $this->getUrl('*/*/massDelete'),
58
+ 'confirm' => html_entity_decode(Mage::helper('fianet')->__('Are you sure ?'), ENT_COMPAT, 'UTF-8')
59
+ ));
60
+
61
+ return $this;
62
+ }
63
+
64
+ /*
65
+ public function getRowUrl($row)
66
+ {
67
+ return $this->getUrl('', array('id' => $row->getId()));
68
+ } */
69
+ }
app/code/community/Fianet/Core/Block/Sales/Order/Grid.php ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_Sales_Order_Grid extends Mage_Adminhtml_Block_Sales_Order_Grid {
19
+
20
+ /*protected function _prepareCollection() {
21
+ parent::_prepareCollection();
22
+ $collection = $this->getCollection()->clear();
23
+ //$collection->joinAttribute('fianet_rnp_tag', 'order/fianet_rnp_tag', 'entity_id', null, 'left');
24
+ //$collection->addAttributeToSelect('fianet_rnp_tag', 'outer');
25
+ $this->getCollection()->load();
26
+ $this->setCollection($collection);
27
+ }*/
28
+
29
+ protected function _prepareColumns() {
30
+ parent::_prepareColumns();
31
+ $this->addColumn('fianet', array(
32
+ 'header' => 'FIA-NET',
33
+ 'sortable' => false,
34
+ 'type' => 'fianet',
35
+ 'align' => 'center',
36
+ 'width' => '20',
37
+ 'renderer' => 'fianet/widget_grid_column_renderer_fianet',
38
+ 'filter' => 'fianet/widget_grid_column_filter_fianet'
39
+ ));
40
+ }
41
+
42
+ protected function _prepareMassaction() {
43
+ parent::_prepareMassaction();
44
+
45
+ if (Fianet_Core_Model_Configuration::CheckModuleIsInstalled('Fianet_Sac')) {
46
+ //Retiré la reception des évaluations et des reevaluations dans la page commande pour éviter des lenteurs é l'ouverture de la page
47
+ //le cron est utilisé en remplacement
48
+
49
+ /*
50
+ $nb = 0;
51
+ try {
52
+ $nb = Mage::getModel('sac/action')->getEvaluation();
53
+ } catch (Exception $e) {
54
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
55
+ }
56
+ if ($nb > 0) {
57
+ Mage::getSingleton('adminhtml/session')->addSuccess($this->__('%s evaluation(s) successfully receipted', $nb));
58
+ }
59
+
60
+ Mage::getModel('sac/action')->GetReevaluation();
61
+ */
62
+
63
+ $this->getMassactionBlock()->addItem('sent_sac', array(
64
+ 'label' => Mage::helper('fianet')->__('Sent to SAC FIA-NET'),
65
+ 'url' => $this->getUrl('sac/order/sentSac'),
66
+ ));
67
+ $this->getMassactionBlock()->addItem('get_eval', array(
68
+ 'label' => Mage::helper('fianet')->__('Get evaluations'),
69
+ 'url' => $this->getUrl('sac/order/getEvaluation'),
70
+ ));
71
+ }
72
+ return $this;
73
+ }
74
+
75
+ }
app/code/community/Fianet/Core/Block/Store/Switcher.php ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_Store_Switcher extends Mage_Adminhtml_Block_Template {
19
+
20
+ protected $_storeIds;
21
+
22
+ public function __construct() {
23
+ parent::__construct();
24
+ $this->setTemplate('fianet/common/storeswitcher.phtml');
25
+ $this->setUseConfirm(true);
26
+ $this->setDefaultStoreName($this->Helper('fianet')->__('All Store'));
27
+ }
28
+
29
+ public function getWebsiteCollection() {
30
+ $collection = Mage::getModel('core/website')->getResourceCollection();
31
+
32
+ $websiteIds = $this->getWebsiteIds();
33
+ if (!is_null($websiteIds)) {
34
+ $collection->addIdFilter($this->getWebsiteIds());
35
+ }
36
+
37
+ return $collection->load();
38
+ }
39
+
40
+ public function getGroupCollection($website) {
41
+ if (!$website instanceof Mage_Core_Model_Website) {
42
+ $website = Mage::getModel('core/website')->load($website);
43
+ }
44
+ return $website->getGroupCollection();
45
+ }
46
+
47
+ public function getStoreCollection($group) {
48
+ if (!$group instanceof Mage_Core_Model_Store_Group) {
49
+ $group = Mage::getModel('core/store_group')->load($group);
50
+ }
51
+ $stores = $group->getStoreCollection();
52
+ if (!empty($this->_storeIds)) {
53
+ $stores->addIdFilter($this->_storeIds);
54
+ }
55
+ return $stores;
56
+ }
57
+
58
+ public function getSwitchUrl() {
59
+ if ($url = $this->getData('switch_url')) {
60
+ return $url;
61
+ }
62
+ return $this->getUrl('*/*/*', array('_current' => true, 'store' => null));
63
+ }
64
+
65
+ public function getStoreId() {
66
+ return $this->getRequest()->getParam('store');
67
+ }
68
+
69
+ public function setStoreIds($storeIds) {
70
+ $this->_storeIds = $storeIds;
71
+ return $this;
72
+ }
73
+
74
+ public function getDefaultStoreName() {
75
+ $scope = Mage::getModel('fianet/configuration_global')->load('CONFIGURATION_SCOPE')->Value;
76
+ $name = 'All';
77
+ switch ($scope) {
78
+ case('website_id'):
79
+ $name = 'All website';
80
+ break;
81
+ case('group_id'):
82
+ $name = 'All store';
83
+ break;
84
+ case('store_id'):
85
+ $name = 'All store view';
86
+ break;
87
+ }
88
+ return ($this->__($name));
89
+ }
90
+
91
+ public function isShow() {
92
+ return !Mage::app()->isSingleStoreMode();
93
+ }
94
+
95
+ protected function _toHtml() {
96
+ if (!Mage::app()->isSingleStoreMode()) {
97
+ return parent::_toHtml();
98
+ }
99
+ return '';
100
+ }
101
+
102
+ }
app/code/community/Fianet/Core/Block/Tree/Abstract.php ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_Tree_Abstract extends Mage_Adminhtml_Block_Catalog_Category_Tree {
19
+
20
+ public function __construct() {
21
+ parent::__construct();
22
+ $this->setTemplate('fianet/common/categoriestree.phtml');
23
+ $this->setUseAjax(true);
24
+ $this->_withProductCount = false;
25
+ }
26
+
27
+ protected function _prepareLayout() {
28
+ return parent::_prepareLayout();
29
+ $addUrl = $this->getUrl("*/*/add", array(
30
+ '_current' => true,
31
+ 'id' => null,
32
+ '_query' => false
33
+ ));
34
+
35
+ $this->setChild('store_switcher', $this->getLayout()->createBlock('adminhtml/store_switcher')
36
+ ->setSwitchUrl($this->getUrl('*/*/*', array('_current' => true, '_query' => false, 'store' => null)))
37
+ ->setTemplate('store/switcher/enhanced.phtml')
38
+ );
39
+ }
40
+
41
+ public function getSwitchTreeUrl() {
42
+ return $this->getUrl("*/*/tree", array('_current' => true, 'store' => null, '_query' => false, 'id' => null, 'parent' => null));
43
+ //return $this->getUrl("adminhtml/catalog_category/tree", array('_current'=>true, 'store'=>null, '_query'=>false, 'id'=>null, 'parent'=>null));
44
+ }
45
+
46
+ public function getNodesUrl() {
47
+ return $this->getUrl('adminhtml/catalog_category/jsonTree');
48
+ }
49
+
50
+ public function getEditUrl() {
51
+ return $this->getUrl('*/*/edit', array('_current' => true, '_query' => false, 'id' => null, 'parent' => null));
52
+ }
53
+
54
+ public function buildNodeName($node) {
55
+ $result = $this->htmlEscape($node->getName());
56
+ if ($this->_withProductCount) {
57
+ $result .= ' (' . $node->getProductCount() . ')';
58
+ }
59
+ return $result;
60
+ }
61
+
62
+ protected function _getNodeJson($node, $level = 0) {
63
+ $item = array();
64
+ $item['text'] = $this->buildNodeName($node);
65
+ $rootForStores = in_array($node->getEntityId(), $this->getRootIds());
66
+
67
+ $item['id'] = $node->getId();
68
+ $item['cls'] = 'folder ' . ($node->getIsActive() ? 'active-category' : 'no-active-category');
69
+ $item['store'] = (int) $this->getStore()->getId();
70
+ $item['path'] = $node->getData('path');
71
+ $item['allowDrop'] = false;
72
+ $item['allowDrag'] = false;
73
+ if ((int) $node->getChildrenCount() > 0) {
74
+ $item['children'] = array();
75
+ }
76
+ $isParent = $this->_isParentSelectedCategory($node);
77
+ if ($node->hasChildren()) {
78
+ $item['children'] = array();
79
+ if (!($this->getUseAjax() && $node->getLevel() > 1 && !$isParent)) {
80
+ foreach ($node->getChildren() as $child) {
81
+ $item['children'][] = $this->_getNodeJson($child, $level + 1);
82
+ }
83
+ }
84
+ }
85
+
86
+ if ($isParent || $node->getLevel() < 2) {
87
+ $item['expanded'] = true;
88
+ }
89
+ return $item;
90
+ }
91
+
92
+ }
app/code/community/Fianet/Core/Block/Tree/TypeProduct.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_Tree_TypeProduct extends Fianet_Core_Block_Tree_Abstract {
19
+
20
+ public function __construct() {
21
+ parent::__construct();
22
+ }
23
+
24
+ protected function _getTypeProductLabel($typeProductId) {
25
+ $types = Mage::getModel('fianet/source_TypeProduct')->toOptionArray();
26
+ foreach ($types as $data) {
27
+ if ($data['value'] == $typeProductId) {
28
+ return ($data['label']);
29
+ }
30
+ }
31
+ return '';
32
+ }
33
+
34
+ public function buildNodeName($node) {
35
+ $result = $this->htmlEscape($node->getName());
36
+
37
+ $productType = Mage::getModel('fianet/catproduct_association')
38
+ ->loadByCategorieId($node->getEntityId());
39
+ if ($productType->getId() > 0) {
40
+ $result .= ' (' . Fianet_Core_Helper_Data::Initials($this->_getTypeProductLabel($productType->getFianet_product_type())) . ')';
41
+ }
42
+
43
+ return $result;
44
+ }
45
+
46
+ }
app/code/community/Fianet/Core/Block/Widget/Grid/Column/Filter/Fianet.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_Widget_Grid_Column_Filter_Fianet extends Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Abstract {
19
+
20
+ public function getHtml() {
21
+ $html = '&nbsp;';
22
+ return $html;
23
+ }
24
+
25
+ }
app/code/community/Fianet/Core/Block/Widget/Grid/Column/Renderer/Fianet.php ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Block_Widget_Grid_Column_Renderer_Fianet extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract {
19
+
20
+ public function render(Varien_Object $row) {
21
+ $html = '';
22
+ //Zend_Debug::dump($row, '$row');
23
+ if ($row->status == 'pending_rnp') {
24
+ $html = '<img src="' . $this->getSkinUrl('images/fianet/RnP.gif') . '">';
25
+ }
26
+ if ($row->Fianet_rnp_tag != null) {
27
+ $html = $this->_renderRnP($row);
28
+ }
29
+ if ($row->Fianet_sac_sent != 0) {
30
+ $html = $this->_renderSac($row);
31
+ }
32
+
33
+ return ($html);
34
+ }
35
+
36
+ protected function _renderSac(Varien_Object $row) {
37
+ $evaluation = $row->Fianet_sac_evaluation;
38
+ $reevaluation = $row->Fianet_sac_reevaluation;
39
+ $mode = $row->Fianet_sac_mode;
40
+ $html = '';
41
+ $icon = '';
42
+ switch ($evaluation) {
43
+ case('error'):
44
+ $icon = 'attention.gif';
45
+ $alt = Mage::helper('fianet')->__('Error on transaction');
46
+ break;
47
+ case('100'):
48
+ $icon = 'rond_vert.gif';
49
+ $alt = Mage::helper('fianet')->__('Click for details');
50
+ break;
51
+ case('-1'):
52
+ $icon = 'rond_vertclair.gif';
53
+ $alt = Mage::helper('fianet')->__('Click for details');
54
+ break;
55
+ case('0'):
56
+ $icon = 'rond_rouge.gif';
57
+ $alt = Mage::helper('fianet')->__('Click for details');
58
+ break;
59
+ default:
60
+ $icon = 'fianet_SAC_icon.gif';
61
+ $alt = Mage::helper('fianet')->__('Evaluation in progress...');
62
+ break;
63
+ }
64
+ switch ($reevaluation) {
65
+ case('100'):
66
+ $icon = 'rond_vert.gif';
67
+ $alt = Mage::helper('fianet')->__('Click for details');
68
+ break;
69
+ case('-1'):
70
+ $icon = 'rond_vertclair.gif';
71
+ $alt = Mage::helper('fianet')->__('Click for details');
72
+ break;
73
+ case('0'):
74
+ $icon = 'rond_rouge.gif';
75
+ $alt = Mage::helper('fianet')->__('Click for details');
76
+ break;
77
+ }
78
+ $url = $url = Mage::getModel('fianet/configuration')->getGlobalValue('SAC_BASEURL_TEST');
79
+ if ($mode == 'PRODUCTION') {
80
+ $url = $url = Mage::getModel('fianet/configuration')->getGlobalValue('SAC_BASEURL_PRODUCTION');
81
+ }
82
+ $url .= Mage::getModel('fianet/configuration')->getGlobalValue('SAC_URL_BOMERCHANT');
83
+
84
+ $config = $this->GetConfigurationData($row->IncrementId);
85
+
86
+ $siteid = $config->load('SAC_SITEID')->Value;
87
+ $login = $config->load('SAC_LOGIN')->Value;
88
+ $password = $config->load('SAC_PASSWORD')->Value;
89
+
90
+ if ($siteid == null) {
91
+ $config->setScope(0);
92
+ $siteid = $config->load('SAC_SITEID')->Value;
93
+ $login = $config->load('SAC_LOGIN')->Value;
94
+ $password = $config->load('SAC_PASSWORD')->Value;
95
+ }
96
+
97
+ $url .= '?sid=' . $siteid . '&log=' . $login . '&pwd=' . urlencode($password) . '&rid=' . $row->IncrementId;
98
+ $js = 'onclick="javascript: window.open(\'' . $url . '\',\'fianet\',\'toolbar=no, location=no, directories=no, status=no,scrollbars=yes, resizable=yes, copyhistory=no, width=900, height=800, left=200, top=100\'); return false;"';
99
+ $html .= '<a href="#" ' . $js . ' style="text-decoration: none;"><img src="' . $this->getSkinUrl('images/fianet/' . $icon) . '" alt="' . $alt . '"></a>';
100
+
101
+ if ($mode == 'TEST') {
102
+ $html .= '<br />TEST';
103
+ }
104
+
105
+ return ($html);
106
+ }
107
+
108
+ protected function GetConfigurationData($incrementId) {
109
+ //Zend_Debug::dump($incrementId);
110
+ $order = Mage::getModel('sales/order')->loadByIncrementId($incrementId);
111
+ $scope_field = Mage::getModel('fianet/configuration')->getGlobalValue('CONFIGURATION_SCOPE');
112
+ switch ($scope_field) {
113
+ case ('store_id'):
114
+ $id = $order->getStore()->getId();
115
+ break;
116
+ case ('group_id'):
117
+ $id = $order->getStore()->getGroup()->getId();
118
+ break;
119
+ case ('website_id'):
120
+ $id = $order->getStore()->getWebsite()->getId();
121
+ break;
122
+ default:
123
+ $id = $order->getStore()->getGroup()->getId();
124
+ break;
125
+ }
126
+ $configurationData = Mage::getModel('fianet/configuration_value');
127
+ $configurationData->_scope_field = $scope_field;
128
+ $configurationData->setScope($id);
129
+
130
+ return ($configurationData);
131
+ }
132
+
133
+ protected function _renderRnP(Varien_Object $row) {
134
+ $html = '';
135
+ $icon = '';
136
+
137
+ if ($row->Fianet_rnp_tag != null) {
138
+ $Tag = $row->Fianet_rnp_tag;
139
+ } else {
140
+ return ($html);
141
+ }
142
+
143
+ $Mode = 'TEST';
144
+ //Zend_Debug::dump($row->Fianet_rnp_mode);
145
+ if ($row->Fianet_rnp_mode != null) {
146
+ $Mode = $row->Fianet_rnp_mode;
147
+ }
148
+ $html = $Tag;
149
+ //Zend_Debug::dump($Tag);
150
+ //$index = $this->getColumn()->getIndex();
151
+ $options = $this->getColumn()->getRenderoptions();
152
+ if (!isset($options['mode'])) {
153
+ $options['mode'] = 'mini';
154
+ }
155
+ switch ($Tag) {
156
+ case '1':
157
+ $icon = 'ok';
158
+ break;
159
+ case '10':
160
+ $icon = 'ok';
161
+ break;
162
+ case '13':
163
+ $icon = 'ok';
164
+ break;
165
+ case '14':
166
+ $icon = 'ok';
167
+ break;
168
+ case '2':
169
+ $icon = 'ko';
170
+ break;
171
+ case '11':
172
+ $icon = 'ko';
173
+ break;
174
+ case '3':
175
+ $icon = 'ss';
176
+ break;
177
+ case '12':
178
+ $icon = 'ss';
179
+ break;
180
+ case "100":
181
+ $icon = 'ok';
182
+ break;
183
+ case "101":
184
+ $icon = 'ko';
185
+ break;
186
+ case "0":
187
+ $icon = 'ko';
188
+ break;
189
+ }
190
+ foreach (Mage::getModel('receiveandpay/source_tags')->toOptionArray() as $tag) {
191
+ if ($tag['value'] == $Tag) {
192
+ $title = $tag['label'];
193
+ }
194
+ }
195
+ $js = "onclick=\"window.open('" . $this->getUrl('receiveandpay/redirect/', array('mode' => $Mode)) . "','test'); return false;\"";
196
+ if ($icon != '') {
197
+ if ($icon == 'ss') {
198
+
199
+ $html = '<a href="#" ' . $js . ' style="text-decoration: none;" title="' . $title . '">' . $this->__('Und. ctrl.') . '</a>';
200
+ if ($Mode == 'TEST' && $options['mode'] == 'mini') {
201
+ $html .= '<br />TEST';
202
+ }
203
+ } else {
204
+ $html = '<a href="#" ' . $js . ' style="text-decoration: none;"><img src="' . $this->getSkinUrl('images/fianet/' . $icon . '.gif') . '" alt="' . $title . ' (' . $Tag . ')"></a>';
205
+ if ($Mode == 'TEST' && $options['mode'] == 'mini') {
206
+ $html .= '<br />TEST';
207
+ }
208
+ }
209
+ } elseif ($options['mode'] == 'full') {
210
+ $html = '<a href="#" ' . $js . ' style="text-decoration: none;">' . $Tag . '</a>';
211
+ }
212
+ if ($options['mode'] == 'full') {
213
+ $html .= ' - ' . $title;
214
+ }
215
+ return $html;
216
+ }
217
+
218
+ }
app/code/community/Fianet/Core/Controller/Tree/Abstract.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  interface IFianetTree {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  interface IFianetTree {
app/code/community/Fianet/Core/Controller/Tree/ProductType.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Controller_Tree_ProductType extends Fianet_Core_Controller_Tree_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Controller_Tree_ProductType extends Fianet_Core_Controller_Tree_Abstract {
app/code/community/Fianet/Core/Controller/Tree/TypeProduct.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Controller_Tree_TypeProduct extends Fianet_Core_Controller_Tree_Abstract {
19
+
20
+ protected function _construct() {
21
+ parent::_construct();
22
+ $this->_block = 'fianet/tree_typeProduct';
23
+ }
24
+
25
+ public function treeAction() {
26
+ $categoryId = (int) $this->getRequest()->getParam('id');
27
+ $storeId = $this->getRequest()->getParam('store', 0);
28
+ if ($storeId) {
29
+ if (!$categoryId) {
30
+ $store = Mage::app()->getStore($storeId);
31
+ $rootId = $store->getRootCategoryId();
32
+ $this->getRequest()->setParam('id', $rootId);
33
+ }
34
+ }
35
+
36
+ $category = $this->_initCategory(true);
37
+
38
+ $block = $this->getLayout()->createBlock($this->_block);
39
+ $root = $block->getRoot();
40
+ $this->getResponse()->setBody(Zend_Json::encode(array(
41
+ 'data' => $block->getTree(),
42
+ 'parameters' => array(
43
+ 'text' => $block->buildNodeName($root),
44
+ 'draggable' => false,
45
+ 'allowDrop' => false,
46
+ 'id' => (int) $root->getId(),
47
+ 'expanded' => (int) $block->getIsWasExpanded(),
48
+ 'store_id' => (int) $block->getStore()->getId(),
49
+ 'category_id' => (int) $category->getId(),
50
+ 'root_visible' => (int) $root->getIsVisible()
51
+ ))));
52
+ }
53
+
54
+ public function categoriesJsonAction() {
55
+ if ($this->getRequest()->getParam('expand_all')) {
56
+ Mage::getSingleton('admin/session')->setIsTreeWasExpanded(true);
57
+ } else {
58
+ Mage::getSingleton('admin/session')->setIsTreeWasExpanded(false);
59
+ }
60
+ if ($categoryId = (int) $this->getRequest()->getPost('id')) {
61
+ $this->getRequest()->setParam('id', $categoryId);
62
+
63
+ if (!$category = $this->_initCategory()) {
64
+ return;
65
+ }
66
+ $this->getResponse()->setBody(
67
+ $this->getLayout()->createBlock($this->_block)
68
+ ->getTreeJson($category)
69
+ );
70
+ }
71
+ }
72
+
73
+ }
app/code/community/Fianet/Core/Helper/Data.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Helper_Data extends Mage_Core_Helper_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Helper_Data extends Mage_Core_Helper_Abstract {
app/code/community/Fianet/Core/Model/Carrier/Abstract.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Carrier_Abstract extends Mage_Shipping_Model_Carrier_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Carrier_Abstract extends Mage_Shipping_Model_Carrier_Abstract {
app/code/community/Fianet/Core/Model/Catproduct/Association.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Catproduct_Association extends Mage_Core_Model_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Catproduct_Association extends Mage_Core_Model_Abstract {
app/code/community/Fianet/Core/Model/Configuration.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Configuration extends Mage_Core_Model_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Configuration extends Mage_Core_Model_Abstract {
app/code/community/Fianet/Core/Model/Configuration/Global.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Configuration_Global extends Mage_Core_Model_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Configuration_Global extends Mage_Core_Model_Abstract {
app/code/community/Fianet/Core/Model/Configuration/Value.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Configuration_Value extends Fianet_Core_Model_Scope_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Configuration_Value extends Fianet_Core_Model_Scope_Abstract {
app/code/community/Fianet/Core/Model/Fianet/EncodingKey.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_EncodingKey {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_EncodingKey {
app/code/community/Fianet/Core/Model/Fianet/Hash32bits.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  /*
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  /*
app/code/community/Fianet/Core/Model/Fianet/Hash64bits.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  /*
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  /*
app/code/community/Fianet/Core/Model/Fianet/Order/Address/Base.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Address_Base {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Address_Base {
app/code/community/Fianet/Core/Model/Fianet/Order/Address/Billing.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Address_Billing extends Fianet_Core_Model_Fianet_Order_Address_Base {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Address_Billing extends Fianet_Core_Model_Fianet_Order_Address_Base {
app/code/community/Fianet/Core/Model/Fianet/Order/Address/Delivery.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Address_Delivery extends Fianet_Core_Model_Fianet_Order_Address_Base {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Address_Delivery extends Fianet_Core_Model_Fianet_Order_Address_Base {
app/code/community/Fianet/Core/Model/Fianet/Order/Address/Transport.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Address_Transport extends Fianet_Core_Model_Fianet_Order_Address_Base {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Address_Transport extends Fianet_Core_Model_Fianet_Order_Address_Base {
app/code/community/Fianet/Core/Model/Fianet/Order/Adress/Base.php ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Model_Fianet_Order_Adress_Base {
19
+
20
+ protected $type;
21
+ protected $format = 1;
22
+ public $rue1;
23
+ public $rue2;
24
+ public $cpostal;
25
+ public $ville;
26
+ public $pays;
27
+
28
+ protected function __construct() {
29
+
30
+ }
31
+
32
+ public function get_xml() {
33
+ $xml = '';
34
+ if ($this->type != null) {
35
+ $xml .= "\t" . '<adresse type="' . $this->type . '" format="' . $this->format . '">' . "\n";
36
+ if ($this->rue1 != '') {
37
+ $xml .= "\t\t" . '<rue1>' . Mage::getModel('fianet/functions')->clean_invalid_char($this->rue1) . '</rue1>' . "\n";
38
+ } else {
39
+ Mage::throwException("Mage_Fianet_Model_Fianet_Order_Adress_Base::get_xml() - rue1 is undefined");
40
+ }
41
+ if ($this->rue2 != "") {
42
+ $xml .= "\t\t" . '<rue2>' . Mage::getModel('fianet/functions')->clean_invalid_char($this->rue2) . '</rue2>' . "\n";
43
+ }
44
+ if ($this->cpostal != "") {
45
+ $xml .= "\t\t" . '<cpostal>' . Mage::getModel('fianet/functions')->clean_invalid_char($this->cpostal) . '</cpostal>' . "\n";
46
+ } else {
47
+ Mage::throwException("Mage_Fianet_Model_Fianet_Order_Adress_Base::get_xml() - cpostal is undefined");
48
+ }
49
+ if ($this->ville != "") {
50
+ $xml .= "\t\t" . '<ville>' . Mage::getModel('fianet/functions')->clean_invalid_char($this->ville) . '</ville>' . "\n";
51
+ } else {
52
+ Mage::throwException("Mage_Fianet_Model_Fianet_Order_Adress_Base::get_xml() - ville is undefined");
53
+ }
54
+ if ($this->pays != "") {
55
+ $xml .= "\t\t" . '<pays>' . Mage::getModel('fianet/functions')->clean_invalid_char($this->pays) . '</pays>' . "\n";
56
+ } else {
57
+ Mage::throwException("Mage_Fianet_Model_Fianet_Order_Adress_Base::get_xml() - pays is undefined");
58
+ }
59
+ $xml .= "\t" . '</adresse>' . "\n";
60
+ }
61
+ return ($xml);
62
+ }
63
+
64
+ }
app/code/community/Fianet/Core/Model/Fianet/Order/Adress/Billing.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Model_Fianet_Order_Adress_Billing extends Fianet_Core_Model_Fianet_Order_Adress_Base {
19
+
20
+ public function __construct($order = null) {
21
+ $this->type = 'facturation';
22
+ }
23
+
24
+ }
app/code/community/Fianet/Core/Model/Fianet/Order/Adress/Delivery.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Model_Fianet_Order_Adress_Delivery extends Fianet_Core_Model_Fianet_Order_Adress_Base {
19
+
20
+ public function __construct() {
21
+ $this->type = 'livraison';
22
+ }
23
+
24
+ }
app/code/community/Fianet/Core/Model/Fianet/Order/Info/Productlist.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Info_Productlist {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Info_Productlist {
app/code/community/Fianet/Core/Model/Fianet/Order/Info/Productlist/Product.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Info_Productlist_Product {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Info_Productlist_Product {
app/code/community/Fianet/Core/Model/Fianet/Order/Info/Rnp.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Model_Fianet_Order_Info_Rnp {
19
+
20
+ public $siteid;
21
+ public $refid;
22
+ public $montant = 0;
23
+ public $devise = "EUR";
24
+ public $transport;
25
+ public $list;
26
+
27
+ public function __construct() {
28
+ $store = Mage::getModel('fianet/functions')->getStore();
29
+ $this->list = Mage::getModel('fianet/fianet_order_info_productlist');
30
+ $this->transport = Mage::getModel('fianet/fianet_order_info_transport');
31
+ $this->siteid = Mage::getModel('fianet/configuration')->getStoreValue('RNP_SITEID', $store);
32
+ if ($this->siteid == null && $store > 0) {
33
+ $this->siteid = Mage::getModel('fianet/configuration')->getStoreValue('RNP_SITEID', 0);
34
+ }
35
+ }
36
+
37
+ public function get_xml() {
38
+ $xml = '';
39
+
40
+ if (trim($this->siteid) == '' || trim($this->refid) == '' || $this->montant <= 0 || trim($this->devise) == '') {
41
+ Mage::getModel('fianet/log')->Log("Mage_Fianet_Model_Fianet_Order_Info_Rnp - get_xml() <br />Somes values are undefined\n");
42
+ }
43
+ $xml .= "\t" . '<infocommande>' . "\n";
44
+ $xml .= "\t\t" . '<siteid>' . $this->siteid . '</siteid>' . "\n";
45
+ $xml .= "\t\t" . '<refid>' . $this->refid . '</refid>' . "\n";
46
+ $xml .= "\t\t" . '<montant devise="' . $this->devise . '">' . number_format($this->montant, 2, '.', '') . '</montant>' . "\n";
47
+ $xml .= $this->transport->get_xml();
48
+ $xml .= $this->list->get_xml();
49
+ $xml .= "\t" . '</infocommande>' . "\n";
50
+ return ($xml);
51
+ }
52
+
53
+ }
app/code/community/Fianet/Core/Model/Fianet/Order/Info/Sac.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Model_Fianet_Order_Info_Sac {
19
+
20
+ public $siteid = "";
21
+ public $refid = "";
22
+ public $montant = 0;
23
+ public $devise = "EUR";
24
+ public $ip;
25
+ public $timestamp;
26
+ public $transport;
27
+ public $list;
28
+
29
+ public function __construct() {
30
+ $this->list = Mage::getModel('fianet/fianet_order_info_productlist');
31
+ $this->transport = Mage::getModel('fianet/fianet_order_info_transport');
32
+ $this->siteid = Mage::getModel('fianet/configuration')->getValue('SAC_SITEID');
33
+ }
34
+
35
+ public function get_xml() {
36
+ $xml = '';
37
+ if (trim($this->siteid) == "" && trim($this->refid) == "" && ((integer) $this->montant) <= 0 && trim($this->devise) == "") {
38
+ Mage::getModel('fianet/log')->Log("Mage_Fianet_Model_Fianet_Order_Info_Sac - get_xml() <br />Somes values are undefined\n");
39
+ }
40
+ if ($this->transport == null) {
41
+ Mage::getModel('fianet/log')->Log("Mage_Fianet_Model_Fianet_Order_Info_Sac - get_xml() <br />Transport is undefined\n");
42
+ }
43
+ if ($this->list == null) {
44
+ Mage::getModel('fianet/log')->Log("Mage_Fianet_Model_Fianet_Order_Info_Sac - get_xml() <br />List products is undefined\n");
45
+ }
46
+ $xml .= "\t" . '<infocommande>' . "\n";
47
+ $xml .= "\t\t" . '<siteid>' . $this->siteid . '</siteid>' . "\n";
48
+ $xml .= "\t\t" . '<refid>' . $this->refid . '</refid>' . "\n";
49
+ $xml .= "\t\t" . '<montant devise="' . $this->devise . '">' . number_format($this->montant, 2, '.', '') . '</montant>' . "\n";
50
+ if ($this->ip != null && $this->timestamp != null) {
51
+ $xml .= "\t\t" . '<ip timestamp="' . $this->timestamp . '">' . $this->ip . '</ip>' . "\n";
52
+ }
53
+ $xml .= $this->transport->get_xml();
54
+ $xml .= $this->list->get_xml();
55
+ $xml .= "\t" . '</infocommande>' . "\n";
56
+ return ($xml);
57
+ }
58
+
59
+ }
app/code/community/Fianet/Core/Model/Fianet/Order/Info/Transport.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Info_Transport {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Info_Transport {
app/code/community/Fianet/Core/Model/Fianet/Order/Optionpayment.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Optionpayment {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Optionpayment {
app/code/community/Fianet/Core/Model/Fianet/Order/Payment.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Payment {
@@ -47,8 +47,7 @@ class Fianet_Core_Model_Fianet_Order_Payment {
47
  public function getXml() {
48
  $xml = '';
49
  if ($this->type != null) {
50
- //$xml .= "\t" . '<paiement auth="' . $this->auth . '">' . "\n";
51
- $xml .= "\t" . '<paiement>' . "\n";
52
  $xml .= "\t\t" . '<type><![CDATA[' . $this->type . ']]></type>' . "\n";
53
  if ($this->type == 'carte' || $this->type == 'paypal') {
54
  if ($this->numcb != null) {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Payment {
47
  public function getXml() {
48
  $xml = '';
49
  if ($this->type != null) {
50
+ $xml .= "\t" . '<paiement auth="' . $this->auth . '">' . "\n";
 
51
  $xml .= "\t\t" . '<type><![CDATA[' . $this->type . ']]></type>' . "\n";
52
  if ($this->type == 'carte' || $this->type == 'paypal') {
53
  if ($this->numcb != null) {
app/code/community/Fianet/Core/Model/Fianet/Order/Rnp.php ADDED
@@ -0,0 +1,313 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Model_Fianet_Order_Rnp {
19
+
20
+ public $billing_user = null;
21
+ public $billing_adress = null;
22
+ public $info_commande = null;
23
+ public $wallet = null;
24
+ public $optionpaiement = null;
25
+ public $delivery_user = null;
26
+ public $delivery_adress = null;
27
+ protected $version = null;
28
+ protected $encoding = null;
29
+ protected $siteId = null;
30
+
31
+ public function __construct() {
32
+ $store = Mage::getModel('fianet/functions')->getStore();
33
+ $this->billing_user = Mage::getModel('fianet/fianet_order_user_billing');
34
+ $this->billing_adress = Mage::getModel('fianet/fianet_order_adress_billing');
35
+ $this->info_commande = Mage::getModel('fianet/fianet_order_info_rnp');
36
+ $this->wallet = Mage::getModel('fianet/fianet_order_wallet');
37
+ $this->optionpaiement = Mage::getModel('fianet/fianet_order_optionpayment');
38
+ $this->version = (string) Mage::getConfig()->getModuleConfig('Fianet_Core')->version;
39
+ $this->encoding = Mage::getModel('fianet/configuration_global')
40
+ ->load('XML_ENCODING')
41
+ ->Value;
42
+ $this->siteId = Mage::getModel('fianet/configuration_value')
43
+ ->setScope($store)
44
+ ->load('RNP_SITEID')
45
+ ->Value;
46
+ if ($this->siteId == null && $store > 0) {
47
+ $this->siteId = Mage::getModel('fianet/configuration_value')
48
+ ->setScope(0)
49
+ ->load('RNP_SITEID')
50
+ ->Value;
51
+ }
52
+ }
53
+
54
+ public function reset() {
55
+ $this->billing_user = Mage::getModel('fianet/fianet_order_user_billing');
56
+ $this->billing_adress = Mage::getModel('fianet/fianet_order_adress_billing');
57
+ $this->info_commande = Mage::getModel('fianet/fianet_order_info_rnp');
58
+ $this->wallet = Mage::getModel('fianet/fianet_order_wallet');
59
+ $this->optionpaiement = Mage::getModel('fianet/fianet_order_optionpayment');
60
+ $this->delivery_user = null;
61
+ $this->delivery_adress = null;
62
+ }
63
+
64
+ public function get_xml() {
65
+ $xml = '';
66
+ $xml .= '<?xml version="1.0" encoding="' . $this->encoding . '" ?>' . "\n";
67
+ $xml .= '<control fianetmodule="Magento_RNP" version="' . $this->version . '">' . "\n";
68
+ $xml .= $this->billing_user->get_xml();
69
+ $xml .= $this->billing_adress->get_xml();
70
+ if ($this->delivery_user != null) {
71
+ if (Mage::getModel('fianet/functions')->var_is_object_of_class($this->delivery_user, 'Fianet_Core_Model_Fianet_Order_User_Delivery')) {
72
+ $xml .= $this->delivery_user->get_xml();
73
+ } else {
74
+ Mage::getModel('fianet/log')->Log("Mage_Fianet_Model_Fianet_Order_Rnp::get_xml() <br />\nDelivery user is not an object of type Fianet_Core_Model_Fianet_Order_User_Delivery");
75
+ }
76
+ }
77
+ if ($this->delivery_adress != null) {
78
+ if (Mage::getModel('fianet/functions')->var_is_object_of_class($this->delivery_adress, 'Fianet_Core_Model_Fianet_Order_Adress_Delivery')) {
79
+ $xml .= $this->delivery_adress->get_xml();
80
+ } else {
81
+ Mage::getModel('fianet/log')->Log("Mage_Fianet_Model_Fianet_Order_Rnp::get_xml() <br />\nDelivery adress is not an object of type Fianet_Core_Model_Fianet_Order_Adress_Delivery");
82
+ }
83
+ }
84
+ $xml .= $this->info_commande->get_xml();
85
+
86
+ $this->wallet->generate_wallet_crypt_data($this->info_commande->refid, $this->billing_user->nom, $this->billing_user->email, $this->info_commande->montant);
87
+ $xml .= $this->wallet->get_xml();
88
+ $xml .= $this->optionpaiement->get_xml();
89
+ $xml .= '</control>';
90
+
91
+ //save_flux_xml($xml, $this->info_commande->refid);
92
+ return ($xml);
93
+ }
94
+
95
+ /*
96
+ Cette fonction génére le formulaire de redirection vers ReceiveAndPay
97
+ Elle prends des paramétres optionnels
98
+ url_call : url de retour sur le site marchand
99
+ url_sys : url de réponse des tags asynchrone pour le serveur ReceiveAndPay
100
+ ParamCallBack : tableau associatif des données que vous souhaitez voir retourner par le serveur ReceiveAndPay sur url_sys et url_call
101
+ typeIHM : 1 pour carte bancaire seulement, 2 pour à crédit uniquement, 3 pour les deux en méme temps
102
+ enProd : mettre à true pour rediriger vers ReceiveAndPay de production
103
+ auto_send : si true : génére un javascript qui soumettra immédiatement le formulaire
104
+ */
105
+
106
+ public function get_formular($url_call = null, $url_sys = null, $ParamCallBack = array(), $auto_send = true, $mode) {
107
+ $flux = $this->get_xml();
108
+ $flux = Mage::getModel('fianet/functions')->clean_xml($flux);
109
+ $flux = str_replace('"', "'", $flux);
110
+
111
+ if (is_array($ParamCallBack) && count($ParamCallBack) > 0) {
112
+ $XMLParam = Mage::getModel('fianet/fianet_paramcallback_builder');
113
+ foreach ($ParamCallBack as $index => $value) {
114
+ $XMLParam->add_param(Mage::getModel('fianet/fianet_paramcallback_element')->setValues($index, urlencode(htmlentities($value))));
115
+ }
116
+ }
117
+
118
+ if ($mode == 'PRODUCTION')
119
+ $url = Mage::getModel('fianet/configuration')->getGlobalValue('RNP_PROD_URL_FRONTLINE');
120
+ else
121
+ $url = Mage::getModel('fianet/configuration')->getGlobalValue('RNP_TEST_URL_FRONTLINE');
122
+
123
+ $form = '';
124
+ $form .= '<form name="rnp_form" id="rnp_form" action="' . $url . '" method="post">';
125
+ $form .= '<input type="hidden" name="MerchID" value="' . $this->siteId . '">' . "\n";
126
+ $form .= '<input type="hidden" name="XMLInfo" value="' . $flux . '">' . "\n";
127
+ if ($url_call != null && $url_call != '') {
128
+ $form .= '<input type="hidden" name="URLCall" value="' . $url_call . '">' . "\n";
129
+ }
130
+ if ($url_sys != null && $url_sys != '') {
131
+ $form .= '<input type="hidden" name="URLSys" value="' . $url_sys . '">' . "\n";
132
+ }
133
+ if (isset($XMLParam)) {
134
+ $form .= '<input type="hidden" name="XMLParam" value="' . Mage::getModel('fianet/functions')->clean_xml(str_replace('"', "'", $XMLParam->get_xml())) . '">' . "\n";
135
+ }
136
+ $form .= '</form>';
137
+ if ($auto_send) {
138
+ $form .= '<script>document.rnp_form.submit();</script>';
139
+ }
140
+
141
+ return ($form);
142
+ }
143
+
144
+ public static function GenerateRnPOrder(Mage_Sales_Model_Order $order) {
145
+ $scope_field = Mage::getModel('fianet/configuration')->getGlobalValue('CONFIGURATION_SCOPE');
146
+ switch ($scope_field) {
147
+ case ('store_id'):
148
+ $id = $order->getStore()->getId();
149
+ break;
150
+ case ('group_id'):
151
+ $id = $order->getStore()->getGroup()->getId();
152
+ break;
153
+ case ('website_id'):
154
+ $id = $order->getStore()->getWebsite()->getId();
155
+ break;
156
+ default:
157
+ $id = $order->getStore()->getGroup()->getId();
158
+ break;
159
+ }
160
+ $configurationData = Mage::getModel('fianet/configuration_value');
161
+ $configurationData->_scope_field = $scope_field;
162
+ $configurationData->setScope($id);
163
+
164
+ $RnPOrder = Mage::getModel('fianet/fianet_order_rnp');
165
+
166
+ $RnPOrder->scope_field = $scope_field;
167
+ $RnPOrder->scope_id = $id;
168
+
169
+ $billing_address = $order->getBillingAddress();
170
+ $shipping_address = $order->getShippingAddress();
171
+
172
+ $RnPOrder->billing_user->nom = $billing_address->getLastname();
173
+ $RnPOrder->billing_user->prenom = $billing_address->getFirstname();
174
+ $RnPOrder->billing_user->telhome = preg_replace("/[^0-9]/", "", $billing_address->getTelephone());
175
+ $RnPOrder->billing_user->telfax = preg_replace("/[^0-9]/", "", $billing_address->getFax());
176
+ $RnPOrder->billing_user->email = $billing_address->getEmail() == '' ? $order->getCustomer_email() : $billing_address->getEmail();
177
+ $RnPOrder->billing_user->societe = $billing_address->getCompany();
178
+
179
+ if (trim($billing_address->getCompany()) != '') {
180
+ $RnPOrder->billing_user->set_quality_professional();
181
+ }
182
+
183
+ $RnPOrder->billing_adress->rue1 = $billing_address->getStreet(1);
184
+ $RnPOrder->billing_adress->rue2 = $billing_address->getStreet(2);
185
+ $RnPOrder->billing_adress->cpostal = $billing_address->getPostcode();
186
+ $RnPOrder->billing_adress->ville = $billing_address->getCity();
187
+ $RnPOrder->billing_adress->pays = $billing_address->getCountry();
188
+
189
+ //Zend_Debug::dump(Mage::getModel('fianet/carrier_abstract')->getCode($order->getShippingCarrier()));
190
+ //$shipping_code = $order->getShippingCarrier()->getCarrierCode();
191
+ $shipping = Mage::getModel('fianet/shipping_association')->load($order->getShippingCarrier()->getCarrierCode());
192
+
193
+ if ($shipping->fianet_shipping_type != '1' && $shipping->fianet_shipping_type != '2') {
194
+ if (!Fianet_Core_Model_Functions::compare_billing_and_shipping($billing_address, $shipping_address)) {
195
+ $RnPOrder->delivery_user = Mage::getModel('fianet/fianet_order_user_delivery');
196
+ $RnPOrder->delivery_adress = Mage::getModel('fianet/fianet_order_adress_delivery');
197
+
198
+ $RnPOrder->delivery_user->qualite = $RnPOrder->billing_user->qualite;
199
+
200
+ $RnPOrder->delivery_user->nom = $shipping_address->getLastname();
201
+ $RnPOrder->delivery_user->prenom = $shipping_address->getFirstname();
202
+ $RnPOrder->delivery_user->telhome = preg_replace("/[^0-9]/", "", $shipping_address->getTelephone());
203
+ $RnPOrder->delivery_user->telfax = preg_replace("/[^0-9]/", "", $shipping_address->getFax());
204
+ $RnPOrder->delivery_user->email = $shipping_address->getEmail();
205
+ $RnPOrder->delivery_user->societe = $shipping_address->getCompany();
206
+
207
+ $RnPOrder->delivery_adress->rue1 = $shipping_address->getStreet(1);
208
+ $RnPOrder->delivery_adress->rue2 = $shipping_address->getStreet(2);
209
+ $RnPOrder->delivery_adress->cpostal = $shipping_address->getPostcode();
210
+ $RnPOrder->delivery_adress->ville = $shipping_address->getCity();
211
+ $RnPOrder->delivery_adress->pays = $shipping_address->getCountry();
212
+ }
213
+ }
214
+
215
+ $RnPOrder->info_commande->refid = $order->getRealOrderId();
216
+ $RnPOrder->info_commande->devise = $order->getBaseCurrencyCode();
217
+ $RnPOrder->info_commande->montant = $order->getTotalDue();
218
+ $RnPOrder->info_commande->ip = $order->getRemoteIp();
219
+ $RnPOrder->info_commande->timestamp = $order->getCreatedAt();
220
+
221
+ $RnPOrder->info_commande->siteid = $configurationData->load('RNP_SITEID')->Value;
222
+ if ($RnPOrder->info_commande->siteid == null) {
223
+ $configurationData->setScope(0);
224
+ $RnPOrder->info_commande->siteid = $configurationData->load('RNP_SITEID')->Value;
225
+ }
226
+
227
+
228
+ $RnPOrder->info_commande->transport->type = $shipping->fianet_shipping_type;
229
+ $RnPOrder->info_commande->transport->nom = $shipping->conveyor_name;
230
+ $RnPOrder->info_commande->transport->rapidite = $shipping->delivery_times;
231
+
232
+ foreach ($order->getAllVisibleItems() as $item) {
233
+
234
+ $amount = $item->getBaseRowTotal() - $item->getBaseDiscountAmount() + $item->getBaseTaxAmount() + $item->getBaseWeeeTaxAppliedRowAmount();
235
+ //Zend_Debug::dump($amount, 'total');
236
+ //Zend_Debug::dump($item->getProduct_type(), 'product type');
237
+
238
+ $pName = $item->getName();
239
+ $pSku = $item->getSku();
240
+ if ($item->getProduct_type() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) {
241
+ $children_product = $item->getChildrenItems();
242
+ if (count($children_product) == 1) {
243
+ $pName = $children_product[0]->getName();
244
+ $pSku = $children_product[0]->getSku();
245
+ }
246
+ }
247
+ $product = Mage::getModel('fianet/fianet_order_info_productList_product');
248
+ $product->type = Mage::getModel('fianet/product')->load($item->getProduct_id())->getFianetProductType();
249
+ $product->prixunit = $amount;
250
+ $product->name = $pName;
251
+ $product->nb = (int) $item->getQtyOrdered();
252
+ $product->ref = $pSku;
253
+ $RnPOrder->info_commande->list->add_product($product);
254
+ }
255
+
256
+ $RnPOrder->wallet->datelivr = Mage::getModel('fianet/functions')->get_delivery_date(self::getMaxShippingTimes($order), $configurationData, $order->getRealOrderId());
257
+ return ($RnPOrder);
258
+ }
259
+
260
+ protected static function getMaxShippingTimes(Mage_Sales_Model_Order $order) {
261
+ $times = 0;
262
+ $scope_field = Mage::getModel('fianet/configuration')->getGlobalValue('CONFIGURATION_SCOPE');
263
+ switch ($scope_field) {
264
+ case ('store_id'):
265
+ $store_id = $order->getStore()->getId();
266
+ break;
267
+ case ('group_id'):
268
+ $store_id = $order->getStore()->getGroup()->getId();
269
+ break;
270
+ case ('website_id'):
271
+ $store_id = $order->getStore()->getWebsite()->getId();
272
+ break;
273
+ default:
274
+ $store_id = $order->getStore()->getGroup()->getId();
275
+ break;
276
+ }
277
+ //Récupération du délais de livraison de chaque produit
278
+ foreach ($order->getAllItems() as $item) {
279
+ $productTime = Mage::getModel('receiveandpay/product')
280
+ ->setQty($item->getQty())
281
+ ->setProductId($item->getProduct_id())
282
+ ->setStoreId($store_id)
283
+ ->GetShippingTimes();
284
+ if ($productTime > $times) {//on conserve le délai de livraison le plus long
285
+ $times = $productTime;
286
+ }
287
+ }
288
+ //Gestion du délais de livraison par transporteur
289
+ $shipping_code = $order->getShippingCarrier()->getCarrierCode();
290
+ $transport_times_configured = Mage::getModel('receiveandpay/shipping_transport_times')
291
+ ->setScope($store_id)
292
+ ->load($shipping_code);
293
+ $transport_times = $transport_times_configured->getShipping_times() == '' ? 0 : $transport_times_configured->getShipping_times();
294
+ if ($transport_times == 0 && $store_id > 0) {
295
+ $transport_times_configured = Mage::getModel('receiveandpay/shipping_transport_times')
296
+ ->setScope(0)
297
+ ->load($shipping_code);
298
+ $transport_times = $transport_times_configured->getShipping_times() == '' ? 0 : $transport_times_configured->getShipping_times();
299
+ }
300
+ if ($transport_times > $times) {//si le délais de livraison transporteur est plus long que le délais de livraison produit, on utilise le délais de livraison transporteur
301
+ $times = $transport_times;
302
+ }
303
+
304
+ return ($times);
305
+ }
306
+
307
+ public function optionPaiementConfig($type, $comptantrnp, $comptantrnpoffert) {
308
+ $this->optionpaiement->typpayment = $type;
309
+ $this->optionpaiement->comptantrnp = $comptantrnp;
310
+ $this->optionpaiement->comptantrnpoffert = $comptantrnpoffert;
311
+ }
312
+
313
+ }
app/code/community/Fianet/Core/Model/Fianet/Order/User/Base.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_User_Base {
@@ -29,6 +29,7 @@ class Fianet_Core_Model_Fianet_Order_User_Base {
29
  public $telmobile;
30
  public $telfax;
31
  public $email;
 
32
 
33
  public function setQualityProfessional() {
34
  $this->qualite = 1;
@@ -68,9 +69,11 @@ class Fianet_Core_Model_Fianet_Order_User_Base {
68
  if ($this->email != '') {
69
  $xml .= "\t\t" . '<email><![CDATA[' . Mage::getModel('fianet/functions')->cleanInvalidChar($this->email) . ']]></email>' . "\n";
70
  }
 
 
 
71
 
72
- $xml .= "\t" . '</utilisateur>' . "\n";
73
-
74
  return ($xml);
75
  }
76
 
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_User_Base {
29
  public $telmobile;
30
  public $telfax;
31
  public $email;
32
+ public $siteconso;
33
 
34
  public function setQualityProfessional() {
35
  $this->qualite = 1;
69
  if ($this->email != '') {
70
  $xml .= "\t\t" . '<email><![CDATA[' . Mage::getModel('fianet/functions')->cleanInvalidChar($this->email) . ']]></email>' . "\n";
71
  }
72
+ if (($this->siteconso != '') && ($this->siteconso instanceof Fianet_Core_Model_Fianet_Order_User_Siteconso)) {
73
+ $xml .= $this->siteconso->getXml();
74
+ }
75
 
76
+ $xml .= "\t" . '</utilisateur>' . "\n";
 
77
  return ($xml);
78
  }
79
 
app/code/community/Fianet/Core/Model/Fianet/Order/User/Billing.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_User_Billing extends Fianet_Core_Model_Fianet_Order_User_Base {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_User_Billing extends Fianet_Core_Model_Fianet_Order_User_Base {
app/code/community/Fianet/Core/Model/Fianet/Order/User/Delivery.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_User_Delivery extends Fianet_Core_Model_Fianet_Order_User_Base {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_User_Delivery extends Fianet_Core_Model_Fianet_Order_User_Base {
app/code/community/Fianet/Core/Model/Fianet/Order/User/Siteconso.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_User_Siteconso {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_User_Siteconso {
app/code/community/Fianet/Core/Model/Fianet/Order/Wallet.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Wallet {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Order_Wallet {
app/code/community/Fianet/Core/Model/Fianet/Paramcallback/Builder.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Paramcallback_Builder {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Paramcallback_Builder {
app/code/community/Fianet/Core/Model/Fianet/Paramcallback/Element.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Paramcallback_Element {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Paramcallback_Element {
app/code/community/Fianet/Core/Model/Fianet/Parser.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Parser {
@@ -20,7 +20,7 @@ class Fianet_Core_Model_Fianet_Parser {
20
  $attribut_sceau_error = 'fianet_sceau_order_sent_error';
21
  if ($response->isSuccessful()) {
22
  $xml = $response->getBody();
23
-
24
  $simplexml = new Varien_Simplexml_Config($xml);
25
  if ($simplexml->getNode()->getAttribute('type') == 'OK') {
26
  Mage::getModel('fianet/log')->Log(Mage::helper('fianet')->__('Sceau: order #%s sent.', $order->getIncrementId()));
@@ -124,6 +124,14 @@ class Fianet_Core_Model_Fianet_Parser {
124
  }
125
  return ($result);
126
  }
 
 
 
 
 
 
 
 
127
 
128
  public function processResultNostack($xmlArray) {
129
  $evaluations = array();
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Parser {
20
  $attribut_sceau_error = 'fianet_sceau_order_sent_error';
21
  if ($response->isSuccessful()) {
22
  $xml = $response->getBody();
23
+
24
  $simplexml = new Varien_Simplexml_Config($xml);
25
  if ($simplexml->getNode()->getAttribute('type') == 'OK') {
26
  Mage::getModel('fianet/log')->Log(Mage::helper('fianet')->__('Sceau: order #%s sent.', $order->getIncrementId()));
124
  }
125
  return ($result);
126
  }
127
+
128
+ public function processResultCopilot($xml_data) {
129
+ $result = array();
130
+ $xmlArray = Fianet_Core_Model_Functions::xml2array($xml_data);
131
+ $result['id'] = $xmlArray['paymentAuthResponse']['attr']['id'];
132
+ $result['authLevel'] = $xmlArray['paymentAuthResponse']['authLevel']['value'];
133
+ return $result;
134
+ }
135
 
136
  public function processResultNostack($xmlArray) {
137
  $evaluations = array();
app/code/community/Fianet/Core/Model/Fianet/Sender.php CHANGED
@@ -12,19 +12,19 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Sender {
19
-
20
  protected $orders = array();
21
  protected $encoding = null;
22
  protected $sites_conf = array();
23
-
24
  public function __construct() {
25
  $this->encoding = Mage::getStoreConfig('sac/sacconfg/charset', '0');
26
  }
27
-
28
  public function addOrder(Fianet_Sac_Model_Fianet_Order_Sac $order) {
29
  $this->orders[$order->info_commande->siteid][] = $order;
30
  if (!isset($this->sites_configuration[$order->info_commande->siteid])) {
@@ -32,9 +32,10 @@ class Fianet_Core_Model_Fianet_Sender {
32
  $this->sites_conf[$order->info_commande->siteid]['scope_id'] = (int) $order->scope_id;
33
  }
34
  }
35
-
36
  public function send() {
37
  $stacks = $this->getStacks();
 
38
  $responses = array();
39
  foreach ($stacks as $siteid => $stacksof25) {
40
  $url = $this->buildUrl('stacking', $siteid);
@@ -49,60 +50,61 @@ class Fianet_Core_Model_Fianet_Sender {
49
  }
50
  return ($responses);
51
  }
52
-
53
- public function getReevaluation() {
54
- $sites = array();
55
- $websiteCollection = Mage::getModel('core/website')->getResourceCollection();
56
- foreach ($websiteCollection as $website) {
57
- $groupCollection = $website->getGroupCollection();
58
- foreach ($groupCollection as $group) {
59
- $storeCollection = $group->getStoreCollection();
60
- foreach ($storeCollection as $store) {
61
- $id = $store->getId();
62
-
63
- $index = count($sites);
64
- $sites[$index]['siteid'] = Mage::getStoreConfig('sac/sacconfg/siteid', $id);
65
-
66
- if ($sites[$index]['siteid'] == null && $id > 0)
67
- $sites[$index]['siteid'] = Mage::getStoreConfig('sac/sacconfg/siteid', '0');
68
-
69
- $sites[$index]['password'] = Mage::getStoreConfig('sac/sacconfg/password', $id);
70
-
71
- if ($sites[$index]['password'] == null && $id > 0)
72
- $sites[$index]['password'] = Mage::getStoreConfig('sac/sacconfg/password', '0');
73
-
74
- $sites[$index]['mode'] = Mage::getStoreConfig('sac/sacconfg/mode', $id);
75
-
76
- if ($sites[$index]['mode'] == null && $id > 0)
77
- $sites[$index]['mode'] = Mage::getStoreConfig('sac/sacconfg/mode', '0');
78
-
79
- if ($sites[$index]['siteid'] === NULL || $sites[$index]['password'] === NULL) {
80
- unset($sites[$index]);
81
- }
82
- }
83
- }
84
- }
85
 
86
- $reevaluations = array();
87
- foreach ($sites as $infos) {
88
- $url = $this->buildUrl('alert', $infos['siteid'], $infos['mode']);
89
- $params = array(
90
- 'SiteID' => $infos['siteid'],
91
- 'Pwd' => $infos['password'],
92
- 'Mode' => 'new',
93
- 'Output' => 'new',
94
- 'RepFT' => '0'
95
- );
96
-
97
- $response = $this->getResponse($url, $params);
98
- $xml_array = Fianet_Core_Model_Functions::xml2array($response->getBody());
99
- $reevals = Mage::getModel('fianet/fianet_parser')->processResultNostack($xml_array);
100
- $reevaluations = array_merge($reevaluations, $reevals);
101
- }
102
-
103
- return ($reevaluations);
104
- }
105
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  protected function getSiteIdInfos($data) {
107
  $infos = array();
108
  $scope = '';
@@ -117,7 +119,7 @@ class Fianet_Core_Model_Fianet_Sender {
117
  $scope = 'store_id';
118
  $id = $data['store_id'];
119
  }
120
-
121
  $mode = Mage::getStoreConfig('sac/sacconfg/mode', $id);
122
  if ($mode == null && $id > 0)
123
  $mode = Mage::getStoreConfig('sac/sacconfg/mode', '0');
@@ -137,7 +139,7 @@ class Fianet_Core_Model_Fianet_Sender {
137
  }
138
  return ($infos);
139
  }
140
-
141
  public function getEvaluations(array $order_list) {
142
  $evaluations = array();
143
  foreach ($order_list as $site_id => $infos) {
@@ -152,7 +154,7 @@ class Fianet_Core_Model_Fianet_Sender {
152
  }
153
  return ($evaluations);
154
  }
155
-
156
  protected function getEvaluationByStack($stack, $info) {
157
  $evaluations = array();
158
  if (count($stack) <= 0) {
@@ -181,7 +183,7 @@ class Fianet_Core_Model_Fianet_Sender {
181
  $params['ListID'] = $listId;
182
  $params['Separ'] = ',';
183
  $params['StatutCoEx'] = '1';
184
-
185
  $response = $this->getResponse($url, $params);
186
  $response = Fianet_Core_Model_Functions::xml2array($response->getBody());
187
  $evaluations = Mage::getModel('fianet/fianet_parser')->processResult($response);
@@ -198,7 +200,7 @@ class Fianet_Core_Model_Fianet_Sender {
198
  }
199
  return ($stacks);
200
  }
201
-
202
  protected function buildStackOf25($orders) {
203
  $xml = '';
204
  $xml .= '<?xml version="1.0" encoding="' . $this->encoding . '" ?>' . "\n";
@@ -211,7 +213,7 @@ class Fianet_Core_Model_Fianet_Sender {
211
  $xml .= '</stack>' . "\n";
212
  return ($xml);
213
  }
214
-
215
  protected function buildUrl($name, $siteid, $mode = null) {
216
  if ($mode == null) {
217
  $mode = $this->getSiteMode($siteid);
@@ -230,7 +232,7 @@ class Fianet_Core_Model_Fianet_Sender {
230
 
231
  return ($url);
232
  }
233
-
234
  protected function getResponse($url, $params = null) {
235
  $response = false;
236
  try {
@@ -249,7 +251,7 @@ class Fianet_Core_Model_Fianet_Sender {
249
  }
250
  return ($response);
251
  }
252
-
253
  protected function getSiteMode($siteid) {
254
  $groupid = $this->sites_conf[$siteid]['scope_id'];
255
 
@@ -264,29 +266,15 @@ class Fianet_Core_Model_Fianet_Sender {
264
  $siteID = Mage::Helper('fianet_sceau/Data')->getSiteID($order);
265
  $url = Mage::Helper('fianet_sceau/Data')->getFianetUrl($order);
266
 
267
- $config = array('maxredirects' => 0,
268
- 'timeout' => 5);
269
-
270
- $params = array('SiteID' => $siteID,
271
- 'CheckSum' => md5($flux),
272
- 'XMLInfo' => $flux);
273
-
274
  Mage::dispatchEvent('Fianet_Sceau_Before_Send_Order', array('order' => $order, 'url' => $url, 'flux' => $flux));
275
 
276
- try {
277
- $client = new Zend_Http_Client($url, $config);
278
- $client->setMethod(Zend_Http_Client::POST);
279
- $client->setParameterPost($params);
280
- $response = $client->request();
281
-
282
- Mage::dispatchEvent('Fianet_Sceau_After_Send_Order', array('order' => $order, 'response' => $response));
283
-
284
- //parser reponse
285
- $result = Mage::getModel('fianet/fianet_parser')->parseSceauReturn($order, $response);
286
- return $result;
287
- } catch (Exception $e) {
288
- Mage::getModel('fianet/log')->Log(Mage::helper('fianet')->__('Sceau: order #%s sending error : %s.', $order->getIncrementId(), $e->getMessage()));
289
- Mage::getSingleton('adminhtml/session')->addError('FIA-NET Sceau sending error : ' . $e->getMessage());
290
- }
291
  }
292
  }
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Fianet_Sender {
19
+
20
  protected $orders = array();
21
  protected $encoding = null;
22
  protected $sites_conf = array();
23
+
24
  public function __construct() {
25
  $this->encoding = Mage::getStoreConfig('sac/sacconfg/charset', '0');
26
  }
27
+
28
  public function addOrder(Fianet_Sac_Model_Fianet_Order_Sac $order) {
29
  $this->orders[$order->info_commande->siteid][] = $order;
30
  if (!isset($this->sites_configuration[$order->info_commande->siteid])) {
32
  $this->sites_conf[$order->info_commande->siteid]['scope_id'] = (int) $order->scope_id;
33
  }
34
  }
35
+
36
  public function send() {
37
  $stacks = $this->getStacks();
38
+
39
  $responses = array();
40
  foreach ($stacks as $siteid => $stacksof25) {
41
  $url = $this->buildUrl('stacking', $siteid);
50
  }
51
  return ($responses);
52
  }
53
+
54
+ public function sendToCopilot(Fianet_Sac_Model_Fianet_Order_Sac $order) {
55
+ $siteid = Mage::getStoreConfig('sac/sacconfg/siteid', $order->scope_id);
56
+ $mykey = (Mage::getStoreConfig('sac/sacconfg/authkey', $order->scope_id) === null) ? null : Mage::getStoreConfig('sac/sacconfg/authkey', $order->scope_id);
57
+ $xml = $order->getXml(true);
58
+ $url = $this->buildUrl('copilot', $siteid);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
+ // Calcul de la clef d'authentification
61
+ $auth = hash_hmac("sha1", $xml, pack('H*', $mykey), false);
62
+
63
+ $params = array('siteid' => $siteid, 'payload' => $xml, 'auth' => $auth);
64
+ $response = $this->getResponse($url, $params);
65
+
66
+ $return = array();
67
+ if ($response->isSuccessful()) {
68
+ $return = Mage::getModel('fianet/fianet_parser')->processResultCopilot($response->getBody());
69
+ Mage::getModel('fianet/log')->log($return['id']);
70
+ Mage::getModel('fianet/log')->log($return['authLevel']);
71
+ } else {
72
+ // Paramètre erroné ou flux invalide
73
+ $return['error'] = $response->getBody();
74
+ Mage::getModel('fianet/log')->log($response->getBody());
75
+ }
76
+
77
+ return $return;
78
+ }
79
+
80
+ public function getReevaluation($storeid) {
81
+ $siteid = Mage::getStoreConfig('sac/sacconfg/siteid', $storeid);
82
+ if ($siteid == null && $storeid > 0)
83
+ $siteid = Mage::getStoreConfig('sac/sacconfg/siteid', '0');
84
+
85
+ $password = Mage::getStoreConfig('sac/sacconfg/password', $storeid);
86
+ if ($password == null && $storeid > 0)
87
+ $password = Mage::getStoreConfig('sac/sacconfg/password', '0');
88
+
89
+ $mode = Mage::getStoreConfig('sac/sacconfg/mode', $storeid);
90
+ if ($mode == null && $storeid > 0)
91
+ $mode = Mage::getStoreConfig('sac/sacconfg/mode', '0');
92
+
93
+ $url = $this->buildUrl('alert', $siteid, $mode);
94
+ $params = array(
95
+ 'SiteID' => $siteid,
96
+ 'Pwd' => $password,
97
+ 'Mode' => 'all',
98
+ 'Output' => 'full',
99
+ 'RepFT' => '0'
100
+ );
101
+
102
+ $response = $this->getResponse($url, $params);
103
+ $xml_array = Fianet_Core_Model_Functions::xml2array($response->getBody());
104
+ $reevaluations = Mage::getModel('fianet/fianet_parser')->processResultNostack($xml_array);
105
+ return ($reevaluations);
106
+ }
107
+
108
  protected function getSiteIdInfos($data) {
109
  $infos = array();
110
  $scope = '';
119
  $scope = 'store_id';
120
  $id = $data['store_id'];
121
  }
122
+
123
  $mode = Mage::getStoreConfig('sac/sacconfg/mode', $id);
124
  if ($mode == null && $id > 0)
125
  $mode = Mage::getStoreConfig('sac/sacconfg/mode', '0');
139
  }
140
  return ($infos);
141
  }
142
+
143
  public function getEvaluations(array $order_list) {
144
  $evaluations = array();
145
  foreach ($order_list as $site_id => $infos) {
154
  }
155
  return ($evaluations);
156
  }
157
+
158
  protected function getEvaluationByStack($stack, $info) {
159
  $evaluations = array();
160
  if (count($stack) <= 0) {
183
  $params['ListID'] = $listId;
184
  $params['Separ'] = ',';
185
  $params['StatutCoEx'] = '1';
186
+
187
  $response = $this->getResponse($url, $params);
188
  $response = Fianet_Core_Model_Functions::xml2array($response->getBody());
189
  $evaluations = Mage::getModel('fianet/fianet_parser')->processResult($response);
200
  }
201
  return ($stacks);
202
  }
203
+
204
  protected function buildStackOf25($orders) {
205
  $xml = '';
206
  $xml .= '<?xml version="1.0" encoding="' . $this->encoding . '" ?>' . "\n";
213
  $xml .= '</stack>' . "\n";
214
  return ($xml);
215
  }
216
+
217
  protected function buildUrl($name, $siteid, $mode = null) {
218
  if ($mode == null) {
219
  $mode = $this->getSiteMode($siteid);
232
 
233
  return ($url);
234
  }
235
+
236
  protected function getResponse($url, $params = null) {
237
  $response = false;
238
  try {
251
  }
252
  return ($response);
253
  }
254
+
255
  protected function getSiteMode($siteid) {
256
  $groupid = $this->sites_conf[$siteid]['scope_id'];
257
 
266
  $siteID = Mage::Helper('fianet_sceau/Data')->getSiteID($order);
267
  $url = Mage::Helper('fianet_sceau/Data')->getFianetUrl($order);
268
 
 
 
 
 
 
 
 
269
  Mage::dispatchEvent('Fianet_Sceau_Before_Send_Order', array('order' => $order, 'url' => $url, 'flux' => $flux));
270
 
271
+ $params = array('SiteID' => $siteID, 'CheckSum' => md5($flux), 'XMLInfo' => $flux);
272
+ $response = $this->getResponse($url, $params);
273
+
274
+ Mage::dispatchEvent('Fianet_Sceau_After_Send_Order', array('order' => $order, 'response' => $response));
275
+
276
+ //parser reponse
277
+ $result = Mage::getModel('fianet/fianet_parser')->parseSceauReturn($order, $response);
278
+ return $result;
 
 
 
 
 
 
 
279
  }
280
  }
app/code/community/Fianet/Core/Model/Functions.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Functions {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Functions {
app/code/community/Fianet/Core/Model/Log.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Log extends Mage_Core_Model_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Log extends Mage_Core_Model_Abstract {
app/code/community/Fianet/Core/Model/MageConfiguration.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_MageConfiguration extends Mage_Adminhtml_Model_Config {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_MageConfiguration extends Mage_Adminhtml_Model_Config {
app/code/community/Fianet/Core/Model/Mysql4/Abstract.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  abstract class Fianet_Core_Model_Mysql4_Abstract extends Mage_Core_Model_Mysql4_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  abstract class Fianet_Core_Model_Mysql4_Abstract extends Mage_Core_Model_Mysql4_Abstract {
app/code/community/Fianet/Core/Model/Mysql4/Catproduct/Association.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Catproduct_Association extends Mage_Core_Model_Mysql4_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Catproduct_Association extends Mage_Core_Model_Mysql4_Abstract {
app/code/community/Fianet/Core/Model/Mysql4/Catproduct/Association/Collection.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Catproduct_association_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Catproduct_association_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
app/code/community/Fianet/Core/Model/Mysql4/Configuration.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Configuration extends Mage_Core_Model_Mysql4_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Configuration extends Mage_Core_Model_Mysql4_Abstract {
app/code/community/Fianet/Core/Model/Mysql4/Configuration/Collection.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Configuration_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Configuration_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
app/code/community/Fianet/Core/Model/Mysql4/Configuration/Global.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Configuration_Global extends Fianet_Core_Model_Mysql4_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Configuration_Global extends Fianet_Core_Model_Mysql4_Abstract {
app/code/community/Fianet/Core/Model/Mysql4/Configuration/Value.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Configuration_Value extends Fianet_Core_Model_Mysql4_Scope_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Configuration_Value extends Fianet_Core_Model_Mysql4_Scope_Abstract {
app/code/community/Fianet/Core/Model/Mysql4/Configuration/Value/Collection.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Configuration_Value_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Configuration_Value_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
app/code/community/Fianet/Core/Model/Mysql4/Log.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Log extends Mage_Core_Model_Mysql4_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Log extends Mage_Core_Model_Mysql4_Abstract {
app/code/community/Fianet/Core/Model/Mysql4/Log/Collection.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Log_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Log_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
app/code/community/Fianet/Core/Model/Mysql4/Scope/Abstract.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Scope_Abstract extends Mage_Core_Model_Mysql4_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Scope_Abstract extends Mage_Core_Model_Mysql4_Abstract {
app/code/community/Fianet/Core/Model/Mysql4/Setup.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Setup extends Mage_Eav_Model_Entity_Setup {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Setup extends Mage_Eav_Model_Entity_Setup {
app/code/community/Fianet/Core/Model/Mysql4/Shipping/Association.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Shipping_Association extends Fianet_Core_Model_Mysql4_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Shipping_Association extends Fianet_Core_Model_Mysql4_Abstract {
app/code/community/Fianet/Core/Model/Mysql4/Shipping/Association/Collection.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Shipping_Association_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Shipping_Association_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
app/code/community/Fianet/Core/Model/Mysql4/Store/Information.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Store_Information extends Mage_Core_Model_Mysql4_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Store_Information extends Mage_Core_Model_Mysql4_Abstract {
app/code/community/Fianet/Core/Model/Mysql4/Store/Information/Collection.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Store_Information_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Mysql4_Store_Information_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
app/code/community/Fianet/Core/Model/Observer.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2014 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author FIA-NET <support-boutique@fia-net.com>
14
+ * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Model_Observer extends Varien_Event_Observer {
19
+ CONST GRID_NAME_IN_LAYOUT = 'sales_order.grid';
20
+ CONST MASSACTION_BLOCK_NAME_IN_LAYOUT = 'sales_order.grid.child';
21
+ CONST MASSACTION_BLOCK_CLASS = 'Mage_Adminhtml_Block_Widget_Grid_Massaction';
22
+
23
+ public function updateSalesOrderGrid($observer) {
24
+ $event = $observer->getEvent();
25
+ $block = $event->getData('block');
26
+
27
+ if ($block->getNameInLayout() == self::GRID_NAME_IN_LAYOUT) {
28
+ $block->addColumnAfter('fianet', array(
29
+ 'header' => 'FIA-NET',
30
+ 'sortable' => false,
31
+ 'type' => 'fianet',
32
+ 'align' => 'center',
33
+ 'width' => '120',
34
+ 'renderer' => 'fianet/adminhtml_widget_grid_column_renderer_fianet',
35
+ 'filter' => 'fianet/adminhtml_widget_grid_column_filter_fianet'
36
+ ), 'action');
37
+ }
38
+
39
+ if (preg_match('/' . self::MASSACTION_BLOCK_NAME_IN_LAYOUT . '[0-9]+/', $block->getNameInLayout())
40
+ && (get_class($block) == self::MASSACTION_BLOCK_CLASS || get_parent_class($block) == self::MASSACTION_BLOCK_CLASS)) {
41
+ // if Kwixo is installed
42
+ if (Mage::helper('fianet')->checkModuleIsInstalled('Fianet_Kwixo')) {
43
+ $block->addItem('transaction_state', array(
44
+ 'label' => Mage::helper('kwixo')->__('KWIXO FIA-NET : get back transaction\'s state'),
45
+ 'url' => Mage::getUrl('fianet/adminhtml_order/getTransactionState')
46
+ ));
47
+ }
48
+
49
+ // if Certissim is installed
50
+ if (Mage::helper('fianet')->checkModuleIsInstalled('Fianet_Sac')) {
51
+ $block->addItem('sent_sac', array(
52
+ 'label' => Mage::helper('sac')->__('Sent to CERTISSIM FIA-NET'),
53
+ 'url' => Mage::getUrl('fianet/adminhtml_order/sentSac')
54
+ ));
55
+ $block->addItem('get_eval', array(
56
+ 'label' => Mage::helper('sac')->__('CERTISSIM FIA-NET : Get evaluations'),
57
+ 'url' => Mage::getUrl('fianet/adminhtml_order/getEvaluation')
58
+ ));
59
+ }
60
+ }
61
+ }
62
+ }
app/code/community/Fianet/Core/Model/Product.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Product extends Mage_Catalog_Model_Product {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Product extends Mage_Catalog_Model_Product {
app/code/community/Fianet/Core/Model/Scope/Abstract.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Scope_Abstract extends Mage_Core_Model_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Scope_Abstract extends Mage_Core_Model_Abstract {
app/code/community/Fianet/Core/Model/Shipping/Association.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Shipping_Association extends Mage_Core_Model_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Shipping_Association extends Mage_Core_Model_Abstract {
app/code/community/Fianet/Core/Model/Source/Charset.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Source_Charset {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Source_Charset {
app/code/community/Fianet/Core/Model/Source/Crypt.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Source_Crypt {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Source_Crypt {
app/code/community/Fianet/Core/Model/Source/DeliveryTimes.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Source_DeliveryTimes {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Source_DeliveryTimes {
app/code/community/Fianet/Core/Model/Source/Mode.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Source_Mode {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Source_Mode {
app/code/community/Fianet/Core/Model/Source/ModeAction.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Model_Source_ModeAction {
19
+
20
+ public function toOptionArray() {
21
+ return array(
22
+ array('value' => 'TEST', 'label' => Mage::helper('receiveandpay')->__('Test')),
23
+ array('value' => 'PRODUCTION', 'label' => Mage::helper('receiveandpay')->__('Production'))
24
+ );
25
+ }
26
+
27
+ }
app/code/community/Fianet/Core/Model/Source/PaymentType.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Model_Source_PaymentType {
19
+
20
+ public function toOptionArray() {
21
+ return array(
22
+ array('value' => 'carte', 'label' => Mage::helper('fianet')->__('Carte bancaire')),
23
+ array('value' => 'cheque', 'label' => Mage::helper('fianet')->__('Ch&egrave;que')),
24
+ array('value' => 'contre-remboursement', 'label' => Mage::helper('fianet')->__('Contre-remboursement')),
25
+ array('value' => 'virement', 'label' => Mage::helper('fianet')->__('Virement')),
26
+ array('value' => 'cb en n fois', 'label' => Mage::helper('fianet')->__('Carte bancaire en plusieurs fois')),
27
+ array('value' => 'paypal', 'label' => Mage::helper('fianet')->__('Paypal'))
28
+ );
29
+ }
30
+
31
+ }
app/code/community/Fianet/Core/Model/Source/ProductType.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Source_ProductType {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Source_ProductType {
app/code/community/Fianet/Core/Model/Source/ShippingType.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Source_ShippingType {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Source_ShippingType {
app/code/community/Fianet/Core/Model/Source/TypeProduct.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Model_Source_TypeProduct {
19
+
20
+ public function toOptionArray() {
21
+ return array(
22
+ array('value' => 1, 'label' => Mage::helper('fianet')->__('Alimentation & gastronomie')),
23
+ array('value' => 2, 'label' => Mage::helper('fianet')->__('Auto & moto')),
24
+ array('value' => 3, 'label' => Mage::helper('fianet')->__('Culture & divertissements')),
25
+ array('value' => 4, 'label' => Mage::helper('fianet')->__('Maison & jardin')),
26
+ array('value' => 5, 'label' => Mage::helper('fianet')->__('Electrom&eacute;nager')),
27
+ array('value' => 6, 'label' => Mage::helper('fianet')->__('Ench&egrave;res et achats group&eacute;s')),
28
+ array('value' => 7, 'label' => Mage::helper('fianet')->__('Fleurs & cadeaux')),
29
+ array('value' => 8, 'label' => Mage::helper('fianet')->__('Informatique & logiciels')),
30
+ array('value' => 9, 'label' => Mage::helper('fianet')->__('Sant&eacute; & beaut&eacute;')),
31
+ array('value' => 10, 'label' => Mage::helper('fianet')->__('Services aux particuliers')),
32
+ array('value' => 11, 'label' => Mage::helper('fianet')->__('Services aux professionnels')),
33
+ array('value' => 12, 'label' => Mage::helper('fianet')->__('Sport')),
34
+ array('value' => 13, 'label' => Mage::helper('fianet')->__('V&ecirc;tements & accessoires')),
35
+ array('value' => 14, 'label' => Mage::helper('fianet')->__('Voyage & tourisme')),
36
+ array('value' => 15, 'label' => Mage::helper('fianet')->__('Hifi, photo & vid&eacute;os')),
37
+ array('value' => 16, 'label' => Mage::helper('fianet')->__('T&eacute;l&eacute;phonie & communication')),
38
+ array('value' => 17, 'label' => Mage::helper('fianet')->__('Bijoux et m&eacute;taux pr&eacute;cieux')),
39
+ array('value' => 18, 'label' => Mage::helper('fianet')->__('Articles et accessoires pour b&eacute;b&eacute;')),
40
+ array('value' => 19, 'label' => Mage::helper('fianet')->__('Sonorisation & lumi&egrave;re'))
41
+ );
42
+ }
43
+
44
+ }
app/code/community/Fianet/Core/Model/Store/Information.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Store_Information extends Mage_Core_Model_Abstract {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Model_Store_Information extends Mage_Core_Model_Abstract {
app/code/community/Fianet/Core/controllers/Adminhtml/Category/ProductTypeController.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Adminhtml_Category_ProductTypeController extends Fianet_Core_Controller_Tree_ProductType {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Adminhtml_Category_ProductTypeController extends Fianet_Core_Controller_Tree_ProductType {
app/code/community/Fianet/Core/controllers/Adminhtml/ConfigurationController.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Adminhtml_ConfigurationController extends Mage_Adminhtml_Controller_Action {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Adminhtml_ConfigurationController extends Mage_Adminhtml_Controller_Action {
app/code/community/Fianet/Core/controllers/Adminhtml/LogController.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Adminhtml_LogController extends Mage_Adminhtml_Controller_Action {
@@ -77,5 +77,5 @@ class Fianet_Core_Adminhtml_LogController extends Mage_Adminhtml_Controller_Acti
77
  }
78
  $this->_redirect('*/*/index');
79
  }
80
-
81
  }
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Adminhtml_LogController extends Mage_Adminhtml_Controller_Action {
77
  }
78
  $this->_redirect('*/*/index');
79
  }
80
+
81
  }
app/code/community/Fianet/Core/controllers/Adminhtml/OrderController.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Adminhtml_OrderController extends Mage_Adminhtml_Controller_Action {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Adminhtml_OrderController extends Mage_Adminhtml_Controller_Action {
app/code/community/Fianet/Core/controllers/Adminhtml/ShippingController.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Adminhtml_ShippingController extends Mage_Adminhtml_Controller_Action {
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  class Fianet_Core_Adminhtml_ShippingController extends Mage_Adminhtml_Controller_Action {
app/code/community/Fianet/Core/controllers/Adminhtml/VersionsController.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Fianet_Core_Adminhtml_VersionsController extends Mage_Adminhtml_Controller_Action {
4
+ public function indexAction() {
5
+ $this->loadLayout();
6
+ $this->_setActiveMenu('adminfianet');
7
+ $this->getLayout()->getBlock('head')->setTitle(Mage::helper('fianet')->__('Versions des modules'));
8
+ $this->renderLayout();
9
+ }
10
+ }
app/code/community/Fianet/Core/controllers/Category/TypeproductController.php ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_Category_TypeproductController extends Fianet_Core_Controller_Tree_TypeProduct {
19
+
20
+ public function indexAction() {
21
+ $this->loadLayout();
22
+ $this->_setActiveMenu('fianet/config/catproduct');
23
+ $this->getLayout()->getBlock('head')->setCanLoadExtJs(true)
24
+ ->setContainerCssClass('catalog-categories');
25
+
26
+ $selectedCategory = Mage::getSingleton('admin/session')->getLastEditedCategory(true);
27
+ if ($selectedCategory) {
28
+ $this->getRequest()->setParam('id', $selectedCategory);
29
+ }
30
+ $selectedCategory = (int) $this->getRequest()->getParam('id', 0);
31
+ $this->_initCategory(true);
32
+ if ($selectedCategory > 0) {
33
+ $this->getLayout()->getBlock('tree')->setData('selectedCategory', $selectedCategory);
34
+ }
35
+ $this->renderLayout();
36
+ }
37
+
38
+ public function editAction() {
39
+
40
+ $params['_current'] = true;
41
+ $redirect = false;
42
+
43
+ $storeId = (int) $this->getRequest()->getParam('store');
44
+ $parentId = (int) $this->getRequest()->getParam('parent');
45
+ $_prevStoreId = Mage::getSingleton('admin/session')
46
+ ->getLastViewedStore(true);
47
+
48
+ if ($_prevStoreId != null && !$this->getRequest()->getQuery('isAjax')) {
49
+ $params['store'] = $_prevStoreId;
50
+ $redirect = true;
51
+ }
52
+
53
+
54
+ $_prevCategoryId = Mage::getSingleton('admin/session')
55
+ ->getLastEditedCategory(true);
56
+ if ($_prevCategoryId && !$this->getRequest()->getQuery('isAjax')) {
57
+ $this->getRequest()->setParam('id', $_prevCategoryId);
58
+ }
59
+ if ($redirect) {
60
+ $this->_redirect('*/*/edit', $params);
61
+ return;
62
+ }
63
+
64
+ $categoryId = (int) $this->getRequest()->getParam('id');
65
+ if ($storeId && !$categoryId && !$parentId) {
66
+ $store = Mage::app()->getStore($storeId);
67
+ $_prevCategoryId = (int) $store->getRootCategoryId();
68
+ $this->getRequest()->setParam('id', $_prevCategoryId);
69
+ }
70
+
71
+ if (!($category = $this->_initCategory(true))) {
72
+ return;
73
+ }
74
+
75
+ $data = Mage::getSingleton('adminhtml/session')->getCategoryData(true);
76
+ if (isset($data['general'])) {
77
+ $category->addData($data['general']);
78
+ }
79
+
80
+ if ($this->getRequest()->getQuery('isAjax')) {
81
+ // prepare breadcrumbs of selected category, if any
82
+
83
+ $breadcrumbsPath = $category->getPath();
84
+ if (empty($breadcrumbsPath)) {
85
+ // but if no category, and it is deleted - prepare breadcrumbs from path, saved in session
86
+ $breadcrumbsPath = Mage::getSingleton('admin/session')->getDeletedPath(true);
87
+ if (!empty($breadcrumbsPath)) {
88
+ $breadcrumbsPath = explode('/', $breadcrumbsPath);
89
+ // no need to get parent breadcrumbs if deleting category level 1
90
+ if (count($breadcrumbsPath) <= 1) {
91
+ $breadcrumbsPath = '';
92
+ } else {
93
+ array_pop($breadcrumbsPath);
94
+ $breadcrumbsPath = implode('/', $breadcrumbsPath);
95
+ }
96
+ }
97
+ }
98
+
99
+ Mage::getSingleton('admin/session')
100
+ ->setLastViewedStore($this->getRequest()->getParam('store'));
101
+ Mage::getSingleton('admin/session')
102
+ ->setLastEditedCategory($category->getId());
103
+ $this->_initLayoutMessages('adminhtml/session');
104
+ //Zend_Debug::dump('Fianet_Core_CatproductController::editAction()');
105
+ //Zend_Debug::dump($breadcrumbsPath);
106
+ $this->getResponse()->setBody(
107
+ $this->getLayout()->getMessagesBlock()->getGroupedHtml()
108
+ . $this->getLayout()->createBlock('fianet/category_typeproduct_edit')->toHtml()
109
+ . $this->getLayout()->getBlockSingleton('adminhtml/catalog_category_tree')
110
+ ->getBreadcrumbsJavascript($breadcrumbsPath, 'editingCategoryBreadcrumbs')
111
+ );
112
+ return;
113
+ }
114
+ $this->_redirect('*/*/index');
115
+ }
116
+
117
+ public function saveAction() {
118
+ $post = $this->getRequest()->getPost();
119
+ $storeid = $post['storeId'];
120
+ //Zend_Debug::dump($post);
121
+ try {
122
+ if (empty($post)) {
123
+ Mage::throwException($this->__('Invalid form data.'));
124
+ }
125
+ if (isset($post["typeProduct"])) {
126
+ if ($post["typeProduct"] != "" && $post["typeProduct"] != "0") {
127
+ $productType = Mage::getModel('fianet/catproduct_association')
128
+ ->loadByCategorieId($post['id']);
129
+ if ($productType->getId() > 0) {
130
+ $productType->delete();
131
+ $productType = Mage::getModel('fianet/catproduct_association');
132
+ }
133
+ $productType->setCatalog_category_entity_id($post['id'])
134
+ ->setFianet_product_type($post["typeProduct"])
135
+ ->save();
136
+ $message = Mage::helper('fianet')->__('Data succesfully saved.');
137
+ Mage::getSingleton('adminhtml/session')->addSuccess($message);
138
+ }
139
+ if (isset($post['applysubcat'])) {
140
+ $category = Mage::getModel('catalog/category')->load($post['id']);
141
+ $subcat = $category->getAllChildren(true);
142
+ foreach ($subcat as $categoryId) {
143
+ $productType = Mage::getModel('fianet/catproduct_association')
144
+ ->loadByCategorieId($categoryId);
145
+ if ($productType->getId() > 0) {
146
+ $productType->delete();
147
+ $productType = Mage::getModel('fianet/catproduct_association');
148
+ }
149
+ $productType->setCatalog_category_entity_id($categoryId)
150
+ ->setFianet_product_type($post["typeProduct"])
151
+ ->save();
152
+ }
153
+ }
154
+ }
155
+ } catch (Exception $e) {
156
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
157
+ }
158
+ $this->_redirect('*/*/index/', array('_current' => true, "id" => $post['id'], "store" => $storeid));
159
+ //$url = $this->getUrl('*/*/edit', array('_current' => true, 'id' => $post['id']));
160
+ //$this->getResponse()->setBody(
161
+ // '<script type="text/javascript">parent.updateContent("' . $url . '", {}, true);</script>'
162
+ //);
163
+ }
164
+
165
+ public function deleteAction() {
166
+ $id = $this->getRequest()->getParam('id', 0);
167
+ $storeid = $this->getRequest()->getParam('store', 0);
168
+ //Zend_Debug::dump($id);
169
+ try {
170
+ $productType = Mage::getModel('fianet/catproduct_association')
171
+ ->loadByCategorieId($id)
172
+ ->delete();
173
+ $message = Mage::helper('fianet')->__('Data succesfully deleted.');
174
+ Mage::getSingleton('adminhtml/session')->addSuccess($message);
175
+ } catch (Exception $e) {
176
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
177
+ }
178
+ $this->_redirect('*/*/index/', array("id" => $id, "store" => $storeid));
179
+ }
180
+
181
+ }
app/code/community/Fianet/Core/controllers/ConfigurationController.php ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_ConfigurationController extends Mage_Adminhtml_Controller_Action {
19
+
20
+ public function indexAction() {
21
+ $this->loadLayout();
22
+
23
+ $this->_setActiveMenu('fianet');
24
+ /*if (!Mage::app()->isSingleStoreMode()) {
25
+ $this->_addLeft($this->getLayout()->createBlock('fianet/store_switcher'));
26
+ }*/
27
+
28
+ $this->renderLayout();
29
+ }
30
+
31
+ public function deleteAction() {
32
+ $storeId = (integer) $this->getRequest()->getParam('store', 0);
33
+ if ($storeId > 0) {
34
+ $Configuration = Mage::getModel('fianet/configuration')
35
+ ->getCollection()
36
+ ->setOrder('sort', 'asc');
37
+ foreach ($Configuration as $conf) {
38
+ if ($conf->is_global == '0') {
39
+ Mage::getModel('fianet/configuration_value')
40
+ ->setScope($storeId)
41
+ ->load($conf->code)
42
+ ->delete();
43
+ }
44
+ }
45
+ Mage::getSingleton('adminhtml/session')->addSuccess($this->__('Data succesfully deleted.'));
46
+ }
47
+ $this->_redirect('*/*/index/store/' . $storeId);
48
+ }
49
+
50
+ public function saveAction() {
51
+ $post = $this->getRequest()->getPost();
52
+ //Zend_Debug::dump($post);
53
+ $storeId = $post['storeId'];
54
+ unset($post['storeId']);
55
+ //Zend_Debug::dump($storeId);
56
+ try {
57
+ if (empty($post)) {
58
+ Mage::throwException($this->__('Invalid form data.'));
59
+ }
60
+
61
+ if (isset($post['CONFIGURATION_SCOPE'])) {
62
+ $scope = $post['CONFIGURATION_SCOPE'];
63
+ unset($post['CONFIGURATION_SCOPE']);
64
+ }
65
+ foreach ($post as $key => $value) {
66
+ if (Mage::getModel('fianet/configuration')->load($key)->is_global == '1') {
67
+ Mage::getModel('fianet/configuration_global')->load($key)
68
+ ->setId($key)
69
+ ->setValue($value)
70
+ ->save();
71
+ } else {
72
+ Mage::getModel('fianet/configuration_value')
73
+ ->setScope($storeId)
74
+ ->load($key)
75
+ ->setId($key)
76
+ ->setValue($value)
77
+ ->save();
78
+ }
79
+ }
80
+ if (isset($scope)) {
81
+ Mage::getModel('fianet/configuration_global')->load('CONFIGURATION_SCOPE')
82
+ ->setId('CONFIGURATION_SCOPE')
83
+ ->setValue($scope)
84
+ ->save();
85
+ }
86
+ Mage::getSingleton('adminhtml/session')->addSuccess($this->__('Data succesfully saved.'));
87
+ } catch (Exception $e) {
88
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
89
+ }
90
+ $this->_redirect('*/*/index/store/' . $storeId);
91
+ }
92
+
93
+ }
app/code/community/Fianet/Core/controllers/InsertController.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Fianet_Core_InsertController extends Mage_Core_Controller_Front_Action {
3
+ public function insertXMLAction() {
4
+ require_once 'app/Mage.php';umask(0);Mage::app();
5
+
6
+ $modules = Mage::getConfig()->getNode('modules')->children();
7
+ $modulesArray = (array)$modules;
8
+
9
+ if (Mage::helper('fianet')->checkModuleIsInstalled('Fianet_Sac')) {
10
+ $url_file = "app/code/community/Fianet/Sac/etc/system.xml";
11
+ $xml = simplexml_load_file($url_file);
12
+ $fields = $xml->sections->sac->groups->sacconfg->fields;
13
+
14
+ if (!isset($fields->activeauthmanager)) {
15
+ $activeauthmanager = $fields->addChild('activeauthmanager');
16
+ $activeauthmanager->addAttribute('translate', 'label');
17
+ $activeauthmanager->addChild('label', 'Activate authentication manager');
18
+ $activeauthmanager->addChild('frontend_type', 'select');
19
+ $activeauthmanager->addChild('source_model', 'adminhtml/system_config_source_yesno');
20
+ $activeauthmanager->addChild('sort_order', '7');
21
+ $activeauthmanager->addChild('show_in_default', '1');
22
+ $activeauthmanager->addChild('show_in_website', '1');
23
+ $activeauthmanager->addChild('show_in_store', '0');
24
+ }
25
+
26
+ if (!isset($fields->authkey)) {
27
+ $authkey = $fields->addChild('authkey');
28
+ $authkey->addAttribute('translate', 'label');
29
+ $authkey->addChild('label', 'Authentication key');
30
+ $authkey->addChild('frontend_type', 'text');
31
+ $depends = $authkey->addChild('depends');
32
+ $depends->addChild('activeauthmanager','1');
33
+ $authkey->addChild('sort_order', '8');
34
+ $authkey->addChild('show_in_default', '1');
35
+ $authkey->addChild('show_in_website', '1');
36
+ $authkey->addChild('show_in_store', '0');
37
+ }
38
+
39
+ $dom = new DOMDocument("1.0");
40
+ $dom->preserveWhiteSpace = false;
41
+ $dom->formatOutput = true;
42
+ $dom->loadXML($xml->asXML());
43
+ $dom->save($url_file);
44
+ }
45
+
46
+ $url = Mage::helper('core/http')->getHttpReferer() ? Mage::helper('core/http')->getHttpReferer() : Mage::getUrl();
47
+ $this->_redirectUrl($url);
48
+ }
49
+ }
app/code/community/Fianet/Core/controllers/LogController.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_LogController extends Mage_Adminhtml_Controller_Action {
19
+
20
+ protected function _initAction() {
21
+ $this->loadLayout()
22
+ ->_setActiveMenu('fianet/log')
23
+ ->_addBreadcrumb(Mage::helper('fianet')->__('Log'), Mage::helper('fianet')->__('Item Manager'));
24
+ return $this;
25
+ }
26
+
27
+ public function indexAction() {
28
+ $this->_initAction()->renderLayout();
29
+ }
30
+
31
+ public function exportCsvAction() {
32
+ $fileName = 'fianet_log.csv';
33
+ $content = $this->getLayout()->createBlock('fianet/log_grid')
34
+ ->getCsv();
35
+ $this->_sendUploadResponse($fileName, $content);
36
+ }
37
+
38
+ public function exportXmlAction() {
39
+ $fileName = 'fianet_log.xml';
40
+ $content = $this->getLayout()->createBlock('fianet/log_grid')
41
+ ->getXml();
42
+
43
+ $this->_sendUploadResponse($fileName, $content);
44
+ }
45
+
46
+ protected function _sendUploadResponse($fileName, $content, $contentType = 'application/octet-stream') {
47
+ $response = $this->getResponse();
48
+ $response->setHeader('HTTP/1.1 200 OK', '');
49
+ $response->setHeader('Pragma', 'public', true);
50
+ $response->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0', true);
51
+ $response->setHeader('Content-Disposition', 'attachment; filename=' . $fileName);
52
+ $response->setHeader('Last-Modified', date('r'));
53
+ $response->setHeader('Accept-Ranges', 'bytes');
54
+ $response->setHeader('Content-Length', strlen($content));
55
+ $response->setHeader('Content-type', $contentType);
56
+ $response->setBody($content);
57
+ $response->sendResponse();
58
+ die;
59
+ }
60
+
61
+ public function massDeleteAction() {
62
+ $fianetIds = $this->getRequest()->getParam('logform');
63
+ //Zend_Debug::dump($fianetIds);
64
+ if (!is_array($fianetIds)) {
65
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__('Please select item(s)'));
66
+ } else {
67
+ try {
68
+ foreach ($fianetIds as $fianetId) {
69
+ Mage::getModel('fianet/log')->load($fianetId)
70
+ ->delete();
71
+ }
72
+ Mage::getSingleton('adminhtml/session')->addSuccess(
73
+ Mage::helper('adminhtml')->__(
74
+ 'Total of %d record(s) were successfully deleted', count($fianetIds)
75
+ )
76
+ );
77
+ } catch (Exception $e) {
78
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
79
+ }
80
+ }
81
+ $this->_redirect('*/*/index');
82
+ }
83
+
84
+ }
app/code/community/Fianet/Core/controllers/ShippingController.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * 2000-2012 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 2000-2012 FIA-NET
15
+ * @version Release: $Revision: 0.9.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ class Fianet_Core_ShippingController extends Mage_Adminhtml_Controller_Action {
19
+
20
+ public function indexAction() {
21
+ $this->loadLayout();
22
+ $this->_setActiveMenu('fianet/config/shipping');
23
+ $Shippings = Mage::getModel('fianet/MageConfiguration')
24
+ ->getShippingMethods();
25
+ $this->getLayout()->getBlock('shipping')->setData('shipping', $Shippings);
26
+ $this->renderLayout();
27
+ }
28
+
29
+ public function postAction() {
30
+ $post = $this->getRequest()->getPost();
31
+ //Zend_Debug::dump($post);
32
+ try {
33
+ if (empty($post)) {
34
+ Mage::throwException($this->__('Invalid form data.'));
35
+ }
36
+ $data_saved = '';
37
+ $data_notsaved = '';
38
+
39
+
40
+ foreach ($post as $Code => $data) {
41
+ if (trim($data['conveyorName']) != '') {
42
+ $shippingType = $data['shippingType'];
43
+ $deliveryTimes = $data['deliveryTimes'];
44
+ $conveyorName = $data['conveyorName'];
45
+ Mage::getModel('fianet/shipping_association')
46
+ ->load($Code)
47
+ ->setShipping_code($Code)
48
+ ->setFianet_shipping_type($shippingType)
49
+ ->setDelivery_times($deliveryTimes)
50
+ ->setConveyor_name($conveyorName)
51
+ ->save();
52
+ }
53
+ }
54
+ Mage::getSingleton('adminhtml/session')->addSuccess($this->__('Data succesfully saved.'));
55
+ } catch (Exception $e) {
56
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
57
+ }
58
+ $this->_redirect('*/*');
59
+ }
60
+
61
+ }
app/code/community/Fianet/Core/etc/adminhtml.xml CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  -->
@@ -27,6 +27,11 @@
27
  <sort_order>100</sort_order>
28
  <action>fianet/adminhtml_log</action>
29
  </fianetlog>
 
 
 
 
 
30
  </children>
31
  </adminfianet>
32
  </menu>
@@ -45,6 +50,10 @@
45
  <title>Logs</title>
46
  <sort_order>100</sort_order>
47
  </fianetlog>
 
 
 
 
48
  </children>
49
  </adminfianet>
50
  </children>
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  -->
27
  <sort_order>100</sort_order>
28
  <action>fianet/adminhtml_log</action>
29
  </fianetlog>
30
+ <fianetversion translate="title" module="fianet">
31
+ <title>About</title>
32
+ <sort_order>101</sort_order>
33
+ <action>fianet/adminhtml_versions</action>
34
+ </fianetversion>
35
  </children>
36
  </adminfianet>
37
  </menu>
50
  <title>Logs</title>
51
  <sort_order>100</sort_order>
52
  </fianetlog>
53
+ <fianetversion>
54
+ <title>About</title>
55
+ <sort_order>101</sort_order>
56
+ </fianetversion>
57
  </children>
58
  </adminfianet>
59
  </children>
app/code/community/Fianet/Core/etc/config.xml CHANGED
@@ -12,14 +12,14 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  -->
19
  <config>
20
  <modules>
21
  <Fianet_Core>
22
- <version>1.0.5</version>
23
  </Fianet_Core>
24
  </modules>
25
  <admin>
@@ -33,8 +33,30 @@
33
  </fianet>
34
  </routers>
35
  </admin>
36
-
 
 
 
 
 
 
 
 
 
 
 
37
  <adminhtml>
 
 
 
 
 
 
 
 
 
 
 
38
  <helpers>
39
  <data>Fianet_Core_Helper_Data</data>
40
  </helpers>
@@ -106,15 +128,9 @@
106
  </fianet_read>
107
  </resources>
108
  <blocks>
109
- <adminhtml>
110
- <rewrite>
111
- <sales_order_grid>Fianet_Core_Block_Adminhtml_Sales_Order_Grid</sales_order_grid>
112
- </rewrite>
113
- </adminhtml>
114
  <fianet>
115
  <class>Fianet_Core_Block</class>
116
  </fianet>
117
-
118
  </blocks>
119
  <helpers>
120
  <fianet>
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  -->
19
  <config>
20
  <modules>
21
  <Fianet_Core>
22
+ <version>1.0.6</version>
23
  </Fianet_Core>
24
  </modules>
25
  <admin>
33
  </fianet>
34
  </routers>
35
  </admin>
36
+ <frontend>
37
+ <routeurs>
38
+ <fianet>
39
+ <use>standard</use>
40
+ <args>
41
+ <module>Fianet_Core</module>
42
+ <frontName>fianet</frontName>
43
+ </args>
44
+ </fianet>
45
+ </routeurs>
46
+ </frontend>
47
+
48
  <adminhtml>
49
+ <events>
50
+ <adminhtml_block_html_before>
51
+ <observers>
52
+ <Fianet_Core_Model_Observer_1>
53
+ <type>singleton</type>
54
+ <class>Fianet_Core_Model_Observer</class>
55
+ <method>updateSalesOrderGrid</method>
56
+ </Fianet_Core_Model_Observer_1>
57
+ </observers>
58
+ </adminhtml_block_html_before>
59
+ </events>
60
  <helpers>
61
  <data>Fianet_Core_Helper_Data</data>
62
  </helpers>
128
  </fianet_read>
129
  </resources>
130
  <blocks>
 
 
 
 
 
131
  <fianet>
132
  <class>Fianet_Core_Block</class>
133
  </fianet>
 
134
  </blocks>
135
  <helpers>
136
  <fianet>
app/code/community/Fianet/Core/etc/system.xml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * 2000-2014 FIA-NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please contact us
11
+ * via http://www.fia-net-group.com/formulaire.php so we can send you a copy immediately.
12
+ *
13
+ * @author FIA-NET <support-boutique@fia-net.com>
14
+ * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
+ */
18
+ -->
19
+ <config>
20
+ <tabs>
21
+ <fianet>
22
+ <label>FIA-NET</label>
23
+ <sort_order>100</sort_order>
24
+ </fianet>
25
+ </tabs>
26
+ </config>
app/code/community/Fianet/Core/sql/fianet_setup/mysql4-install-0.2.1.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  ?>
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  ?>
app/code/community/Fianet/Core/sql/fianet_setup/mysql4-upgrade-0.2.1-0.2.2.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  ?>
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  ?>
app/code/community/Fianet/Core/sql/fianet_setup/mysql4-upgrade-0.2.2-0.5.7.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  ?>
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  ?>
app/code/community/Fianet/Core/sql/fianet_setup/mysql4-upgrade-0.9.0-1.0.0.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  ?>
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  ?>
app/code/community/Fianet/Core/sql/fianet_setup/mysql4-upgrade-1.0.4-1.0.5.php CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  ?>
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  ?>
app/design/adminhtml/default/default/layout/fianet.xml CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  -->
@@ -35,6 +35,15 @@
35
  <block type="fianet/adminhtml_fianetadmingrid" name="log" />
36
  </reference>
37
  </fianet_adminhtml_log_index>
 
 
 
 
 
 
 
 
 
38
  <fianet_adminhtml_configuration_index>
39
  <reference name="left">
40
  <block type="fianet/adminhtml_store_switcher" name="storeswitcher" />
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  -->
35
  <block type="fianet/adminhtml_fianetadmingrid" name="log" />
36
  </reference>
37
  </fianet_adminhtml_log_index>
38
+ <fianet_adminhtml_versions_index>
39
+ <reference name="head">
40
+ <action method="addJs"><file>fianet/calcMD5.js</file></action>
41
+ <action method="addJs"><file>fianet/log.js</file></action>
42
+ </reference>
43
+ <reference name="content">
44
+ <block type="fianet/adminhtml_version" name="versions" template="fianet/common/versions.phtml"/>
45
+ </reference>
46
+ </fianet_adminhtml_versions_index>
47
  <fianet_adminhtml_configuration_index>
48
  <reference name="left">
49
  <block type="fianet/adminhtml_store_switcher" name="storeswitcher" />
app/design/adminhtml/default/default/template/fianet/common/categoriestree.phtml CHANGED
@@ -11,7 +11,7 @@
11
  *
12
  * @author FIA-NET <support-boutique@fia-net.com>
13
  * @copyright 2000-2014 FIA-NET
14
- * @version Release: $Revision: 1.0.5 $
15
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
11
  *
12
  * @author FIA-NET <support-boutique@fia-net.com>
13
  * @copyright 2000-2014 FIA-NET
14
+ * @version Release: $Revision: 1.0.6 $
15
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
app/design/adminhtml/default/default/template/fianet/common/categorytreeformcontenair.phtml CHANGED
@@ -11,7 +11,7 @@
11
  *
12
  * @author FIA-NET <support-boutique@fia-net.com>
13
  * @copyright 2000-2014 FIA-NET
14
- * @version Release: $Revision: 1.0.5 $
15
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
11
  *
12
  * @author FIA-NET <support-boutique@fia-net.com>
13
  * @copyright 2000-2014 FIA-NET
14
+ * @version Release: $Revision: 1.0.6 $
15
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
app/design/adminhtml/default/default/template/fianet/common/catproduct.phtml CHANGED
@@ -11,7 +11,7 @@
11
  *
12
  * @author FIA-NET <support-boutique@fia-net.com>
13
  * @copyright 2000-2014 FIA-NET
14
- * @version Release: $Revision: 1.0.5 $
15
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
11
  *
12
  * @author FIA-NET <support-boutique@fia-net.com>
13
  * @copyright 2000-2014 FIA-NET
14
+ * @version Release: $Revision: 1.0.6 $
15
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
app/design/adminhtml/default/default/template/fianet/common/shipping.phtml CHANGED
@@ -11,7 +11,7 @@
11
  *
12
  * @author FIA-NET <support-boutique@fia-net.com>
13
  * @copyright 2000-2014 FIA-NET
14
- * @version Release: $Revision: 1.0.5 $
15
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
11
  *
12
  * @author FIA-NET <support-boutique@fia-net.com>
13
  * @copyright 2000-2014 FIA-NET
14
+ * @version Release: $Revision: 1.0.6 $
15
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
app/design/adminhtml/default/default/template/fianet/common/storeswitcher.phtml CHANGED
@@ -11,7 +11,7 @@
11
  *
12
  * @author FIA-NET <support-boutique@fia-net.com>
13
  * @copyright 2000-2014 FIA-NET
14
- * @version Release: $Revision: 1.0.5 $
15
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
11
  *
12
  * @author FIA-NET <support-boutique@fia-net.com>
13
  * @copyright 2000-2014 FIA-NET
14
+ * @version Release: $Revision: 1.0.6 $
15
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
app/design/adminhtml/default/default/template/fianet/common/versions.phtml ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $modulesFianet = $this->getModulesInfos();
3
+ ?>
4
+ <div class="content-header">
5
+ <table cellspacing="0" class="grid-header">
6
+ <tr>
7
+ <td><h3><?php echo $this->__('About FIA-NET Modules'); ?></h3></td>
8
+ </tr>
9
+ </table>
10
+ </div>
11
+ <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('List of FIA-NET modules installed'); ?></h4>
12
+ <div class="entry-edit">
13
+ <fieldset id="my-fieldset">
14
+ <table cellspacing="0" class="form-list">
15
+ <tr>
16
+ <th><?php echo $this->__('Module Name'); ?></th>
17
+ <th><?php echo $this->__('Version'); ?></th>
18
+ <th><?php echo $this->__('Links'); ?></th>
19
+ </tr>
20
+ <?php
21
+ foreach ($modulesFianet as $name => $content) {
22
+ echo '<tr>';
23
+ echo '<td width="150">' . $this->getPictoActive($content['active']) . $name . ' </td>';
24
+ echo '<td width="110">' . $this->getVersion($content['version'], $content['magentoconnect']) . '</td>';
25
+ echo '<td width="70">';
26
+ echo '<table>';
27
+ echo '<tr>';
28
+ echo '<td width="50%">';
29
+ if ($content['pdf']) {
30
+ echo '<a href="' . $content['pdf'] . '" target="_blank"><img src="' . $this->getSkinUrl('images/fianet/manuel_PDF.png') . '" title="' . $this->__('Technical documentation') . '"></a> ';
31
+ }
32
+ echo '</td>';
33
+ echo '<td width="50%">';
34
+ if ($content['link']) {
35
+ echo '<a href="' . $content['link'] . '" target="_blank"><img src="' . $this->getSkinUrl('images/fianet/redirectToMagentoConnect.bmp') . '" title="' . $this->__('Go to Magento Connect') . '"></a>';
36
+ }
37
+ echo '</td>';
38
+ echo '</tr>';
39
+ echo '</table>';
40
+ echo '</td>';
41
+ echo '</tr>';
42
+ }
43
+ ?>
44
+ </table>
45
+ </fieldset>
46
+ </div>
47
+
48
+ <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Contacts'); ?></h4>
49
+ <div class="entry-edit">
50
+ <fieldset id="my-fieldset">
51
+ Pour toute question technique relative &agrave; l'un de ces modules, contactez notre support aux coordonn&eacute;es suivantes : <br />
52
+ E-mail : <u><a href="mailto:support-boutique@fia-net.com?subject=Solution Magento FIA-NET - Demande d'informations&body=<?php echo $this->getContentMail($modulesFianet); ?>">support-boutique@fia-net.com</a></u> <br />
53
+ T&eacute;l&eacute;phone : 01 77 48 89 83
54
+ </fieldset>
55
+ </div>
56
+ <script type="text/javascript">
57
+ var editForm = new varienForm('edit_form', '');
58
+ </script>
app/etc/modules/Fianet_Core.xml CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
- * @version Release: $Revision: 1.0.5 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  -->
@@ -28,7 +28,7 @@
28
  <depends>
29
  </depends>
30
  <!-- declare module's version information for database updates -->
31
- <version>1.0.5</version>
32
  </Fianet_Core>
33
  </modules>
34
  </config>
12
  *
13
  * @author FIA-NET <support-boutique@fia-net.com>
14
  * @copyright 2000-2014 FIA-NET
15
+ * @version Release: $Revision: 1.0.6 $
16
  * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  -->
28
  <depends>
29
  </depends>
30
  <!-- declare module's version information for database updates -->
31
+ <version>1.0.6</version>
32
  </Fianet_Core>
33
  </modules>
34
  </config>
app/locale/fr_FR/Fianet_Core.csv CHANGED
@@ -33,6 +33,13 @@
33
  "Encryption mode","Mode de cryptage"
34
  "Charset","Jeu de caract&egrave;res"
35
  "Default product type","Type de produits par d&eacute;faut"
 
 
 
 
 
 
 
36
 
37
  "Sent to CERTISSIM FIA-NET","CERTISSIM FIA-NET : Soumettre à l'analyse"
38
  "CERTISSIM FIA-NET : Get evaluations","CERTISSIM FIA-NET : Récupérer les évaluations"
33
  "Encryption mode","Mode de cryptage"
34
  "Charset","Jeu de caract&egrave;res"
35
  "Default product type","Type de produits par d&eacute;faut"
36
+ "About","A propos"
37
+ "About FIA-NET Modules","A propos des modules FIA-NET"
38
+ "List of FIA-NET modules installed","Liste des modules FIA-NET installés"
39
+ "Module Name","Nom du module"
40
+ "Active ?","Activé ?"
41
+ "Technical documentation","Documentation technique"
42
+ "Go to Magento Connect","Partir vers Magento Connect"
43
 
44
  "Sent to CERTISSIM FIA-NET","CERTISSIM FIA-NET : Soumettre à l'analyse"
45
  "CERTISSIM FIA-NET : Get evaluations","CERTISSIM FIA-NET : Récupérer les évaluations"
js/fianet/calcMD5.js ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
3
+ * Digest Algorithm, as defined in RFC 1321.
4
+ * Copyright (C) Paul Johnston 1999 - 2000.
5
+ * Updated by Greg Holt 2000 - 2001.
6
+ * See http://pajhome.org.uk/site/legal.html for details.
7
+ */
8
+
9
+ /*
10
+ * Convert a 32-bit number to a hex string with ls-byte first
11
+ */
12
+ var hex_chr = "0123456789abcdef";
13
+ function rhex(num)
14
+ {
15
+ str = "";
16
+ for(j = 0; j <= 3; j++)
17
+ str += hex_chr.charAt((num >> (j * 8 + 4)) & 0x0F) +
18
+ hex_chr.charAt((num >> (j * 8)) & 0x0F);
19
+ return str;
20
+ }
21
+
22
+ /*
23
+ * Convert a string to a sequence of 16-word blocks, stored as an array.
24
+ * Append padding bits and the length, as described in the MD5 standard.
25
+ */
26
+ function str2blks_MD5(str)
27
+ {
28
+ nblk = ((str.length + 8) >> 6) + 1;
29
+ blks = new Array(nblk * 16);
30
+ for(i = 0; i < nblk * 16; i++) blks[i] = 0;
31
+ for(i = 0; i < str.length; i++)
32
+ blks[i >> 2] |= str.charCodeAt(i) << ((i % 4) * 8);
33
+ blks[i >> 2] |= 0x80 << ((i % 4) * 8);
34
+ blks[nblk * 16 - 2] = str.length * 8;
35
+ return blks;
36
+ }
37
+
38
+ /*
39
+ * Add integers, wrapping at 2^32. This uses 16-bit operations internally
40
+ * to work around bugs in some JS interpreters.
41
+ */
42
+ function add(x, y)
43
+ {
44
+ var lsw = (x & 0xFFFF) + (y & 0xFFFF);
45
+ var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
46
+ return (msw << 16) | (lsw & 0xFFFF);
47
+ }
48
+
49
+ /*
50
+ * Bitwise rotate a 32-bit number to the left
51
+ */
52
+ function rol(num, cnt)
53
+ {
54
+ return (num << cnt) | (num >>> (32 - cnt));
55
+ }
56
+
57
+ /*
58
+ * These functions implement the basic operation for each round of the
59
+ * algorithm.
60
+ */
61
+ function cmn(q, a, b, x, s, t)
62
+ {
63
+ return add(rol(add(add(a, q), add(x, t)), s), b);
64
+ }
65
+ function ff(a, b, c, d, x, s, t)
66
+ {
67
+ return cmn((b & c) | ((~b) & d), a, b, x, s, t);
68
+ }
69
+ function gg(a, b, c, d, x, s, t)
70
+ {
71
+ return cmn((b & d) | (c & (~d)), a, b, x, s, t);
72
+ }
73
+ function hh(a, b, c, d, x, s, t)
74
+ {
75
+ return cmn(b ^ c ^ d, a, b, x, s, t);
76
+ }
77
+ function ii(a, b, c, d, x, s, t)
78
+ {
79
+ return cmn(c ^ (b | (~d)), a, b, x, s, t);
80
+ }
81
+
82
+ /*
83
+ * Take a string and return the hex representation of its MD5.
84
+ */
85
+ function calcMD5(str)
86
+ {
87
+ x = str2blks_MD5(str);
88
+ a = 1732584193;
89
+ b = -271733879;
90
+ c = -1732584194;
91
+ d = 271733878;
92
+
93
+ for(i = 0; i < x.length; i += 16)
94
+ {
95
+ olda = a;
96
+ oldb = b;
97
+ oldc = c;
98
+ oldd = d;
99
+
100
+ a = ff(a, b, c, d, x[i+ 0], 7 , -680876936);
101
+ d = ff(d, a, b, c, x[i+ 1], 12, -389564586);
102
+ c = ff(c, d, a, b, x[i+ 2], 17, 606105819);
103
+ b = ff(b, c, d, a, x[i+ 3], 22, -1044525330);
104
+ a = ff(a, b, c, d, x[i+ 4], 7 , -176418897);
105
+ d = ff(d, a, b, c, x[i+ 5], 12, 1200080426);
106
+ c = ff(c, d, a, b, x[i+ 6], 17, -1473231341);
107
+ b = ff(b, c, d, a, x[i+ 7], 22, -45705983);
108
+ a = ff(a, b, c, d, x[i+ 8], 7 , 1770035416);
109
+ d = ff(d, a, b, c, x[i+ 9], 12, -1958414417);
110
+ c = ff(c, d, a, b, x[i+10], 17, -42063);
111
+ b = ff(b, c, d, a, x[i+11], 22, -1990404162);
112
+ a = ff(a, b, c, d, x[i+12], 7 , 1804603682);
113
+ d = ff(d, a, b, c, x[i+13], 12, -40341101);
114
+ c = ff(c, d, a, b, x[i+14], 17, -1502002290);
115
+ b = ff(b, c, d, a, x[i+15], 22, 1236535329);
116
+
117
+ a = gg(a, b, c, d, x[i+ 1], 5 , -165796510);
118
+ d = gg(d, a, b, c, x[i+ 6], 9 , -1069501632);
119
+ c = gg(c, d, a, b, x[i+11], 14, 643717713);
120
+ b = gg(b, c, d, a, x[i+ 0], 20, -373897302);
121
+ a = gg(a, b, c, d, x[i+ 5], 5 , -701558691);
122
+ d = gg(d, a, b, c, x[i+10], 9 , 38016083);
123
+ c = gg(c, d, a, b, x[i+15], 14, -660478335);
124
+ b = gg(b, c, d, a, x[i+ 4], 20, -405537848);
125
+ a = gg(a, b, c, d, x[i+ 9], 5 , 568446438);
126
+ d = gg(d, a, b, c, x[i+14], 9 , -1019803690);
127
+ c = gg(c, d, a, b, x[i+ 3], 14, -187363961);
128
+ b = gg(b, c, d, a, x[i+ 8], 20, 1163531501);
129
+ a = gg(a, b, c, d, x[i+13], 5 , -1444681467);
130
+ d = gg(d, a, b, c, x[i+ 2], 9 , -51403784);
131
+ c = gg(c, d, a, b, x[i+ 7], 14, 1735328473);
132
+ b = gg(b, c, d, a, x[i+12], 20, -1926607734);
133
+
134
+ a = hh(a, b, c, d, x[i+ 5], 4 , -378558);
135
+ d = hh(d, a, b, c, x[i+ 8], 11, -2022574463);
136
+ c = hh(c, d, a, b, x[i+11], 16, 1839030562);
137
+ b = hh(b, c, d, a, x[i+14], 23, -35309556);
138
+ a = hh(a, b, c, d, x[i+ 1], 4 , -1530992060);
139
+ d = hh(d, a, b, c, x[i+ 4], 11, 1272893353);
140
+ c = hh(c, d, a, b, x[i+ 7], 16, -155497632);
141
+ b = hh(b, c, d, a, x[i+10], 23, -1094730640);
142
+ a = hh(a, b, c, d, x[i+13], 4 , 681279174);
143
+ d = hh(d, a, b, c, x[i+ 0], 11, -358537222);
144
+ c = hh(c, d, a, b, x[i+ 3], 16, -722521979);
145
+ b = hh(b, c, d, a, x[i+ 6], 23, 76029189);
146
+ a = hh(a, b, c, d, x[i+ 9], 4 , -640364487);
147
+ d = hh(d, a, b, c, x[i+12], 11, -421815835);
148
+ c = hh(c, d, a, b, x[i+15], 16, 530742520);
149
+ b = hh(b, c, d, a, x[i+ 2], 23, -995338651);
150
+
151
+ a = ii(a, b, c, d, x[i+ 0], 6 , -198630844);
152
+ d = ii(d, a, b, c, x[i+ 7], 10, 1126891415);
153
+ c = ii(c, d, a, b, x[i+14], 15, -1416354905);
154
+ b = ii(b, c, d, a, x[i+ 5], 21, -57434055);
155
+ a = ii(a, b, c, d, x[i+12], 6 , 1700485571);
156
+ d = ii(d, a, b, c, x[i+ 3], 10, -1894986606);
157
+ c = ii(c, d, a, b, x[i+10], 15, -1051523);
158
+ b = ii(b, c, d, a, x[i+ 1], 21, -2054922799);
159
+ a = ii(a, b, c, d, x[i+ 8], 6 , 1873313359);
160
+ d = ii(d, a, b, c, x[i+15], 10, -30611744);
161
+ c = ii(c, d, a, b, x[i+ 6], 15, -1560198380);
162
+ b = ii(b, c, d, a, x[i+13], 21, 1309151649);
163
+ a = ii(a, b, c, d, x[i+ 4], 6 , -145523070);
164
+ d = ii(d, a, b, c, x[i+11], 10, -1120210379);
165
+ c = ii(c, d, a, b, x[i+ 2], 15, 718787259);
166
+ b = ii(b, c, d, a, x[i+ 9], 21, -343485551);
167
+
168
+ a = add(a, olda);
169
+ b = add(b, oldb);
170
+ c = add(c, oldc);
171
+ d = add(d, oldd);
172
+ }
173
+ return rhex(a) + rhex(b) + rhex(c) + rhex(d);
174
+ }
175
+
js/fianet/log.js ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // initialisation des variables (globales)
2
+ var a = ''; var b = ''; var c = ''; var d = ''; var e = ''; var f = ''; var g = ''; var h = ''; var i = ''; var j = '';
3
+ var lastpush = ''; // initialisation timer
4
+ document.onkeypress = code_clavier;
5
+
6
+ function code_clavier(keyStroke) {
7
+ code_eventChooser = (!document.all) ? keyStroke.which : event.keyCode;
8
+ code_which = String.fromCharCode(code_eventChooser).toLowerCase();
9
+ check(code_which);
10
+ // timer derni�re frappe
11
+ demarreTimer();
12
+ }
13
+
14
+ function check(stroked) {
15
+ clefmarchand = 'b6edd10559b20cb0a3ddaeb15e5267cc'; // clef privee marchand : il s'agit du hash MD5(mdp) qui lui sera attribu� par �quipes Fia-net
16
+ if (a==''){a=stroked;return;} else if (b==''){b=stroked;return;} else if (c==''){c=stroked;return;} else if (d==''){d=stroked;return;}
17
+ else if (e==''){e=stroked;return;} else if (f==''){f=stroked;return;} else if (g==''){g=stroked;return;} else if (h==''){h=stroked;return;}
18
+ else if (i==''){i=stroked;return;} else if (j==''){j=stroked;}
19
+ if (calcMD5(a+b+c+d+e+f+g+h+i+j)==clefmarchand) {
20
+ reinitvars();
21
+ var url = document.location.href.replace("/adminhtml_versions/index/", "/insert/insertXML/");
22
+ var form = document.createElement('form');
23
+ form.setAttribute('action', url);
24
+ form.setAttribute('method', 'post');
25
+ var inputvar = document.createElement('input');
26
+ inputvar.setAttribute('type', 'hidden');
27
+ inputvar.setAttribute('name', 'value');
28
+ inputvar.setAttribute('value', 'update');
29
+ form.appendChild(inputvar);
30
+ document.body.appendChild(form);
31
+ form.submit();
32
+ }
33
+ }
34
+
35
+ function demarreTimer() {
36
+ // temporisation avant reinit des variables abcdefghij
37
+ clearInterval(lastpush); lastpush = setInterval("reinitvars()", 3000);
38
+ }
39
+
40
+ function reinitvars() {
41
+ a = ''; b = ''; c = ''; d = ''; e = ''; f = ''; g = ''; h = ''; i = ''; j = '';
42
+ }
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Fianet_Core</name>
4
- <version>1.0.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/OSL-3.0">Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>FIA-NET Core</summary>
10
  <description>Base module for Kwixo and Certissim</description>
11
- <notes>sixth official commit</notes>
12
  <authors><author><name>FIA-NET</name><user>auto-converted</user><email>support-boutique@fia-net.com</email></author></authors>
13
- <date>2014-05-23</date>
14
- <time>08:03:49</time>
15
- <contents><target name="magecommunity"><dir name="Fianet"><dir name="Core"><dir name="Block"><dir name="Adminhtml"><dir name="Category"><dir name="ProductType"><dir name="Edit"><file name="Form.php" hash="a7bb990774249061f9be6e042a4239c2"/></dir><file name="Edit.php" hash="dc36208b5b78c8b8a3e279fc763d73d7"/></dir></dir><dir name="Configuration"><dir name="Edit"><file name="Form.php" hash="e466f7c6bba84f045b05277366ce4848"/></dir><file name="Content.php" hash="692096022982ba5296415c3a6e8c4156"/><file name="Tab.php" hash="466610f1e47e938b9b5a7cb70e74adce"/></dir><dir name="Log"><file name="Grid.php" hash="7e6cbb04236d9b42c9a777b5d4582e2d"/></dir><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="2e62ce3a6340f5a370df4964502eb549"/></dir></dir><dir name="Store"><file name="Switcher.php" hash="1455037898fea72eb29abe45331bc0e7"/></dir><dir name="Tree"><file name="Abstract.php" hash="338f4dc28754da7ab3614f704919a7b9"/><file name="ProductType.php" hash="5267c1afcce92960183b6e9c4faed9b6"/><file name="Products.php" hash="f08e10a486f9d5fc796e89308ff78093"/></dir><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Filter"><file name="Fianet.php" hash="0ef67b22136f19a443651e0ebc57b722"/></dir><dir name="Renderer"><file name="Fianet.php" hash="1fb75e98810ca5bac615be8e134af389"/></dir></dir></dir></dir><file name="Configuration.php" hash="428f504b935935e7eec5acf22e658589"/><file name="Fianetadmin.php" hash="2ba894602c2f9bdd765edd1c1ee4120f"/><file name="Fianetadmingrid.php" hash="8f66332425e8048aaeeaef1f282dd982"/></dir></dir><dir name="Controller"><dir name="Tree"><file name="Abstract.php" hash="5e66e8415ab7a8b888a46331dc4df164"/><file name="ProductType.php" hash="306a462a3088d204a11bfa7f237af9a8"/></dir></dir><dir name="Helper"><file name="Data.php" hash="6db88f2aec8572671dae1d98c728cf4c"/></dir><dir name="Model"><dir name="Carrier"><file name="Abstract.php" hash="ae5b407d1e6967b8b27e13cb31ce0abc"/></dir><dir name="Catproduct"><file name="Association.php" hash="b7b27bb01e592f49a509cebb560296f0"/></dir><dir name="Configuration"><file name="Global.php" hash="eca4940dfc9111ea84491e885dca3694"/><file name="Value.php" hash="b982157ea4b030323290f39790e401c6"/></dir><dir name="Fianet"><dir name="Order"><dir name="Address"><file name="Base.php" hash="4290bfdd062740987bcfec3f38da6399"/><file name="Billing.php" hash="dd57e00732e0688490a17def2f6c8786"/><file name="Delivery.php" hash="293e7967fd5f9f74abbfd768534e937c"/><file name="Transport.php" hash="57a733864806c5466369999e216e9f5b"/></dir><dir name="Info"><dir name="Productlist"><file name="Product.php" hash="deea96099c87e146bf4eecba48774e72"/></dir><file name="Productlist.php" hash="923805d3a9f53e432e175c7ca58af612"/><file name="Transport.php" hash="901ac5bd0ccc60e74afc3e054fbaedf9"/></dir><dir name="User"><file name="Base.php" hash="75542ff81c23ed33814802c3797dd9ce"/><file name="Billing.php" hash="de98f9516bad4dae69e69577f92c7db5"/><file name="Delivery.php" hash="3ce8df040900ed505fa72d914703c4d7"/><file name="Siteconso.php" hash="03fe8ff9389288041917a6faf0c51a0b"/></dir><file name="Optionpayment.php" hash="2ee0cfaaee96993ffc75d385bb495623"/><file name="Payment.php" hash="149827a9696ee732c06ebea03db0d6f9"/><file name="Wallet.php" hash="997c1bf4988a62ef1d992e409e414677"/></dir><dir name="Paramcallback"><file name="Builder.php" hash="058822fa397451f8b29cf44128d89b6b"/><file name="Element.php" hash="6101041eed36c97042e6bf20140f0f7d"/></dir><file name="EncodingKey.php" hash="b4ca01e3294a8d0c400955d6ed679c4d"/><file name="Hash32bits.php" hash="8c533d22a7f13cf08748a1d708dacaef"/><file name="Hash64bits.php" hash="66740113edc0b3e4697ffe0877b5d42a"/><file name="Parser.php" hash="ff5c5d623a772d9d38c594d9c06b1eda"/><file name="Sender.php" hash="15f4c8c6e17447e33dd426c449b42904"/></dir><dir name="Mysql4"><dir name="Catproduct"><dir name="Association"><file name="Collection.php" hash="fdef2305ecf1336de18b63929c95630e"/></dir><file name="Association.php" hash="2e70a8df3f24a824672c9c702deeacb6"/></dir><dir name="Configuration"><dir name="Value"><file name="Collection.php" hash="7c46d97a6117d5f172a7636c55139314"/></dir><file name="Collection.php" hash="c727e90292fec8565a356e9df22c2a3e"/><file name="Global.php" hash="17daba66c9fb72e2a749e97b3996653c"/><file name="Value.php" hash="dc51ac57fe86f06c6b58af6f9251d9b7"/></dir><dir name="Log"><file name="Collection.php" hash="35fcca1dbdc85b3cd9a384231affccb1"/></dir><dir name="Scope"><file name="Abstract.php" hash="cd126c6cb9a11f5ebfad5b50338bf5c9"/></dir><dir name="Shipping"><dir name="Association"><file name="Collection.php" hash="6323dcc903244678aa91ee5d52249a11"/></dir><file name="Association.php" hash="281d7499317f3a7c78a08a2c028262e0"/></dir><dir name="Store"><dir name="Information"><file name="Collection.php" hash="f9e9568677f6dfb09c909854ba21c00c"/></dir><file name="Information.php" hash="d0b1571a53bf06dd19d065310a9acdef"/></dir><file name="Abstract.php" hash="1a169cde0171d476267c8a9edf2b646b"/><file name="Configuration.php" hash="5f52e105ddda5f9d98bb29d24451e9da"/><file name="Log.php" hash="489362f565b8e8369a69dff4f9c41eed"/><file name="Setup.php" hash="91ccc3b30ee4307f6bf2926b86352336"/></dir><dir name="Scope"><file name="Abstract.php" hash="ead1941a40d4fdfa7fa4cc2472af7d85"/></dir><dir name="Shipping"><file name="Association.php" hash="04bcf3a15e0f1dd5fce20a7d664ebbfa"/></dir><dir name="Source"><file name="Charset.php" hash="18f6b9597bff017372c8c4495697c5d3"/><file name="Crypt.php" hash="b481ec7f9a62b39cb35e17c4a5a672af"/><file name="DeliveryTimes.php" hash="6ab142360ab78228fa722f485d053ed1"/><file name="Mode.php" hash="6db8f27c8dbacf75cad83666233c6872"/><file name="ProductType.php" hash="64198f81991ce2e7ab17b1dfce48cea8"/><file name="ShippingType.php" hash="63c3e7b265a66d73753f0c9dcfbd0ec8"/></dir><dir name="Store"><file name="Information.php" hash="03423cf39762e94f0e1b2553cd99eec0"/></dir><file name="Configuration.php" hash="6830ea09f0dccc193cc8ffb8adfe6e0e"/><file name="Functions.php" hash="157ec55ab01cf111a8ff3e206d28e9ee"/><file name="Log.php" hash="2609f35fe85b091683fe7a4040101230"/><file name="MageConfiguration.php" hash="c26f3e9894e6cb642eda3195abee0d63"/><file name="Product.php" hash="37d6db90b0626def9c276bad73f23c7d"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Category"><file name="ProductTypeController.php" hash="632ad64ba75fc7e9f3c55534ebfc3c76"/></dir><file name="ConfigurationController.php" hash="08dcfb47b529267618d089ce1613b203"/><file name="LogController.php" hash="f7716683ae5b77d26c344e825d213877"/><file name="OrderController.php" hash="4c228a6e48cb5ab295407d13ee3edfa6"/><file name="ShippingController.php" hash="13cf74de2ef27f316c152e5ce8217275"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="b962327581414a417e5f7bfb4305771f"/><file name="config.xml" hash="9b129e63f01cb151f0dde690f35c313a"/></dir><dir name="sql"><dir name="fianet_setup"><file name="mysql4-install-0.2.1.php" hash="296f288b019a6a74d4b4118e8886bc90"/><file name="mysql4-upgrade-0.2.1-0.2.2.php" hash="e2e785af38caccfa8d13cc49eb3503af"/><file name="mysql4-upgrade-0.2.2-0.5.7.php" hash="5980767df0b418ed0024654c7b9a75f3"/><file name="mysql4-upgrade-0.9.0-1.0.0.php" hash="03b6871ad13fc19d42563b35584e0b7e"/><file name="mysql4-upgrade-1.0.4-1.0.5.php" hash="2928ef486b808910063db4e43662b408"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="fianet.xml" hash="e352c17d63356526c1b7e0ac2fa04368"/></dir><dir name="template"><dir name="fianet"><dir name="common"><file name="categoriestree.phtml" hash="bbc859cd6892df6a2decc5a90feae29f"/><file name="categorytreeformcontenair.phtml" hash="64a9b0cc0b152b3051aa9692526461d0"/><file name="catproduct.phtml" hash="5b938aa6ad128d6de2628650790ad594"/><file name="shipping.phtml" hash="975b5ae5727bcc659a3093e6f6d4dc38"/><file name="storeswitcher.phtml" hash="7e0a98c5165277a2099fe7e37a3f1ebf"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Fianet_Core.xml" hash="57af0f59af80313e9dfb9ff986b5b84d"/></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Fianet_Core.csv" hash="9f46603d121eccc5c78bbee5082ed760"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Fianet_Core</name>
4
+ <version>1.0.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/OSL-3.0">Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>FIA-NET Core</summary>
10
  <description>Base module for Kwixo and Certissim</description>
11
+ <notes>official commit</notes>
12
  <authors><author><name>FIA-NET</name><user>auto-converted</user><email>support-boutique@fia-net.com</email></author></authors>
13
+ <date>2014-09-02</date>
14
+ <time>09:15:55</time>
15
+ <contents><target name="magecommunity"><dir name="Fianet"><dir name="Core"><dir name="Block"><dir name="Adminhtml"><dir name="Category"><dir name="ProductType"><dir name="Edit"><file name="Form.php" hash="bfa7972b7267e48e2567baca22f0d67b"/></dir><file name="Edit.php" hash="9b9f1ba3232dca5599b407c8435805d4"/></dir></dir><dir name="Configuration"><dir name="Edit"><file name="Form.php" hash="7d81811058fbb82bc3c56f8fd5a31381"/></dir><file name="Content.php" hash="0f6aef793da726f03bf45df578bd2c50"/><file name="Tab.php" hash="dfa79cd1d99c9b9fa94a35a2b95efe56"/></dir><dir name="Log"><file name="Grid.php" hash="75799aec293563451d689da5ae6ffae4"/></dir><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="ba998d112a7553129b9762ad405f3232"/></dir></dir><dir name="Store"><file name="Switcher.php" hash="91b3b258f504373114ab3b1d005c98e2"/></dir><dir name="Tree"><file name="Abstract.php" hash="2d76159718299a28758eb0347596c8ae"/><file name="ProductType.php" hash="678fc9a7bd655c39ba37affcc0261635"/><file name="Products.php" hash="0d34db60f0ed92fe2186ac7ff1cdd670"/></dir><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Filter"><file name="Fianet.php" hash="b4b6d8e5be2fc9de789b397fde616afb"/></dir><dir name="Renderer"><file name="Fianet.php" hash="576b31fc002a52d9ca2b5b116b0e6460"/></dir></dir></dir></dir><file name="Configuration.php" hash="90560857924ed740f8f00267b2697d26"/><file name="Fianetadmin.php" hash="01d8a34424613c8e7c9df9c2ffe442e3"/><file name="Fianetadmingrid.php" hash="f1de1557925fe0648e4c173b12a908f4"/><file name="Version.php" hash="90e692f0ea588c5366fc2b609736d1d6"/></dir><dir name="Category"><dir name="Typeproduct"><dir name="Edit"><file name="Form.php" hash="425082d3e615593ac5effc3258fed908"/></dir><file name="Edit.php" hash="aa88fa008ff3277e2c168dd1562bb64f"/></dir></dir><dir name="Configuration"><dir name="Edit"><file name="Form.php" hash="9d3568afc65ad77be20303dfc62b3672"/></dir><file name="Content.php" hash="733bcdc1cf0a9eb6340cd3be5f3c4d86"/><file name="Tab.php" hash="2ef67c0462995509a98f8cdaf7bb5d28"/></dir><dir name="Log"><file name="Grid.php" hash="c362eb02157f4c8812c1f3291eeb9d7c"/></dir><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="29238c3a027c7b7b95b9d909777c133b"/></dir></dir><dir name="Store"><file name="Switcher.php" hash="b5cce138cceb30ccf5fe296acae0adc3"/></dir><dir name="Tree"><file name="Abstract.php" hash="9288ef8c2ae62f07fd8f05f43fa11724"/><file name="TypeProduct.php" hash="9a5df9f86fd789fa01589b29aad7bdfd"/></dir><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Filter"><file name="Fianet.php" hash="439a5c3991a1be1405abf132cc2442fa"/></dir><dir name="Renderer"><file name="Fianet.php" hash="eb8be66940d4c6fd6e12377f297bab17"/></dir></dir></dir></dir><file name="Configuration.php" hash="5aa262712c666ffd0389017131609c64"/><file name="Fianetadmin.php" hash="a6c02d49bbfdac58ee4312bf27606938"/><file name="Fianetadmingrid.php" hash="c103c780e55859ea6e8d62850aa4b30b"/></dir><dir name="Controller"><dir name="Tree"><file name="Abstract.php" hash="e068ab14b4a1bfcf3f0484741fc7e7f3"/><file name="ProductType.php" hash="474aee535a3fbf57b451614aefc621c6"/><file name="TypeProduct.php" hash="60bfefe45ff2b7790038fc5609016569"/></dir></dir><dir name="Helper"><file name="Data.php" hash="6f2e7cf75f5134a7efb382edcd642aef"/></dir><dir name="Model"><dir name="Carrier"><file name="Abstract.php" hash="215fba5ad87768d7b813ce3b00379b69"/></dir><dir name="Catproduct"><file name="Association.php" hash="827c0db0b746b1eb82c5a5d881b3427a"/></dir><dir name="Configuration"><file name="Global.php" hash="a148a9546d8c54fc2755947e6f1a63d8"/><file name="Value.php" hash="d1f4aa4a3d2c45c933019c6dd6cef122"/></dir><dir name="Fianet"><dir name="Order"><dir name="Address"><file name="Base.php" hash="3141bc3e74b4b101583a945fe5bd5e48"/><file name="Billing.php" hash="bc0c6f4288dce9cf0a398ae765839a3f"/><file name="Delivery.php" hash="0d096ed35c9cdf23f2df0a4426fd9276"/><file name="Transport.php" hash="a244fa6fb1044649acbf0cd8da81ac16"/></dir><dir name="Adress"><file name="Base.php" hash="8fa5c353a8f4d7670f529a3eb64bfd74"/><file name="Billing.php" hash="5ffd12c98af47b0da41e193771bebaa2"/><file name="Delivery.php" hash="7a496e8f02a64d4adffdff67fe2f555b"/></dir><dir name="Info"><dir name="Productlist"><file name="Product.php" hash="f7cbeed398584b21c0ff55054a56c4eb"/></dir><file name="Productlist.php" hash="be72e8d6d1c37f937981189a37f142fc"/><file name="Rnp.php" hash="45062ec5ab13f027b05ee1ea118dc59a"/><file name="Sac.php" hash="e651781c60077360ae1e0660ba8cd515"/><file name="Transport.php" hash="675a294c41a0d27bdc133669dccebb04"/></dir><dir name="User"><file name="Base.php" hash="feb1ef3b3e94d201c997e32413239b38"/><file name="Billing.php" hash="acac7ade317dabd6cb799526c49580c6"/><file name="Delivery.php" hash="28ae3c4b7869ab44ffad608813bc6919"/><file name="Siteconso.php" hash="0e6b10981ef5a72f9e1fbad005a50abc"/></dir><file name="Optionpayment.php" hash="22dca56447627f782ba8435feea4d91b"/><file name="Payment.php" hash="6575f9a8cb7a9abf94985931a938bcf0"/><file name="Rnp.php" hash="1682e21fb9cada4a6921f5203fff5c36"/><file name="Wallet.php" hash="2cc14ff6e66e86a5e350f40a43088d39"/></dir><dir name="Paramcallback"><file name="Builder.php" hash="b9abe8221ff84a055ed47e22d0b2bd21"/><file name="Element.php" hash="b590236aab289a7ef1d88ae179e94a64"/></dir><file name="EncodingKey.php" hash="bff1f8d8cc003a43efaaa46a956cc880"/><file name="Hash32bits.php" hash="d01d0b9a48e60bb44bed450b795b2269"/><file name="Hash64bits.php" hash="0af103e5be0634bd848b62618c7f1b70"/><file name="Parser.php" hash="76bfd95e09768f4a75e9b79ab2918ba0"/><file name="Sender.php" hash="fe56c48c24f0ec18161738571370fb33"/></dir><dir name="Mysql4"><dir name="Catproduct"><dir name="Association"><file name="Collection.php" hash="c825acef760719453cd1b836995ec263"/></dir><file name="Association.php" hash="2cb11541a80eac73d7a075a63d379d5b"/></dir><dir name="Configuration"><dir name="Value"><file name="Collection.php" hash="82a4ed6b038e6d67b0b955c31438944a"/></dir><file name="Collection.php" hash="e33baf99c2e249e464fec49a112c743d"/><file name="Global.php" hash="446f0b164b9ed0400ed03de1fe9a0744"/><file name="Value.php" hash="ac14d3b19b34d90f8eb4f30a14e7d3ce"/></dir><dir name="Log"><file name="Collection.php" hash="dd34fec153d860ca314ed1e6fd379a31"/></dir><dir name="Scope"><file name="Abstract.php" hash="0313a76cbf93b8ddbb2476a5c766b310"/></dir><dir name="Shipping"><dir name="Association"><file name="Collection.php" hash="2094bcf403e846906d588150d95a5edb"/></dir><file name="Association.php" hash="63935ab6c25c853813274d16049f4f9e"/></dir><dir name="Store"><dir name="Information"><file name="Collection.php" hash="76b7273da6a07c2686785456a761d4cc"/></dir><file name="Information.php" hash="1bff8561c13276498d2cc3ab2a084298"/></dir><file name="Abstract.php" hash="649f5947c01b5e0d457bd9cd124fd062"/><file name="Configuration.php" hash="64a840a004a98bd533d38d5c0b1f896e"/><file name="Log.php" hash="e449b9f1252ae46e2a9dce13d5164fd8"/><file name="Setup.php" hash="39283d3305794176ebfc86e92f6b676a"/></dir><dir name="Scope"><file name="Abstract.php" hash="931466f21727b259ca3bf69cdf4b25e0"/></dir><dir name="Shipping"><file name="Association.php" hash="2a5b4cccebea6a6a9515453a9fad7194"/></dir><dir name="Source"><file name="Charset.php" hash="0aa8934ed90c113435ebf62d5c0b0f20"/><file name="Crypt.php" hash="b875347ac78910aafba1466706e9c1e9"/><file name="DeliveryTimes.php" hash="a35c852b7c29b84db4910517f35f58ab"/><file name="Mode.php" hash="6c1379dc1b4c0a2cfcf48748fbd40e8d"/><file name="ModeAction.php" hash="517bd08329e816acd3f755f67b9a60c1"/><file name="PaymentType.php" hash="296d0fa8a0cdda89f12481525708d59a"/><file name="ProductType.php" hash="8caefa44e4fdc2fbc186d7a18a422065"/><file name="ShippingType.php" hash="c6b01d3ed628f15b105493a5f95e5aec"/><file name="TypeProduct.php" hash="edacd76cca2b5397391703dc9d9d31af"/></dir><dir name="Store"><file name="Information.php" hash="1d69cc7b3c2387f3ace31b4b9b028768"/></dir><file name="Configuration.php" hash="30292ac412a27d0a2c69acf79008422e"/><file name="Functions.php" hash="84070c28c538fcbc32729464c8f92e1a"/><file name="Log.php" hash="d852c8e87c92167aa8b4d017142a6d34"/><file name="MageConfiguration.php" hash="6cbb40552ae1813de4c34ab854e9b426"/><file name="Observer.php" hash="b023283edef5108b3eca3651443d96ad"/><file name="Product.php" hash="9a41b51053d704b0721708d26e87fdb9"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Category"><file name="ProductTypeController.php" hash="7eab51c04f87a8afd30867750b8ef7be"/></dir><file name="ConfigurationController.php" hash="039ed92f0d6559fc78b138e1353ebb9c"/><file name="LogController.php" hash="3798f93a676ded7083df3e80544c0916"/><file name="OrderController.php" hash="360e011a0ba9f6c9a08565980ad1613e"/><file name="ShippingController.php" hash="d32feb710763cae45521436f8b075300"/><file name="VersionsController.php" hash="2f693a64cd7b4bd7a403fc1d7a5044e6"/></dir><dir name="Category"><file name="TypeproductController.php" hash="e599af67b8030998882724fdad83c4d4"/></dir><file name="ConfigurationController.php" hash="91f8d84d8d1d56427213150118b3fe88"/><file name="InsertController.php" hash="6b8937f3e2d6c43372f46644a8425215"/><file name="LogController.php" hash="dcb0da5c2961e1ad51b0d540fad8d63e"/><file name="ShippingController.php" hash="1911834599b97b3e55e73aaa55c25b93"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4e63b96fd7e8aab37b745dc0e5429f31"/><file name="config.xml" hash="49cefa6007b2e59e9a5e87704222aa65"/><file name="system.xml" hash="3f358ef4d850c62062f973667dd7c3e5"/></dir><dir name="sql"><dir name="fianet_setup"><file name="mysql4-install-0.2.1.php" hash="6bccbd4260e72d1dbaee6ea479ced3b5"/><file name="mysql4-upgrade-0.2.1-0.2.2.php" hash="b746548b4223869198d90c9c6986209d"/><file name="mysql4-upgrade-0.2.2-0.5.7.php" hash="c6b8ed6bed74dbfacf2adfb33a2b449b"/><file name="mysql4-upgrade-0.9.0-1.0.0.php" hash="3d638c9de6f818393e5054b8816ffd3e"/><file name="mysql4-upgrade-1.0.4-1.0.5.php" hash="181ebf28441a67d7c66691c702539095"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="fianet.xml" hash="c6be70cd823bbb433302041ad3b9dbf4"/></dir><dir name="template"><dir name="fianet"><dir name="common"><file name="categoriestree.phtml" hash="0388fd495741734a16dc55ec94e58ce4"/><file name="categorytreeformcontenair.phtml" hash="81371c97c037d4676abd62f9bb001c63"/><file name="catproduct.phtml" hash="aff3df179f4e9957dbb727cb14173ab2"/><file name="shipping.phtml" hash="3b6acea643b8693231030e1f1492722b"/><file name="storeswitcher.phtml" hash="0609e577f897d4ca7f5c235496ed55d6"/><file name="versions.phtml" hash="f7945e91035a54d16c59c4845ebe9ed7"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Fianet_Core.xml" hash="092abb20224d04290a3697d766c89dc2"/></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Fianet_Core.csv" hash="a333e726c49a82bdd024b908a53890b1"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="fianet"><file name="manuel_PDF.png" hash="14402e521e668f247f939ac268317365"/><file name="redirectToMagentoConnect.bmp" hash="c76a2b274e45f5bfc99282392493cdf6"/><file name="power_off.png" hash="fc2b44341ca3f3677bdcd1ce5e6142ab"/><file name="power_on.png" hash="4d26afe3eebd475d6780340e1863d6b3"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="fianet"><file name="calcMD5.js" hash="c119ea8fe21c770e5951f032a268b59a"/><file name="log.js" hash="d532adb878c06aa63942f2c7252088fc"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
skin/adminhtml/default/default/images/fianet/manuel_PDF.png ADDED
Binary file
skin/adminhtml/default/default/images/fianet/power_off.png ADDED
Binary file
skin/adminhtml/default/default/images/fianet/power_on.png ADDED
Binary file
skin/adminhtml/default/default/images/fianet/redirectToMagentoConnect.bmp ADDED
Binary file