please read first post make configure opitons for theme. Find path config We’ll make default system config value for our module. Please see file app/code/<vendor_name>/<module_name>/etc/adminhtml/system.xml The path config is section/grounp/value Make default system config Now, we’ll create file app/code/<vendor_name>/<module_name>/etc/config.xml should look like: This code will make default system config value when you install module.
Category: Magento 2 Tutorials
Magento 2 is the latest incarnation of the leading enterprise-class eCommerce platform, utilised by over 200,000 online retailers. In fact, it’s estimated that 1 in 4 businesses are using the Magento software.
If you’re familiar with previous versions of Magento, you’ll already be well aware of its ease of use and other beneficial features, but M2 takes that to a whole new level, creating the most user-friendly and scalable eCommerce environment yet.
In order to build ecommerce website with Magento 2, and still professionally, you should have tons of knowledge of Magento. You also need understanding about hosting, domain. It seem you have to tons of knowledge, Don’t worry about that. We will make a lot Magento 2 tutorials, you can more easy to build own ecommerce website with Magento 2.
Like Previous Mangeto version , You have to build Magento theme and Magento extension for magento 2. In this Mangento 2 tutorials, We have a lot of guides about how to build Magento extension and theme for Magento , We will also show common Magento bugs, issues and how to fix it . If you have an questions , you can comment under post. We will check and reply to you.
Magento 2 add custom category attributes
Please read first post Magento 2.3 create simple module to make configure opitons for theme. Create the attributes We’ll use our module to make script udpate category attributes. Suppose current our module version is 1.0.0, create file app/code/<vendor_name>/<module_name>/Setup/UpgradeSchema.php should look like: Show its in backend create file app/code/<vendor_name>/<module_name>/view/adminhtml/ui_component/category_form.xml should look like: Then update version for … Continue reading “Magento 2 add custom category attributes”
Magento 2.3 get product colection
please read first post Magento 2.3 create simple module to make configure opitons for theme. Make block get product colection Create file app/code/<vendor_name>/<module_name>/Block/Products.php should look like: We’ll get BestSeller products on home page. So go to backend then paste below code to content home page. After create file <theme_dir>/Magento_Theme/templates/product/bestseller.phtml should look like: We was update … Continue reading “Magento 2.3 get product colection”
Magento 2.3 make custom page layout
Magento gave us 5 frontend form page layout: Empty, 1column, 2columns-left, 2columns-right, 3column. Simplest is Empty. It has not header, footer, left sidebar, right sidebar but it has all js,css,cookies,session… You can find it in: vendor\magento\module-theme\view\base\page_layout The layout 1column, 2columns-left, 2columns-right, 3column was extended from Empty layout. You can find it in: vendor\magento\module-theme\view\frontend\page_layout If the … Continue reading “Magento 2.3 make custom page layout”
Magento 2.3 how to get store config value
please read first post Magento 2.3 create simple module to make configure opitons for theme. we’ll read the values directly from app/code/Magebay/Themes/etc/adminhtml/system.xml The path config is section/grounp/value Get value yes/no in xml file: For example: create file <theme_dir>/Magebay_Themes/layout/default.xml then insert the following code. Then create file <theme_dir>/Magebay_Themes/templates/html/mainBaner.phtml then insert the following code. <h1>Create banner here</h1> … Continue reading “Magento 2.3 how to get store config value”
Magento 2.3 create simple module to make configure opitons for theme
Please read first post Magento 2.3 creat New Theme. We’ll build module file structure looks as follows: app/code/Magebay/ ├── Themes/ │ ├── etc/ │ │ ├── adminhtml/ │ │ │ ├── menu.xml │ │ │ ├── routes.xml │ │ │ ├── system.xml │ │ ├── module.xml │ ├── composer.json │ ├── registration.php <vendor_name> is module … Continue reading “Magento 2.3 create simple module to make configure opitons for theme”