Jump to content


alex288

Member Since 19 Sep 2019
Offline Last Active Dec 24 2020 10:00 AM
*****

Topics I've Started

Best Magento 2 Hosting Providers - Review All Your Options

24 December 2020 - 10:01 AM

magento-2-best-web-hosting-services.jpg

 

There are a lot of web hosting providers  but we have scrutinize the industry and provides you a brief list of the top Magento 2 web hosting service providers:

 

  • Nexcess 
  • Cloudways 
  • LuroConnect 
  • FastComet 
  • MageMojo 

How to Enable Template Path Hints in Magento 2?

20 November 2020 - 06:02 AM

magento-2-enable-template-path-hints.jpg

 

 

Template path hints in Magento 2 can be enabled for either the storefront or the Admin. Most common methods to enable template path hints in Magento 2 are:

 

1. Enable Via Admin Panel

 

  • Enable Template Path Hints for Storefront
  • Enable Template Path Hints for Admin

 

2. Enable Via Command Line

 

  • Enable Template Path Hints via CLI
  • Disable Template Path Hints via CLI
  • Clear cache via CLI

 

For detailed information, check this article:

 

How to Enable Template Path Hints in Magento 2


How to Create an Attribute Set Programmatically in Magento 2

19 October 2020 - 11:58 AM

magento-2-add-attribute-set-programmatic
 
 
A script is used to create an attribute set programmatically in Magento 2.
 
Note: You need to create an installer file InstallData.php in Company\Mymodule\Setup and add your code in the file.
 
 
For more details, visit the following article:
 
 

How to Add Customer Attribute Programmatically in Magento 2?

16 October 2020 - 10:08 AM

add-customer-attribute-programmatically-

 

To add customer attribute programmatically in Magento 2, there are 3 basic steps which are:

 

1: create the setup file InstallData.php

 

2: create the source file

 

3: upgrade

 

Visit the following article to check the detailed procedure of adding customer attribute programmatically in Magento 2.

 

How to Add Customer Attribute Programmatically in Magento 2


How to Add Product Attribute Programmatically in Magento 2

14 October 2020 - 10:38 AM

magento-2-add-product-attribute-programm

 

 

Basic steps to programmatically add product attribute in Magento 2

 

1: Create the Setup File InstallData.php

 

File Path: app/code/Company/Mymodule/Setup/InstallData.php

 

 

2: Describe the install() Method

 

<?php

public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)

{

}

 

 

3: Develop Product Attribute

 

4: Upgrade

 

 

Get more details about these steps by clicking on the link below:

 

How to Add Product Attribute Programmatically in Magento 2