I have faced this issue and after scratching my mind for hours i have found a solution. The Exception could look like : You can resolve it via Database. Just go the table layout_update and find for the class “Magesan\Extension\Block\Widget\Wrapper” in the column of xml Once you have found it. Just delete it. The error
By default magento isn’t provide you the facility to check if product already in wishlist or not. But if you want rich feature to your site. This is one of the feature you can use. Here, we are going to add active class based on product. Before we proceed, Make sure you have a bit
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.
Custom attributes are something we need to create in our day to day life for adding additional functionality.category attributes are limited and if we need additional functions then we need to create custom category attribute.Here, we create simple_content wysiwyg field using InstallData.phpapp/code/Magesan/Extension/Setup/InstallData.php Save the file and fire commandphp bin/magento setup:upgradephp bin/magento cache:clean After creating attribute.
Custom attributes are somewhat we need to create in our day to day life for adding additional functionality.Customer attributes are limited and if we need additional functions then we need to create custom customer attribute.Here, we create phone_number field using UpgradeData.php app/code/Magesan/Extension/Setup/UpgradeData.php Save the file and fire commandphp bin/magento setup:upgradephp bin/magento cache:cleanAfter creating attribute. We
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.
Replacing some specific string from url is somewhat tricky job we need to do in our day to day life in IT field for making something dynamic. Here is the working solution you can try given below. Above given solution is tried and found working. If you are stuck somewhere then feel free to comment