New answers tagged

0 votes

Where to look to get Magento Quality Patches as .patch or .txt file?

All quality patches can be found in the respective GitHub repository.
  • 5,657
1 vote

Magento 2 : How to modify side navigation bar in my account page

<block class="Magento\Framework\View\Element\Text" name="account_section_title"> <arguments> <argument name="text" xsi:type="string&...
0 votes

Upgrade Magento Version to 2.4.4-p2 - Autoload Error

Try running the composer dump-autoload command instead of composer install. This command regenerates the autoload files without installing any new packages, and may help to resolve any issues with the ...
  • 341
1 vote
Accepted

Magento 2 : How to modify side navigation bar in my account page

Open the customer_account.xml file in a code editor and look for the customer_account_navigation block. This block is responsible for rendering the side navigation bar on your account page. To modify ...
  • 341
0 votes

magento 2 xampp pdo_mysql extension is not installed

The error message you're encountering, "magento 2 xampp pdo_mysql extension is not installed," indicates that the PHP extension "pdo_mysql" required by Magento 2 is either not ...
0 votes

preference :override class Pdfcreditmemos and class PrintAction not working

According to magento standard, An abstract class cannot be overridden. As per your post, you want to do some customization on public function massAction and public function execute() method. Those ...
0 votes

How to enable Two-Factor Authentication in Magento 2?

If the mode is Developer you can run these commands: sudo bin/magento module:disable Magento_TwoFactorAuth;#Disable #OR sudo bin/magento module:enable Magento_TwoFactorAuth;#Enable sudo php bin/...
0 votes

Magento media cache url

The cache folder/hash for resized product images in Magento 2 is generated dynamically based on the image dimensions and aspect ratio, and it is stored in the cache_metadata table of the Magento ...
0 votes

Magento 2.4.6 update - extension problem - zendframework replaced with laminas

Not recommended as all new applications use laminas, it makes more sense for you to update your modules, if they are 2.4.6 compatible you shouldn't have any problems
0 votes

How to add specific categories in robots.txt file in magento 2

Robots.txt For Magento User-agent: * Disallow: http://yoursite.com/category/category.html
  • 5,961
0 votes

Magento 2.4 get template file in data patch

