New answers tagged

0 votes

How to replace the empty dropdown with "Please select" value in customer dropdown attribute in Magento 2

You can do it via Html. <select> <option disabled selected>Please select</option> ... </select>
0 votes

How to get call modal('closeModal') from authentication.html

You should be able to access to the modal class simply by selecting the element with jquery The binding of the modal in authentication.html is on the element ".block-authentication", so a ...
  • 1
1 vote

How can I pass row id in url when editing a row in admin page?

Changed like this and now it's working. <arguments> <argument name="rowUrl" xsi:type="array"> <item name=&...
  • 11
0 votes

Magento 2.3: Error Assigning Related Products

Indeed, I get this message while the database is already correct. So what then?
0 votes

How to check the customer first time ordering in the website in Magento 2

you can also try like this by using the following event observer after the order is placed you can show this detail in the order success page , please follow the code below events.xml file inside the ...
0 votes

Magento 2.3 - Intergration varnish cache with, error socket :80: address already use

For me, this was a misconfiguration. Systemd Check /etc/systemd/system/multi-user.target.wants/varnish.service -a (listener address) needs to be set to :80 However, -T is the CLI listener should be ...
0 votes

show top menu bar to left side in magento2

Strange that there is no full answer anywhere on this as it took me ages to work it out! 1 - Make sure you main pages (such as the home page) have a sidebar. In admin: Content -> Pages and under ...
0 votes

magento2 send email programmatically without template

Send email programmatically without email template, code is tested in Magento 2.4 /** * @var \Magento\Framework\Mail\MessageInterfaceFactory */ protected $messageInterfaceFactory; /** * @var \...
0 votes

Magento 2.3.0 How to add review form in custom module?

Can any one suggest. how to place review form in the Items Ordered (sales/order/view/order_id)
  • 31
0 votes

Magento 2 Layout handle forward / redirection works?

In this case, you have to create ajax call and receive the values from it. <script type="text/javascript"> require(['jquery'], function($){ var url = "<?php echo $...
0 votes

Can I upgrade Magento 2.3.4 to 2.3.7-p4?

You can go directly on 2.3.7-p4. Command to upgrade magneto version: composer require magento/product-community-edition=2.3.7-p4 --no-update composer update php bin/magento setup:upgrade php bin/...
0 votes

Magento 2: Issue with php bin/magento setup:upgrade

if someone is using dockergento go inside a bash with command dockergento bash --root and use command mentioned above there. sudo chmod -R 777 var/ pub/ generated/
0 votes

Order beforeSave plugin throws TypeError

The error being thrown is most likely: Argument 1 passed to Magento\Sales\Model\OrderRepository::save() must implement interface Magento\Sales\Api\Data\OrderInterface, string given To solve this issue,...
  • 562
0 votes

Magento 2.3 show Block only when customer not logged in

There is a quick and dirty way that works (tested in 2.4.3-pl), but it uses ObjectManager which is not recommended as best practice. Just stick this in the .phtml file you want it to work in. <?php ...
0 votes

Magento 2: Use of map in RequireJs-config

I have found some details about it & i have also tried to implement that which working fine. 'custom' Is a module name ( for an example: Magento_Catalog ) that we can add here so our JS file we ...
  • 1,022
0 votes

Magento 2.3 - Move billing address below shipping address in checkout

You can try this below extension given here in my blog: https://gyaan-hub.com/how-to-move-billing-address-below-shipping-address-magento-2/ Tested and worked with 2.4.3
0 votes

Date are preserved even after clear filter in Magento 2 UI grid

The problem is in the file: root/vendor/magento/module-ui/view/base/js/grid/filters/chips.js you can update the following function: /** * Calls clear method on all of its' children. * ...
1 vote
Accepted

Magento 2 : Create custom link products and display on cart page programmatically

For displaying the custom linked product add following function in block file as well as in phtml file app\code\Vendor\Module\Block\Cart <?php namespace Vendor\Module\Block\Cart; use Magento\...
  • 77
0 votes

Failed to open file composer.json. Please verify the archive

Please make sure. check your module name "name": "vendor/module", "type": "magento2-module", "version": "0.1.0", and other code syntax error....
0 votes

How to use external js for the phtml files in magento 2

For this type of development, there are various solutions, but I recommend using the below solution for more extensibility in the future: You can create a jquery widget for the selector - #zipcode-...
0 votes

Place order error Message queue topic "inventory.reservations.updateSalabilityStatus" is not configured. in magento 2.3

how did you fixed that problem? facing same thing : Message queue topic "inventory.reservations.updateSalabilityStatus" is not configured after place order. Magento 2.3
  • 1
0 votes

How to create two dependent dropdown product attribute in magento 2

If you have noticed when you select one particular option it shows other relevant options to select from. Such options are known as Field Dependencies controls. It hides unnecessary fields until you ...
0 votes

How to use external js for the phtml files in magento 2

The best way to add js in phtml is via requirejs Theme solution : Supposing that your js file is: myfile.js app/design/frontend/{Vendor}/{theme}/requirejs-config.js var config = { map: { '*...
0 votes

How to use external js for the phtml files in magento 2

Using layout : In your layout file you need to add the code below: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-...
  • 26
0 votes

magento 2 remove shipping amount from cart total

Try This app/code/VendoreName/ModuleName/etc/frontend di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
  • 6,155
0 votes

From where the product collection is coming when we add required sku's in the product widget settings in Magento2 Page builder

The information here is based on Magento 2.3, I cannot confirm if it is the same for Magento 2.4 The \Magento\CatalogWidget\Block\Product\ProductsList contains calls to getProductCollection, which ...

Top 50 recent answers are included