Magento2
Magento 2 :: Call phtml page in cms page
The template file would be : app/design/frontend/Namespace/theme/Magento_Theme/templates/your_folder_name/file_name.phtml
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 Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main.php adminhtml_catalog_product_attribute_set_toolbar_main_html_before Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Attributes.php adminhtml_catalog_product_form_prepare_excluded_field_list Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes/Create.php adminhtml_catalog_product_edit_tab_attributes_create_html_before Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes.php adminhtml_catalog_product_edit_prepare_form Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes.php adminhtml_catalog_product_edit_element_types 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 the `.htaccess` file in place) and var/view_preprocessed directories, and then 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 following code: