-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1e320a
commit 966759a
Showing
10 changed files
with
433 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php | ||
/** | ||
* 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/ | ||
*/ | ||
|
||
namespace KiwiCommerce\InventoryLog\Block\Adminhtml\System\Config\Fieldset; | ||
|
||
use \Magento\Backend\Block\Template; | ||
use \Magento\Framework\Data\Form\Element\Renderer\RendererInterface; | ||
|
||
/** | ||
* Class Hint | ||
* @package KiwiCommerce\InventoryLog\Block\Adminhtml\System\Config\Fieldset | ||
*/ | ||
class Hint extends Template implements RendererInterface | ||
{ | ||
/** | ||
* @var \Magento\Framework\Module\ModuleList | ||
*/ | ||
private $moduleList; | ||
|
||
/** | ||
* Class constructor. | ||
* @param Template\Context $context | ||
* @param \Magento\Framework\Module\ModuleList $moduleList | ||
* @param array $data | ||
*/ | ||
public function __construct( | ||
Template\Context $context, | ||
\Magento\Framework\Module\ModuleList $moduleList, | ||
array $data = [] | ||
) { | ||
$this->_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']; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,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 <a href="https://github.com/kiwicommerce/magento2-inventory-log/releases/download/v1.0.0/kiwicommerce-inventory-log-v100.zip">here</a>. | ||
- Download Inventory Log installation package from <a href="https://github.com/kiwicommerce/magento2-inventory-log/releases/download/v1.0.1/kiwicommerce-inventory-log-v101.zip">here</a>. | ||
- Upload contents of the Inventory Log installation package to your Magento root directory. | ||
- Navigate to your Magento root folder<br /> | ||
`cd path_to_the_magento_root_directory`<br /> | ||
|
@@ -36,7 +36,7 @@ | |
`php bin/magento setup:static-content:deploy`<br /> | ||
`php bin/magento cache:flush` | ||
|
||
Find More details on <a href="https://kiwicommerce.co.uk/extensions/magento2-inventory-log/" target="_blank">Kiwi Commerce</a> | ||
Find More details on <a href="https://kiwicommerce.co.uk/extensions/magento2-inventory-log/" target="_blank">KiwiCommerce</a> | ||
|
||
## Features | ||
|
||
|
@@ -72,4 +72,5 @@ We love answering questions or doubts simply ask us in issue section. We're look | |
|
||
- Follow us <a href="https://twitter.com/KiwiCommerce">@KiwiCommerce</a> | ||
- <a href="mailto:[email protected]">Email Us</a> | ||
- Have a look at our <a href="https://kiwicommerce.co.uk/docs/inventory_log/">documentation</a> | ||
- Have a look at our <a href="https://kiwicommerce.co.uk/docs/inventory-log/">documentation</a> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
view/adminhtml/templates/system/config/fieldset/hint.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* 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/ | ||
*/ | ||
?> | ||
|
||
<div style="background:#EAF0EE;border:1px solid #CCCCCC;margin-bottom:10px;padding:11px 0 0 10px;"> | ||
<h4> | ||
<img style="padding-left: 15px;" src="<?php echo $block->getViewFileUrl('KiwiCommerce_InventoryLog::images/kiwicommerce-logo.svg') ?>"/><br><br> | ||
<div style="padding-left: 15px;"> | ||
<p> <strong style="color:#EA7601;"><?php echo __('InventoryLog (ver.') ?><?php echo $this->getModuleVersion() ?><?php echo __(') - Developed by') ?></strong> <a style="color:#EA7601;" target="_blank" href="https://kiwicommerce.co.uk/"><strong>KiwiCommerce</strong></a></p> | ||
<p><?php echo __('For technical support ') ?> <a style="color:#EA7601;" href="https://kiwicommerce.co.uk/extension-support" target="_blank"><?php echo __('Contact Us') ?></a> <?php echo __('or email us at') ?> <a style="color:#EA7601;" href="mailto:[email protected]" target="_blank"><?php echo __('[email protected]') ?></a></p> | ||
</div> | ||
</h4> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
Oops, something went wrong.