sudo apt-get install autokey-gtk Run autokey by typing autokey in a terminal. You can find a beginner’s guide to autokey here. You can create a new folder for your scripts (by clicking on the New button). I recommend ~/bin/autokey as...
Month: June 2016
Create a custom layered navigation filter for filtering sale products in Magento
http://www.techytalk.info/create-custom-layered-navigation-filter-magento/comment-page-1/
The Value of Project Management
http://www.tensteppm.com/open/A1ValueofPM.html A1 The Value of Project Management (A1.P1) There are some companies that have built reputations for being able to consistently manage projects effectively. However, the vast majority of organizations have a more spotty reputation. Does your organization have any...
magento 2 Grid and form tutrial
https://www.ashsmith.io/magento2/module-from-scratch-part-5-adminhtml/
Magento 2 model and collection
Model/Rewards.php <?php namespace MagePal\TestDiscount\Model; use Magento\Framework\Model\AbstractModel; class Rewards extends AbstractModel { protected function _construct() { $this->_init('MagePal\TestDiscount\Model\Resource\Rewards'); } } Model/resource/Rewards.php <?php namespace MagePal\TestDiscount\Model\Resource; use \Magento\Framework\Model\ResourceModel\Db\AbstractDb; class Rewards extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb { protected function _construct() { $this->_init('mjweb_customer_rewards','id'); } } Model/Rewards/Collection.php <?php namespace...
Install table setup in Magento 2
$table = $setup->getConnection() ->newTable($setup->getTable('mjweb_customer_rewards')) ->addColumn('id', \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER, null, array( 'identity' => true, 'unsigned' => true, 'nullable' => false, 'primary' => true, ), 'Id') ->addColumn('customer_id', \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER, null, array( 'nullable' => false, 'unsigned' => true, 'nullable' => false, ), 'Customer ID') ->addColumn('rewards_point', \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,...
Copy custom data from quote to order and order item once order is placed in magento2
http://magento.stackexchange.com/questions/77016/copy-custom-data-from-quote-to-order-and-order-item-once-order-is-placed-in-mage
Magento 1.x Events Reference
https://magento2.atlassian.net/wiki/display/m1wiki/Magento+1.x+Events+Reference The following is a list of many Magento Community Edition events with module and parameters. Note that some events are dispatched with dynamically-calculated names, so this list is and always will be “incomplete”. At the bottom there is example of using...
Declaring Observers in Magento 2.0 (Updated)
Registration and creation of observers in Magento 2.x is a bit different from the version 1.x. a separate events.xml file is used for registering observers; the scope of the observer is defined not by the xml node, but by the...
Magento 2 upgradeschema script
<?php namespace MagePal\TestDiscount\Setup; use Magento\Framework\Setup\UpgradeSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; class UpgradeSchema implements UpgradeSchemaInterface { public function upgrade(SchemaSetupInterface $setup,ModuleContextInterface $context){ $setup->startSetup(); if (version_compare($context->getVersion(), '1.0.2') < 0||version_compare($context->getVersion(), '1.0.3') < 0||version_compare($context->getVersion(), '1.0.4') < 0 ||version_compare($context->getVersion(), '1.0.5') < 0 ) { // Get module...