Skip to main content
7 votes
Accepted

Magento 2.4.7: Page Builder was rendering for 5 seconds without releasing locks

We are also facing same problem and adobe team have shared patch with us and after apply that patch issue is resolved. If anyone having facing same problem then you can use attached patch file. I hope ...
Raj's user avatar
  • 906
6 votes

TypeError: addslashes(): Argument #1 ($string) must be of type string after upgrade Magento 2.4.3 to 2.4.6

Without modify core code - simple update the core_config_data table with this sql statement: UPDATE core_config_data SET value = 'welcome' WHERE path ='design/header/welcome'
BergMedia's user avatar
5 votes
Accepted

color picker in configuration Mismatched anonymous define() module in Magento 2

As per your error you want to add adminhtml_system_config_edit.xml on path Vendor/Module/view/adminhtml/layout/adminhtml_system_config_edit.xml in your module and add below code: <?xml version=&...
Charmi Patel's user avatar
  • 1,225
4 votes

Magento 2: Replacement for Mage::log method?

Magento 2 ( 2.4.X ) - Magento 2 logs - Magento 2 default logs $writer = new \Zend_Log_Writer_Stream(BP . '/var/log/testlog-thala-vkk.log'); $logger = new \Zend_Log(); $logger->addWriter($writer); $...
Roshan Rakesh Yadav's user avatar
4 votes
Accepted

Magento2.3.5: How to optimize product export scripts?

I recommend to use standard performance improvement loop: Testing (profiling) Find bottleneck Fix it and repeat https://github.com/NoiseByNorthwest/php-spx is good for quick start For example app:/...
KAndy's user avatar
  • 20.9k
4 votes

what is hyva ? A theme or a platform?

The answer is simple. What you are going to purchase is a theme. But what you get is a platform! Some detailed information would be: It uses basically two libraries. AlpineJS for giving basic ...
Rajeev K Tomy's user avatar
4 votes
Accepted

Upgrading to Magento 2.4.7-p1

The issue you're encountering is a version conflict between psr/log required by laminas/laminas-log and magento/product-community-edition. Specifically, laminas/laminas-log requires psr/log version 1....
Amal 's user avatar
  • 76
3 votes
Accepted

Vendor directory changes not working

By default, docker-magento does not support bi-directional sync for the entire project source code due to performance reasons. However, it does bi-directionally sync the folders that you work with the ...
Tu Van's user avatar
  • 7,598
3 votes

Widget not inserting or saving when the word 'type' is used anywhere in the text after a quotation mark

I tracked it down with firefox debugger (& chrome when I wanted to quickly test my custom JS) to here : lib/web/mage/adminhtml/wysiwyg/tiny_mce/plugins/magentowidget/editor_plugin.js where both ...
medmek's user avatar
  • 764
3 votes

I'm getting empty array without using session object. How we can get cart data without using session object

I noticed that you are accessing allVisibleItems directly from the cart object. But first, you should retrieve the quote and then access allVisibleItems. This will resolve your issue. Here is the ...
Deepak MageDivine's user avatar
3 votes
Accepted

display products onclick category url only if attribute value is yes

Yes, I noticed your comments. You are using a product query to retrieve products, so you can simply add your attribute filter to your existing query. Product Query: https://developer.adobe.com/...
Msquare's user avatar
  • 9,278
3 votes

display products onclick category url only if attribute value is yes

when u are using PWA Magento 2.4.5 Venia Theme then you can't use classic Magento templates from modules. Magento theme is based on PHP and HTML and is part of classic Magento approach. PWA Venia is ...
K. Maliszewski's user avatar
3 votes

Updating custom customer attribute

