New answers tagged

0 votes

How filter dropdown options based on another dropdown selection in Magento2 UI grid filters

Credit to Victor, just refactored the code with working examples define([ 'Magento_Ui/js/form/element/select', 'uiRegistry', 'underscore' ], function (Select, registry, _) { 'use strict'; return ...
user avatar
0 votes

How to add link in shopping method in frontend side in magento 2?

Depends on your goal you can implement this in few ways Customize Shipping Method template and render something only for your method See Customize the list of shipping methods Create mixin for ...
user avatar
0 votes
Accepted

Update Magento ver. 2.2.4 to Magento ver. 2.3

You need to check each of your third party modules (extensions) for compatibility with the version of Magento you want to upgrade to. Contact the module developer to see if there is a compatible ...
user avatar
  • 5,556
0 votes

Is there any way to hide columns controls button in Magento2 admin UI component for specific user role

One more solution add custom PHP class to listingToolbar XML Code Create PHP class <COMPANY><MODULE>\Component\ManageControl">' and extend to Magento\Ui\Component\Container Add ...
user avatar
0 votes
Accepted

Is there any way to hide columns controls button in Magento2 admin UI component for specific user role

It's little bit tricky, but i hope this way can help you app/code/Acme/StackExchange/etc/adminhtml/di.xml <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="...
user avatar
0 votes

Can not add2cart grouped product when 1 input field is diabled

I have notice that, I have resolved it now like this: {echo 'readonly style="background-color:#D3D3D3;border-color:#D3D3D3;"';} ?>
user avatar
0 votes

Can not add2cart grouped product when 1 input field is diabled

The element with attribute disabled will not pass the value to form. You can use readonly attribute instead of disabled or render additional element like <input type=hidded.../> for pass 0 value....
user avatar
0 votes
Accepted

How filter dropdown options based on another dropdown selection in Magento2 UI grid filters

The answer just a concept and i don't have enough time to provide full example, but hope this will help to understand a concept. 1. Custom Column Ui Component You need to create a custom column ...
user avatar
0 votes

How to configure and setup Xdebug in phpstorm for Magento?

Sometimes When you try to validate it gives some error like invalid port or service not available etc always make sure the port you set in that file and the port in your phpstorm is same, like in my ...
user avatar
0 votes

API stopped working with 2fa since 2.4 upgrade

The 2FA module did add the ability to authenticate to the API using 2FA. First I would suggest logging into Magento using the account you want to use for the API via the admin so you can configure the ...
user avatar
  • 420
0 votes

How to configure and setup Xdebug in phpstorm for Magento?

Follow this step to configure xdebug. 1:Run this command in terminal sudo apt install php7.4-xdebug after that check PHP version by this command and we will configure according to that xdebug ...
user avatar
0 votes

php bin/magento setup:upgrade

I've also face this issue when setup:upgrade, if you not install magento properly then some files missing in root directories, so best option is download files from magento official side related your ...
user avatar
0 votes

Magento Admin display Exception #0 (Magento\Framework\Exception\InputException): Please correct the target currency

You need to define the target currency in the configuration. As you can change it from the admin configuration but your admin is not working. You can change it from the database core_config_data table....
user avatar
  • 101
0 votes

xml to extract data in php

Unfortunately you cannot properly convert XML attributes or partial NS attributes with json_encode. Just for fun i wrote simple example how you can convert XML into some tricky PHP array with keep all ...
user avatar
0 votes

Magento2, how to get all products images in Wishlist page?

Can you try below code and check. The image gallery is added to the product via an extension interface defined via di.xml. The upshot is that we can manually create an instance of the gallery ...
user avatar
  • 3,187
0 votes

Magento 2: Order Items in New Order Email not showing

On Magento 2.4.4 and above, go to the Email template page, find and replace: {{layout handle="sales_email_order_items" order=$order area="frontend"}} to {{layout handle="...
user avatar
  • 161
1 vote
Accepted

Magento 2 Category rule and override the cart file by plugin

The first step is to register your module with registration.php. The file location will be app/code/Softi/CartProduct/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::...
user avatar
0 votes
Accepted

Magento 2 : How To Get Configurable Product's Child Product Id Using Swatch-option?

Following code work for me you can try it. app\code\Vendor\Extension\etc\di.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
user avatar
  • 2,498
0 votes

How to use require_once in magento 2

Can try following solution: private $googleClient; private $directoryList; public function __construct( \Magento\Framework\Filesystem\DirectoryList $directoryList ) { $this->directoryList =...
user avatar
  • 466
0 votes

What methods do you use to optimize the work and performance of the backend part (.php)?

You need to improving code by following points. A. Check code where Collection is use, pass proper fields into conditions so you get accurate result. B. Proper Use of Collection, Interface, Repository....
user avatar
0 votes

Will the same php and mySQL versions work for both Magento 2.4.2-p1 and Magento 2.4.4?

No, It will not work. Always follow magento devdoc otherwise you can face issue on some pages or functionalities. You can check on official document as well. https://devdocs.magento.com/guides/v2.4/...
user avatar
  • 2,498
0 votes

Separate billing/shipping addresses in magento?

For magento 2 the below code will work to create separate entry for billing and shipping. i am skipping to module create basic step. here is the direct required changes to fulfill the requirement. ...
user avatar
  • 1,039

Top 50 recent answers are included