diff --git a/Block/Adminhtml/System/Config/Fieldset/Hint.php b/Block/Adminhtml/System/Config/Fieldset/Hint.php new file mode 100644 index 0000000..ecdee62 --- /dev/null +++ b/Block/Adminhtml/System/Config/Fieldset/Hint.php @@ -0,0 +1,64 @@ +_template = 'KiwiCommerce_InventoryLog::system/config/fieldset/hint.phtml'; + parent::__construct($context, $data); + $this->moduleList = $moduleList; + } + + /** + * @param \Magento\Framework\Data\Form\Element\AbstractElement $element + * @return string + */ + public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element) + { + $_element = $element; + return $this->toHtml(); + } + + /** + * @return mixed + */ + public function getModuleVersion() + { + return $this->moduleList->getOne('KiwiCommerce_InventoryLog')['setup_version']; + } +} diff --git a/README.md b/README.md index 3a3e98f..8496103 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## Magento 2 - Inventory Log by Kiwi Commerce +## Magento 2 - Inventory Log by KiwiCommerce ### Overview - Keep the log of product inventory for every single transaction. Ex. Product import, Order placed, Insert/Update operation through queries and lot more. @@ -22,7 +22,7 @@ 2. Command Line Installation - Backup your web directory and database. - - Download Inventory Log installation package from here. + - Download Inventory Log installation package from here. - Upload contents of the Inventory Log installation package to your Magento root directory. - Navigate to your Magento root folder
`cd path_to_the_magento_root_directory`
@@ -36,7 +36,7 @@ `php bin/magento setup:static-content:deploy`
`php bin/magento cache:flush` -Find More details on Kiwi Commerce +Find More details on KiwiCommerce ## Features @@ -72,4 +72,5 @@ We love answering questions or doubts simply ask us in issue section. We're look - Follow us @KiwiCommerce - Email Us - - Have a look at our documentation + - Have a look at our documentation + diff --git a/composer.json b/composer.json index 6ba2dcb..79753f9 100755 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "kiwicommerce/module-inventory-log", "description": "Magento 2 - Inventory Log", "type": "magento2-module", - "version": "1.0.0", + "version": "1.0.1", "license": [ "OSL-3.0" ], diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 4009c11..ca617fd 100755 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -17,12 +17,15 @@ xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> - +
kiwicommerce KiwiCommerce_InventoryLog::config + + KiwiCommerce\InventoryLog\Block\Adminhtml\System\Config\Fieldset\Hint + diff --git a/etc/module.xml b/etc/module.xml index 2b9a144..f0cec46 100755 --- a/etc/module.xml +++ b/etc/module.xml @@ -14,7 +14,7 @@ */ --> - + diff --git a/view/adminhtml/templates/system/config/fieldset/hint.phtml b/view/adminhtml/templates/system/config/fieldset/hint.phtml new file mode 100644 index 0000000..5e2a2be --- /dev/null +++ b/view/adminhtml/templates/system/config/fieldset/hint.phtml @@ -0,0 +1,24 @@ + + +
+

+

+
+

getModuleVersion() ?> KiwiCommerce

+

+
+

+
diff --git a/view/adminhtml/web/css/source/_module.less b/view/adminhtml/web/css/source/_module.less new file mode 100644 index 0000000..582db34 --- /dev/null +++ b/view/adminhtml/web/css/source/_module.less @@ -0,0 +1,14 @@ +/** +* KiwiCommerce +* +* Do not edit or add to this file if you wish to upgrade to newer versions in the future. +* If you wish to customise this module for your needs. +* Please contact us https://kiwicommerce.co.uk/contacts. +* +* @category KiwiCommerce +* @package KiwiCommerce_InventoryLog +* @copyright Copyright (C) 2018 Kiwi Commerce Ltd (https://kiwicommerce.co.uk/) +* @license https://kiwicommerce.co.uk/magento2-extension-license/ +*/ + +@import 'module/_menu.less'; diff --git a/view/adminhtml/web/css/source/module/_menu.less b/view/adminhtml/web/css/source/module/_menu.less new file mode 100644 index 0000000..764aece --- /dev/null +++ b/view/adminhtml/web/css/source/module/_menu.less @@ -0,0 +1,19 @@ +/** +* KiwiCommerce +* +* Do not edit or add to this file if you wish to upgrade to newer versions in the future. +* If you wish to customise this module for your needs. +* Please contact us https://kiwicommerce.co.uk/contacts. +* +* @category KiwiCommerce +* @package KiwiCommerce_InventoryLog +* @copyright Copyright (C) 2018 Kiwi Commerce Ltd (https://kiwicommerce.co.uk/) +* @license https://kiwicommerce.co.uk/magento2-extension-license/ +*/ + +.kiwiCommerce-logo { + background-image: url('KiwiCommerce_InventoryLog::images/kiwicommerce-icon.svg'); + background-size: auto 20px; + background-repeat: no-repeat; + padding-left: 25px; +} diff --git a/view/adminhtml/web/images/kiwicommerce-icon.svg b/view/adminhtml/web/images/kiwicommerce-icon.svg new file mode 100644 index 0000000..f15a431 --- /dev/null +++ b/view/adminhtml/web/images/kiwicommerce-icon.svg @@ -0,0 +1,135 @@ + + + + Group 5 + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/view/adminhtml/web/images/kiwicommerce-logo.svg b/view/adminhtml/web/images/kiwicommerce-logo.svg new file mode 100644 index 0000000..24abe6e --- /dev/null +++ b/view/adminhtml/web/images/kiwicommerce-logo.svg @@ -0,0 +1,166 @@ + + + + KiwiCommerce Logo + KiwiCommerce Logo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file