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 ...
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'
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=&...
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);
$...
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:/...
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 ...
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....
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 ...
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 ...
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 ...
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/...
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 ...
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->...
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 ...
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 ...
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>
&...
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 ...
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 ...
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->...
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) {
...
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% ...
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
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:...
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 ...
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
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" />
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:...
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 ...
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 ...
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/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
magento2 × 47965magento-2.1 × 2510
magento2.3 × 2069
product × 1848
checkout × 1815
php × 1554
module × 1414
database × 1234
layout × 1212
admin × 1204
rest-api × 1198
javascript × 1180
magento2.2 × 1030
uicomponent × 983
category × 896
customer × 885
api × 840
event-observer × 828
magento2.4 × 810
cart × 782
orders × 774
theme × 733
error × 701
product-attribute × 701
attributes × 682