You can use the following code to update customer attribute public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface $context) { $customerSetup = $this->...
Mitul Vadalia's user avatar
3 votes

301 Redirection from Old Magento2 URLs to SEO-Friendly URLs

You can create 301 redirection for catalog/product/view path url to seo friendly url by below approach. Step 1: You can override catalog/product/view controller execute method. Step 2: Then you check ...
Nikunj Rawat's user avatar
3 votes
Accepted

How to get email template content using template id in magento 2?

Using the below helper method you can get the template data <?php namespace [Vendor]\[Module]\Helper; use Magento\Framework\App\Helper\AbstractHelper; use Magento\Framework\App\Helper\Context; use ...
Grazitti Dev's user avatar
3 votes

Unable to change/resize the logo from Magento admin after installing a custom theme

For anyone looking for this in 2023 the argument name in the the reference block is wrong. it should be: <argument name="logo_width" xsi:type="number">417</argument> &...
totneschap's user avatar
3 votes

Magneto 2.4.1 Collection: __construct() must implement interface Magento\Framework\DB\Adapter\AdapterInterface

You are creating a virtual type with the namespace Vendor\Module\Model\ResourceModel\AddressGroups\Collection which already exists. As a result, AbstractFactory will pass the arguments (mainTable and ...
mohith's user avatar
  • 496
3 votes
Accepted

Not able to download magento2.4.6-p2

Run the following command to get the path of the composer's global directory. composer config --list --global | grep 'home' Ensure that your auth.json file is located in the same directory as the ...
Tu Van's user avatar
  • 7,598
3 votes
Accepted

Custom customer attribute not save 2.4.6

in \Amici\Company\Model\Config\Source\AttributeCode add getSpecificOptions method with below code public function getSpecificOptions($ids, $withEmpty = true) { $regionLevel2Collection = $this->...
Murtuza Zabuawala's user avatar
3 votes
Accepted

Magento 2.4.3-p1, order out-of-stock product in list.phtml

You can try this in your list.phtml <?php $currentCollection = $block->getLoadedProductCollection(); $inStockProducts = []; $outOfStockProducts = []; foreach ($currentCollection as $product) { ...
Mitul Vadalia's user avatar
3 votes
Accepted

Two Cart Price Rules are applying incorrect discounts

This calculation is perfectly correct. If you first subtract 20% from 1700, 1360 remains. Then rule 2 where 30% is subtracted from 1360: 408. 1360 - 408 = 952 which is 748. If you want to give 50% ...
JKıngma's user avatar
2 votes

2 errors Could not acquire lock for index: when reindexing

There is no need to go into maintenance mode or do database updates. Just run: bin/magento indexer:reset bin/magento indexer:reindex
Dumindu Perera's user avatar
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
  • 144
2 votes
Accepted

Where does Magento 2 save session?

Magento 2 utilizes PHP's default session handling mechanism, and the session files are stored in the 'var/session' directory by default. To inspect or configure the session save path, you can refer to ...
Msquare's user avatar
  • 9,278
2 votes
Accepted

Magento2 | Reduce JS files to optimize site performance

You should look into Magepack. Its a very nice tool and free as well. https://github.com/magesuite/magepack
Infinri's user avatar
  • 131
2 votes

How to remove block and block arguments in other XML layout magento 2

You can try to use it by adding null type. <argument name="alias" xsi:type="null" /> <argument name="block" xsi:type="null" />
Harish kuril's user avatar
2 votes
Accepted

Change Products per Page on Grid Default Value using custom layout xml - Magento 2.4

Please try below code app/code/VendorName/ModuleName/etc/frontend di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Msquare's user avatar
  • 9,278
2 votes
Accepted

Load widgets in specific position on category list page - Magento2.4

Try the code below. I've created a custom module that provides a content area and a position field. In this field, you can decide on your content and also specify a position where you want to display ...
Msquare's user avatar
  • 9,278
2 votes

This error has occured in magento 2, how can I fix it?

Check to see if dev/template/minify_html is enabled and if it is, disable it. You can check this in the admin under Stores -> Configuration -> Advance -> Developer -> Template Settings or ...
diazwatson's user avatar
  • 2,450
2 votes
Accepted

Magento 2 : How to add Coupon Code Section In mini cart like in the shopping cart

Please copy minicart.phtml from your vendor files: vendor/magento/module-checkout/view/frontend/templates/cart/minicart.phtml And overwrite it in your custom theme: app/design/VenderName/ThemeName/...
Msquare's user avatar
  • 9,278

Only top scored, non community-wiki answers of a minimum length are eligible