New answers tagged

0 votes
Accepted

How to update a function in a mixin that was defined outside a return?

I fixed it like this: define([ 'jquery', 'fotorama/fotorama', 'underscore', 'matchMedia', 'mage/template', 'text!mage/gallery/gallery.html', 'uiClass', 'mage/translate' ...
mullayo's user avatar
  • 23
0 votes

Translate dynamic text in magento 2 javascript

I would recommend using https://github.com/willwright/Mecodeninja_DynamicTranslation This would include the translation that is marked as dynamic in the js-transation.json for runtime translating ...
Aditya Yadav's user avatar
0 votes

Magento 2 How can i customize the product on the page Product Listing Page Widget of Live Search

I'd like to know how to do similar things, but I haven't found any information... I even asked a question similar to yours, in case anyone wants to help me! Magento 2 - Does anyone know how to ...
Nelson Junior's user avatar
0 votes

Magento 2.4.2 - Create button for Notify me when this product is in stock

Use below updated code inside the file in your local theme. <div class="product alert <?= $block->getHtmlClass() ?>"> <button type="button" onclick="...
Bikash Kaushik's user avatar
0 votes

Get SKUs of all bundled product items Magento 2.4.6

Try below code <?php namespace Vendor\BundleProductSkus\Helper; class Data extends \Magento\Framework\App\Helper\AbstractHelper { protected $productRepository; public function __construct(...
Mohit Patel's user avatar
  • 3,750
0 votes

Is it possible to install Magento 2 in Wamp Server in 2024?

To install Magento on a Windows environment, you can follow the steps provided in the URL. https://www.cloudways.com/blog/magento-2-on-localhost/ Magento has a preference for Linux environments due to ...
Mohsin Raza's user avatar
0 votes

Is it possible to install Magento 2 in Wamp Server in 2024?

hello dear so please refer below link for the Magento version installed on Windows. https://www.thecoachsmb.com/6-steps-to-install-magento2-on-xampp-windows-using-composer/ and more thing when you ...
mohit vamja's user avatar
0 votes

An error with Magento 2 Admin panel page/Unable to access the admin page

Open the acl.xml file located in the Magefan_Community module directory (app/code/Magefan/Community/etc/acl.xml). Verify that the ACL rule for the "Magefan_Community::elements" resource is ...
kailash mishra's user avatar
0 votes
Accepted

Filter & Sorting Not Working for custom column ui_component grid custom column data come from another table through join query in Magento 2

I got the solution for Filter & Sorting for custom column ui_component grid. We need to add this code in DataProvider File then filter & sorting working perfect. public function addFilter(\...
VishalSingh's user avatar
0 votes
Accepted

how to create custom attribute for order using data-patch in magento 2.4.6?

You dont need a patch for that, you can simply use db_schema.xml for that. There you can define new columns in the sales_order table (and/or in the sales_order_grid table, to use it in your order grid)...
Mario's user avatar
  • 478
0 votes

Magento 2.4 decline message disappears quickly - several quick fixes don't to the trick

I did this recently in M2.4.6 p2 Just comment out the listens part in vendor/magento/module-ui/view/frontend/web/js/view/messages.js (copy it to your theme folder) defaults: { template: '...
Lez's user avatar
  • 2,897
2 votes

Remove or replace add to cart button on a product in catalog by condition programmatically

To prevent the product from Adding to cart you can use below code: app/code/Vendor/Extension/etc/events.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
user3411's user avatar
  • 134
0 votes

Magento2: How to add a custom extra field for product options, such as an image upload, in the select option type

Use the below Solution based on your requirement app/code/Vendor/ModuleName/etc/adminhtml/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
Girish Parmar's user avatar
0 votes

how to add dynamic options for records by select column in uicomComponent grid

I think your XML is OK: <column name="time_use_option" sortOrder="120" > <argument name="data" xsi:type="array"> <item name="...
Alguve's user avatar
  • 23
0 votes

Phone based Checkout

Please review the following extensions. They may meet your needs: Extension 1: https://store.webkul.com/magento2-phone-number-login.html Extension 2: https://store.doyenhub.com/customer-login-and-...
Deepak MageDivine's user avatar
1 vote
Accepted

Magento2: How do I add a filter for "is_in_stock" on category page layered navigation?

Please try below solution: 1. Create di.xml file to the following path: app\code\Vendor\Extension\etc\frontend\di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/...
Deepak MageDivine's user avatar
1 vote

How to filter customer collection by custom field added by db_schema xml file to customer_entity table in Magento 2?

You should try using addFieldToFilter instead of addAttributeToFilter because you are working with the database table field rather than a customer attribute. Please try it once: $customer = $this->...
Deepak MageDivine's user avatar
1 vote
Accepted

How to override some files

This is about magento 2 basics, and as it might seems confusing when you start learning it...it end up being quite easy to deal with. What you need to get information about is di.xml while (di lands ...
Claims's user avatar
  • 1,146
0 votes

Magento 2.4.3 - How To disable Page Builder?

In case you don't use the page builder (and don't plan on using it) is to remove the module and all of it's dependencies. This way you get rid of a lot of bloat it introduces. Just add this to your ...
Zankar's user avatar
  • 544
0 votes

Magento 2.4.0 - Getting Error Could not validate a connection to Elasticsearch. No alive nodes found in your cluster

If you import a database from a Magento site whose ElasticSearch is installed on a different server, the setup:upgrade command generates an error in your local environment. To fix it, run the ...
Wasim's user avatar
  • 445

Top 50 recent answers are included