Magento
Ubuntu : send email from local server
Install SSMTP packet: open the configuration file: Add new content as below (don’t forget change your_email and your_email_password, your_email_username): At last, do a test:
Magento
Magento: All Events Listing
Here is the list of magento events: File Name Event Mage/Admin/Model/Session.php admin_session_user_login_success Mage/Admin/Model/Session.php admin_session_user_login_failed Mage/Admin/Model/User.php admin_user_authenticate_before Mage/Admin/Model/User.php admin_user_authenticate_after Mage/Adminhtml/Block/Api/User.php api_user_html_before Mage/Adminhtml/Block/Catalog/Category/Tab/Attributes.php adminhtml_catalog_category_edit_prepare_form Mage/Adminhtml/Block/Catalog/Category/Tabs.php adminhtml_catalog_category_tabs Mage/Adminhtml/Block/Catalog/Category/Tree.php adminhtml_catalog_category_tree_is_moveable Mage/Adminhtml/Block/Catalog/Category/Tree.php adminhtml_catalog_category_tree_can_add_root_category Mage/Adminhtml/Block/Catalog/Category/Tree.php adminhtml_catalog_category_tree_can_add_sub_category Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Main.php adminhtml_product_attribute_types Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Main.php adminhtml_catalog_product_attribute_edit_prepare_form Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Attributes.php adminhtml_catalog_product_edit_prepare_form Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Attributes.php adminhtml_catalog_product_edit_element_types Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main.php adminhtml_catalog_product_attribute_set_main_html_before Read more…
Magento2
Magento2 : Product Collection
Get Award winning product where award winning is a custom attribute. Full page code of Data helper file
Magento2
Magento 2 : Study Notes
Cacheable and uncacheable pages To create an uncacheable page, mark any block on that page as uncacheable in the layout using cacheable=”false”. Example: Note During theme development, when you change any files stored here, you need to clear pub/static (preserving Read more…
Magento
Magento: Custom Module Set Meta Data Using Config Data
Using Helper Function: 1. Create functions in your module helper file app/code/local/Namespace/Module/Helper/Data.php 2. Get Data from Config in your layout file app/design/frontend/default/default/layout/namespace_module.xml Or You can also set meta information using block file: app/code/local/Namespace/Module/Block/BlockFile.php In your block _prepareLayout fubction add the Read more…
Magento
Magento: Admin Module Field Type
Text Type Field Time Type Field TextArea Type Submit Button DropDown Here is another version of the drop down Radio Butto Password Field Note Multiselect Multiline Link Label Image Upload File Upload Date Checkbox
Linux
Ubuntu: How To Create Virtual Host
1. create a directory using the following command. sudo mkdir -p /var/www/example.com/public_html 2. Grant Permission to your newly directory sudo chown -R $USER:$USER /var/www/example.com/public_html sudo chmod -R 755 /var/www/example.com/public_html 3. Create a new config file using default config file sudo Read more…
Linux
Ubuntu: Share folder using user account details
1. Install samba: sudo apt-get install samba 2. Create new account for share: sudo smbpasswd -a desired_user_name 3.it will ask for password give your desired password. 4. Share the folder you want to share.