Mohit Patel
  • Member for 1 year, 11 months
  • Last seen this week
Upgrade Magento 2.3.3 to 2.4
Accepted answer
16 votes

First take to older version website backup and after your run direct magento 2.4.0 version. Magento Open Source: composer require magento/product-community-edition=2.4.0 --no-update Magento Commerce: ...

View answer
Limit Product Name
Accepted answer
5 votes

Try this following code :- Go to your theme and add this code :- app/design/frontend/Vendor_Name/Theme_Name/Magento_Catalog/templates/product/list.phtml <?php $productName = $_helper->...

View answer
Ignore Column Table not working in Data Migration tool
Accepted answer
5 votes

Please add the code your map.xml file hope work this code <destination> <field_rules> <ignore> <field>quote.shipping_delivery_date</field> ...

View answer
Magento 2.4 category page product not load
3 votes

I have solve this issue below debugging steps with final solution :- First i have check what query are pass in collection EX:- <?php $_productCollection = $this->getLoadedProductCollection(); ...

View answer
Magento 2 - check if product is new
Accepted answer
2 votes

Propably the best option is to add new helper with following code: <?php namespace Vendor\Module\Helper; use Magento\Catalog\Api\ProductRepositoryInterface; use Magento\Catalog\Model\Product as ...

View answer
Magento 2 how to add custom attribute to register form?
Accepted answer
2 votes

If your install data script successfully installed your custom attribute, now you just need to override addition information .phtml file and set your custom attribute in that. Create Vendor/TestModule/...

View answer
Data migration Eav step error - duplicate
Accepted answer
2 votes

First check this link :- https://github.com/magento/data-migration-tool/issues/235#issuecomment-321923437 Solution is to rename all values containing the name "Default" in "...

View answer
Magento2: How to bulk update attribute: weight
2 votes

Export the csv file. And export csv file only two field like sku field and weight field and save two files csv.Again import the modified csv file import. And second Using SQL select * from ...

View answer
magento2 create menu in frontend
Accepted answer
2 votes

Simply above link talking to add the simple sort code in your topmenu.phtml. So You go to your topmenu.phtml file and put the some code <li class="level0 nav-8 last level-top ui-menu-item" role="...

View answer
Magento 2 create foreign key with upgrade schema
Accepted answer
2 votes

Try this: ->addForeignKey( $installer->getFkName('<ChildTable>', 'entity_id', '<ParentTable>', 'entity_id'), 'entity_id', $installer->getTable('<ParentTable&...

View answer
Magento 2: How to add custom field in contact page
Accepted answer
2 votes

This code is correct :- <div class="field ordernumber"> <div class="control"> <input placeholder="<?php echo __('Order Number') ?>" ...

View answer
Migrating custom tables from M1
Accepted answer
2 votes

I am not sure but It cannot done via Data migration as per as my idea. I only for suggest create all 3column data on a another table from Magento. After data-migration,copy data from that table to ...

View answer
In Setup upgrade and cache clear i get an error SQLSTATE[HY000] [2002] No such file or directory
Accepted answer
2 votes

Go to, And open the app/etc/env.php Change 'host' => 'localhost', Into 'host' => '127.0.0.1' And the php bin/magento s:up now Solve the issue..

View answer
Invalid configuration file:app/etc/env.php in magento 2
Accepted answer
2 votes

This error message is also shown if your app/etc/config.php is missing. If app/etc/env.php is present and you are still seeing this issue, check for app/etc/config.php. If it is not present, Magento ...

View answer
How to change home page meta title in magento 2.3?
Accepted answer
2 votes

Open your Magento admin panel and go to: Content > Pages > Find your home page See the screenshot below:- (If you can't find which CMS Page your homepage is set as, you can confirm this by ...

View answer
Magento 2 change language for all in Front-end
Accepted answer
2 votes

Please select the your store and add the description And add the store wise description your web site. Categorys language change the you goes to category tab select the your store Any problem ...

View answer
Magento 2 - 2.1 to 2.3 update
Accepted answer
2 votes

First check the php version PHP 7.1 or 7.2 1- Run command :- composer require magento/product-community-edition=2.3.3 --no-update 2- Run the composer update composer update And finally composer ...

View answer
Magento2: Create Module without Controller
2 votes

I have cerated simple hello world module without controller Mag/HelloWorld/Block/HomePage.php <?php namespace Mag\HelloWorld\Block; class HomePage extends \Magento\Framework\View\Element\...

View answer
Magento 2 How to create graphql query
1 votes

I have cerate custom module for get customer details by customer email. Step 1 :- You Create registration.php file <?php /** * @author Mohit Patel * @copyright Copyright (c) 2021 * @package ...

View answer
Magento 2 How to create graphql mutation
1 votes

I have create GraphQl mutation for contact us. Please follow below steps. Step 1 :- You Create registration.php file <?php /** * @author Mohit Patel * @copyright Copyright (c) 2021 * @package ...

View answer
Magento 2 How to extend/customise existing graphql query
1 votes

Step 1 :- You Create registration.php file <?php /** * @author Mohit Patel * @copyright Copyright (c) 2021 * @package Mag_ExtendQuery */ \Magento\Framework\Component\ComponentRegistrar::...

View answer
How to Get Order Details in Magento 2?
1 votes

Can you try using object Manager   $orderId = 1;   $objectManager = \Magento\Framework\App\ObjectManager::getInstance();   $order = $objectManager->create('\Magento\Sales\Model\OrderRepository')-&...

View answer
How to display name from custom attribute in product view page
1 votes

Setp 1 :- Go to or override app/design/frontend/Your_CompanyName/Your_ThemeName/Magento_catalog/layout/catalog_product_view.xml and add this code. <block class="Magento\Catalog\Block\Product\...

View answer
Backend not rendered properly after installation of 2.4.2
1 votes

I assuming You installed just apache and mysql.And same issue i have faced. You can check this link and will solve it. https://magento.stackexchange.com/a/120109/85907 You need AllowOverride All in ...

View answer
Class Magento\ImportExport\Model\ExportFactory does not exist
Accepted answer
1 votes

You can try some steps like :- so you need to check permissions for this folder as well. You need to run following command at the root of Magento installation directory will resolve this issue: sudo ...

View answer
Uncaught Error: Call to a member function getSomething() on null in phtml ViewModel magento2
1 votes

Try this below code :- ViewModel/Custom.php <?php namespace Mage\Mohit\ViewModel; class Custom implements \Magento\Framework\View\Element\Block\ArgumentInterface { public function ...

View answer
Magento 2 JS reCaptcha in phtml file
Accepted answer
1 votes

Try this following link :- https://meetanshi.com/blog/add-google-recaptcha-to-magento-2/ And you want to get extension check this link :- https://github.com/mageplaza/magento-2-google-recaptcha THANKS....

View answer
Custom Module for sending mail in Magento 2 didn;t send mail?
Accepted answer
1 votes

Check this link i hope your issue is solve. check below link https://www.rakeshjesadiya.com/send-mail-from-custom-module-magento-2/ Any query let me know THANKS.

View answer
Remove "Line 1" from checkout
1 votes

No the proper solution that works is but it is good . Try following way :- [name*="shippingAddress.street.0"] .label {display: none;} THANKS

View answer
Magento 2 - Custom Attribute Filter - addFieldToFilter
1 votes

You Get Filter Following code :- $_products->addAttributeToFilter('engine_store_show_on_homepage', array('eq' => 1)); // Using the operator $_products->addAttributeToFilter('...

View answer
1
2 3 4 5
10