I ended up emulating the admin area and getting the contents of the template file within there. /** * @return string * @throws \Exception */ private function getCmsBlockContent(): string { $...
  • 1
0 votes

Admin panel sidebar links doesn't work in production mode

Here is the result of the console you asked thank you
  • 1
0 votes
Accepted

How to change product name dynamically in configurable product when click swatches Magento 2.4

In Magento 2.4, you can change the product name dynamically by clicking on the configurable product swatch using JavaScript and jQuery. Here are the steps to do it: First, create a JavaScript file in ...
0 votes

Magento 2: Not able to delete second layout in widget

If you're not afraid of messing with MySQL, you can remove the offending layout update from the table your_store.widget_instance_page. This should also automatically delete the associated ...
  • 161
1 vote
Accepted

How to add bcc for forgot password emails in Magento 2

Please check this function sendEmailTemplate on vendor/magento/module-customer/Model/EmailNotification.php ,and try to override and add BCC email in $bccEmail like below. $transport = $this->...
1 vote
Accepted

Magento upgrade from 2.4.2-p1 to 2.4.5-p1 problems

This happened when you have disabled PHP functions: exec. ask your hosting provider or modify your php.ini file to remove it form disable_functions. then try to run php bin/magento cron:install --...
1 vote

How to populate custom attribute while creating product with Bulk API ? 'asych/bulk/v1/products'?

It looks like bulk product updates don’t use the Magento\Catalog\Api\ProductRepositoryInterface when saving product data. You can see in the queue consumer Magento\Catalog\Model\Attribute\Backend\...
0 votes

magento 2.4 what are coupon modifiers?

That’s functionality for allowing other components to modify the headers and send custom data when calling the “apply coupon code” action. See this method below: /** * Modifying data to be sent. * *...
0 votes

Magento 2.4.5 Uncaught TypeError: Cannot read properties of undefined (reading 'set')

Afternoon all, I found the cause for my issue for the same error on step 1 of the checkout with a patchable solution, please see the links below: Useful information and debugging help: Uncaught ...
  • 178
0 votes

[Magento][2.4.3] Deduct source item on refund

For now its better to disable the plugin, afaik, there is no point of decucting the source Qty on creating a credit memo. The source qty should be ideally remaining the same and if shipment is not ...
  • 23
1 vote

Magento upgrade from 2.4.2-p1 to 2.4.5-p1 problems

If you run apache as www-data check your crontab by running in terminal sudo crontab -u www-data -e to check if you are "really" using /usr/bin/php (php8.1 as you said) or the /usr/bin/php7....
0 votes

Magento 2.4.3 - Problem with agreements checkbox and store credit

The issue you are describing is most likely caused by a JavaScript function that is being triggered when the store credit is applied or removed, which resets the agreements checkbox. To prevent this ...
3 votes
Accepted

Returning configurable_options and variants are null for configurable products in custom product collection graphql query

After 2 days of investigation i have found the solution. in product data entity_id is missing. that was the issue. I have passed entity_id in array and it's working fine. hope it help someone . $...
0 votes

Can we add the bundle product in bundle product items for bundle product?

Could you try these steps, hope it will work ? Create the parent bundle product in Magento 2. In the "Bundle Items" section of the parent product, click "Add Option" and choose &...
1 vote

Uncaught Error: Interface 'League\Flysystem\FilesystemAdapter' not found in magento2

Take a look at both your app/code/ and vendor/ directories, do you see any module named Flysystem under League vendor name? In case you do - module League_Flysystem does exist in your project, maybe ...
1 vote
Accepted

Category name from store view, only when it exist else default value - Magento2.4

You will need to add several modifications to you function. For this part of the query you mentioned $cond[] = $items->getSelect()->getConnection()->quoteInto("category_name.store_id=?&...
1 vote
Accepted

Magento2.4.5: How to Products images on order detail page?

you can use Viewmodel for replace object manager. file: Override sales_order_view file. app\code{{vendor}}{{modulename}}\view\adminhtml\layout\sales_order_view.xml <?xml version="1.0"?>...
  • 1,484
0 votes

Translate dynamic text in magento 2 javascript

To translate a dynamic string like "within %1 days" using data-bind:i18n in Magento 2.4, you can follow these steps: Update the string in your HTML template to include a placeholder for the ...
1 vote

Magento2.4.5: How to Products images on order detail page?

you need to edit below file /vendor/magento/module-sales/view/adminhtml/templates/order/view/items/renderer/defult.phtml ( you need to copy into your theme or module) replace file code with below code ...
0 votes

Unable to set customer group when create customer with REST API

I am also facing a similar kind of problem in Adobe commerce 2.4.4. I tired to create customer using BULK API but the customer group is always mapped to the default customer group. Kindly advise on ...
0 votes

Magento 2 multiplication cron jobs

Run your custom cron and check : php n98-magerun2.phar sys:cron:run custom-cron-name How to Install and Use n98-magerun2 Read Blog : https://www.wagento.com/how-to-install-and-use-n98-magerun2-to-...
0 votes

Magento 2 multiplication cron jobs

Check if there are any duplicate cron jobs in your system, as this can cause multiple instances of the same cron job to run simultaneously. Use 'amasty_cronschedule' module to check for duplicate cron ...
  • 341
0 votes

Share wishlist using Graphql mutation

Create module SharingWishlist sequence Magento_WishlistGraphQl Define schema in etc/schema.graphqls type Query { sharingWishlist(sharing_code: String!) : Wishlist! @resolver(class: "Vendor\\...
0 votes

Import .gz mysql export file from Production Magento2 Cloud to Stage Magento2 Cloud

We just dump the database into a gz file in staging environment. and then move the gz file from staging to production. And then import the gz file into the database of production. # export the ...
  • 11
2 votes

magento2 cloud composer.lock file not updated

you should update your dependencies. try this code composer update If you want to update specific package check this composer update magento/inventory-composer-metapackage
  • 120
0 votes

Import .gz mysql export file from Production Magento2 Cloud to Stage Magento2 Cloud

Migrating a database from one environment to another can be a complex task, especially when dealing with a cloud environment like Magento Commerce Cloud. https://devdocs.magento.com/guides/v2.4/...
  • 341
0 votes

Magento 2.4 default select store pickup option on checkout

To set the "Store Pickup" option as the default shipping method on the Magento 2.4 checkout page, you can follow these steps: Log in to your Magento 2.4 admin panel. Go to the "Stores&...
0 votes

Is there any plugin available to skip currency converter for some specific products?

Create a plugin that modifies the behavior of the Magento_Catalog module's pricing model. Specifically, you can create a beforeGetPrice() method in your plugin that checks the product's SKU or any ...
  • 5,961
0 votes

Price values are saving as zero in sales_order_item table in magento 2

If the "price" and "original_price" values are being saved as zero in the "sales_order_item" table in Magento, there could be a few possible reasons for this: Pricing ...
0 votes

Magento 2.4 default select store pickup option on checkout

try this code down which is selected auto pickup by checking website: /** * @inheritdoc / class GetPickupLocations implements GetPickupLocationsInterface { /* * @var Mapper */ private $mapper; /** ...
0 votes
Accepted

Magento 2.4 : Issue with Initializing 3rd party JS library : Leaflet.js

I could resolve it with declare leaflet as a dependancy in requirejs-config.js . "map": { "*": { 'Magento_Checkout/template/billing-address/details.html': ...
0 votes

Magento 2.4.0 ElasticSearch not alive

if you are using https://github.com/markshust/docker-magento#setup make sure to not put localhost:9200 in the servers list as this is visbile to your host machine but if you do so the correct ...
0 votes

magento 2.4 product collection filter by custom attribute value instead of id

Get Option id from $product Object $attr = $product->getResource()->getAttribute('color'); if ($attr->usesSource()) { $optionId = $attr->getSource()->getOptionId("Red");...
  • 5,961
0 votes

magento 2.4 product collection filter by custom attribute value instead of id

Yes, you can filter the product collection using the option value instead of the option id in Magento 2.4. To achieve this, you need to use the addAttributeToFilter method with an array as the value ...
1 vote
Accepted

Header search bar search terms retrieve products collection

To display the product count for each autosuggestion keyword in Magento, you will need to perform the following steps: Override the Magento\CatalogSearch\Model\Autocomplete\DataProvider class in your ...
0 votes

set up one storeview for multiple domains

Yes, it is possible to create a Magento 2.4 instance with one website and one store view that is divided into multiple domains for different functionalities. To achieve this, you can follow the steps ...
0 votes

We can't find products matching the selection - Cached (Varnish) M2.4.5

Varnish is capable of looking at the status code and the reason message. If those are specific, a so-called hit for miss can be triggered which temporarily prevents Varnish from caching. Can we assume ...

Top 50 recent answers are included