How to save multiple products faster way in Magento 2
How to create boolean column in Magento2 using db_schema.xml
How to add custom sql query to collection in Magento 2
Create a file at Magesan/extension/etc/adminhtml/di.xml Create a file at path :- Magesan/Extension/Model/Source/UiContent.php This file is responsible for returning options to the multiselect field. Create a file at Magesan\Extension\Ui\DataProvider\Product\Form\Modifier\UiContent.php Happy Coding…
We need events.xml at path Magesan/Extensions/etc/events.xml Copy and paste below code Create file QuoteSubmitBefore.php at path Magesan/Extensions/Observer/QuoteSubmitBefore.php Copy and paste below code to it. We are changing order’s increment id to another one if conditions are met Happy Coding…
Here is the base resolver class in graphql in magento 2.
We need to write jquery sometimes in phtml file for special requirement. For that you need to define jquery in require function in script tag for using jquery within phtml file.Put below script in phtml file and replace console.log with your custom code.