Skip to content

magento man

set specific cron job time from admin

i want to create configuration from admin for this cron tab how we can do that? <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Cron:etc/crontab.xsd”> <group id=”order_product_report”> <job name=”order_product_report” instance=”abcabcCronOrderReport” method=”execute”> <schedule>* * * * *</schedule> </job> </group> </config>

Configure Debug Logging Type

As Magento throws info into system.log and debug.log I can see 3 different types Is it possible to disable main.INFO and main.DEBUG while keeping main.CRITICAL to avoid large file size for logging files.

how to enable/disable custom attribute showing on product page

I created an attribute switch, but how do I get it to work? Also I created an attribute – which I want enable/disable <?php namespace ivanProductAtrrSetupPatchData; use MagentoCatalogModelProduct; use MagentoCatalogSetupCategorySetup; use MagentoEavModelEntityAttributeScopedAttributeInterface; use MagentoFrameworkSetupPatchDataPatchInterface; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoCatalogSetupCategorySetupFactory; class AddProductAtrrEnableAttribute… Read More »how to enable/disable custom attribute showing on product page