DecryptWeb Blog

Opensource Web Solutions

Magento

Add breadcrumbs in Magento2

I am going to explain here a way to add a breadcrumb in the default Magento Contact Us Page as an example 1) Create a layout file I have a theme module Decryptweb_Project, so creating a layout file inside it app/design/frontend/Decryptweb/Project/Magento_Contact/layout/contact_index_index.xml 2) Reference the existing breadcrumbs block

CSV import in Magento 2

Magento 2 has a CSV processor, that is being used to import and export product and customer related data. In my earlier post I explained a way to generate a CSV. I am explaining here a way to import a CSV to update inventory of the existing products. Here as seen simply you can call […]

Custom CLI commands Magento 2

Magento 2 enables your component to add commands to the default CLI Magento has one command-line interface that performs both installation and configuration tasks: /bin/magento. I am explaining here a way to add custom commands for your module. 1) Create a Command class, I have created a custom class at app/code/DW/Interface/Console/OrderCron.php. 2) Declare your Command […]

Scroll to top