Daily Magento Tips Profile
Daily Magento Tips

@DailyMagento

Followers
199
Following
5
Media
57
Statuses
102

It's easy to miss gems in devdocs. DMT is here for you fellow Devs! #Magento #Magento2 #Ecommerce #PHP #AdobeCommerce Humble opinions and tips are shared here.

Worldwide
Joined March 2021
Don't wanna be here? Send us removal request.
@DailyMagento
Daily Magento Tips
3 years
Add aclResource property to your XML like below.
0
0
2
@DailyMagento
Daily Magento Tips
3 years
Did you know it's possible to show additional content to Admin users by using ACL resource ? 👇 #Magento #AdobeCommerce
1
1
5
@DailyMagento
Daily Magento Tips
3 years
0
0
0
@DailyMagento
Daily Magento Tips
3 years
3⃣ Create a modifier Pool for your DataProvider To use your modifier, add a dependency on \Magento\Ui\DataProvider\Modifier\PoolInterface  to your UI component data provider.
1
0
0
@DailyMagento
Daily Magento Tips
3 years
2⃣Declare it in the adminhtml/di.xml Declare your modifier in your module Di configuration <Your_Module_dir>/etc/adminhtml/di.xml. This declaration looks like the following:
1
0
1
@DailyMagento
Daily Magento Tips
3 years
1⃣ Add a custom PHP modifier In your custom module, add a class that implements Magento\Ui\DataProvider\Modifier\ModifierInterface with the following methods: - modifyData(): for modifying UI component's data - modifyMeta(): for modifying UI component's metada
1
0
1
@DailyMagento
Daily Magento Tips
3 years
What is Modifier Class ? 🧵 Modifier class used when static declaration in XML configuration files are not suitable or sufficient for tasks. It’s done in three easy steps 👇
1
0
1
@DailyMagento
Daily Magento Tips
4 years
You can see quality patches here https://t.co/pclaw9XNa7
0
0
1
@DailyMagento
Daily Magento Tips
4 years
Here is how to apply Quality Patches 👐 #Magento #AdobeCommerce
1
0
4
@DailyMagento
Daily Magento Tips
4 years
Inheritance in controllers should be avoided in favor of composition #Magento #AdobeCommerce
1
1
10
@DailyMagento
Daily Magento Tips
4 years
Magento now. recommends OpenSearch instead Elasticsearch 👇 ". Adobe Commerce and Magento Open Source versions 2.4.4, 2.4.3-p2, and 2.3.7-p3 support the OpenSearch service" https://t.co/eOLTmQFfoP
0
0
2
@DailyMagento
Daily Magento Tips
4 years
👀 Products query sort attribute devdocs
0
0
0
@DailyMagento
Daily Magento Tips
4 years
Product sorting logic changes depends on whether search attribute is used on #Magento #GraphQL requests. Check following example 👇
1
1
4
@DailyMagento
Daily Magento Tips
4 years
i18n 🔄 Magento 2 has a command to collect translations phrases to a csv file so you don't miss any translations. Let's see how i18n:collect-phrases command is used 👇
0
0
2
@DailyMagento
Daily Magento Tips
4 years
GraphQL allows you to request __typename, a meta field, at any point in a query to get the name of the object type at that point.
0
1
0
@DailyMagento
Daily Magento Tips
4 years
This #GraphQL request returns specific values in case product type is ConfigurableProduct.
1
0
0
@DailyMagento
Daily Magento Tips
4 years
#Magento uses #GraphQL inline fragments to use specific values for particular types. `... on {TypeName}` syntax is used for inline fragments. You can see the example below.
1
0
2
@DailyMagento
Daily Magento Tips
4 years
📨MessageManager lets you do use your own template on your messages. Follow the steps : - addComplexSuccessMessage - use MessageConfigurationsPool in di.xml - add your phtml template file
0
1
5
@DailyMagento
Daily Magento Tips
4 years
💿When a module removed/installed via composer it's automatically removed from /added to config.php after setup upgrade command. 'bin/magento module:enable' is not needed. #DailyMagentoTips #Magento #AdobeCommerce
1
1
2
@DailyMagento
Daily Magento Tips
5 years
Use these methods where you to retrieve config 🟠 isSetFlag is to retrieve boolean config values 🟠 getValue to retrieve any value (returns mixed)
0
1
0