How To Install the Anaconda Python Distribution on Ubuntu 18.04

Introduction Designed for data science and machine learning workflows, Anaconda is an open-source package manager, environment manager, and distribution of the Python and R programming languages. It is commonly used for large-scale data processing, scientific computing, and predictive analytics. Offering a collection of over 1,000 data science packages, Anaconda is available in both free and…

Magento development: Add new Total row to Magento Shopping cart / Checkout

If you need to add an additional fee to your total price, you need to add your own total item to the collection of totals. To do this you need to add the following code to your main config.xml file: <global> <sales> <quote> <totals> <turnkeye_insurance> <class>turnkeye_insurance/total_screen_quote</class> <after>subtotal</after> <before>tax</before> </turnkeye_insurance> </totals> </quote> <order_invoice> <totals> <turnkeye_insurance> <class>turnkeye_insurance/total_screen_invoice</class>…

Magento Events Cheat Sheet (1.9)

File Line Event Mage/Admin/Model/Session.php 132 admin_session_user_login_success Mage/Admin/Model/Session.php 141 admin_session_user_login_failed Mage/Admin/Model/User.php 339 admin_user_authenticate_before Mage/Admin/Model/User.php 356 admin_user_authenticate_after Mage/Adminhtml/Block/Api/User.php 52 api_user_html_before Mage/Adminhtml/Block/Catalog/Category/Tab/Attributes.php 160 adminhtml_catalog_category_edit_prepare_form Mage/Adminhtml/Block/Catalog/Category/Tabs.php 157 adminhtml_catalog_category_tabs Mage/Adminhtml/Block/Catalog/Category/Tree.php 291 adminhtml_catalog_category_tree_is_moveable Mage/Adminhtml/Block/Catalog/Category/Tree.php 328 adminhtml_catalog_category_tree_can_add_root_category Mage/Adminhtml/Block/Catalog/Category/Tree.php 348 adminhtml_catalog_category_tree_can_add_sub_category Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Main.php 71 adminhtml_product_attribute_types Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Main.php 242 adminhtml_catalog_product_attribute_edit_prepare_form Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Attributes.php 64 adminhtml_catalog_product_edit_prepare_form Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Attributes.php 80 adminhtml_catalog_product_edit_element_types Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main.php 406 adminhtml_catalog_product_attribute_set_main_html_before Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main.php 68 adminhtml_catalog_product_attribute_set_toolbar_main_html_before Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Attributes.php 50 adminhtml_catalog_product_form_prepare_excluded_field_list Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes/Create.php…

Magento: Add new column to Product Grid in Admin

This article shows how you can add new columns to product grid (Catalog -> Manage Products) in Magento 1.x admin. For this, you need to rewrite/override the Adminhtml’s catalog_product_grid block class. Here is the block override code to be written in your module’s config.xml file: YourCompany/YourModule/etc/config.xml YourCompany_YourModule_Block YourCompany_YourModule_Block_Adminhtml_Catalog_Product_Grid Now, you need to create a new…

Magento 2: Enable/Disable/Clear Cache (Clean/Flush) via Command Lin

This article shows how you can clear Magento 2 cache using command line. In my previous article, I have listed out all the command line tools that can be used in Magento 2. This article specifically shows about commands to clear Magento 2 cache. Check Cache Status First of all, let’s see what is the…

Magento 2: Reindex via Command Line

This article shows how you can reindex Magento 2 index types using the command line. In my previous article, I have listed out all the command line tools that can be used in Magento 2. This article specifically shows about commands to reindex Magento 2 index types. Get Index Types Info First of all, let’s…

Magento 2: Maintenance mode via Command Line

This article shows how you can enable or disable Maintenance mode in Magento 2 using the command line. In my previous article, I have listed out all the command line tools that can be used in Magento 2. This article specifically shows about commands to enable/disable maintenance mode in Magento 2. Check Maintenance Mode Status…

Upgrade Magento 1.x to Latest Version via both Browser & Command Line

This article shows how you can upgrade/update your Magento 1.x via both Browser GUI and Command Line. Before upgrading, we first have to create backup of our Magento site’s files and database so that we can restore the backed up files and database if by any problem the upgrade process fails. Upgrade Magento 1.x via…

Magento 2: Enable/Disable Module via Command Line

This article shows how you can enable or disable Magento 2 modules using the command line. In my previous article, I have listed out all the command line tools that can be used in Magento 2. This article specifically shows about commands to enable/disable Magento 2 modules. Get the List of All Modules First of…