Questions tagged [magento2]

General questions about Magento 2, not specific to a minor version. Use this tag to distinguish from Magento 1. If you have issues with a specific version, please use the appropriate 'Magento-2.x' tag instead. Functionalities between Magento 2 minor versions might differ.

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

How to solve error : [ERROR] Failed to load the component

console-output-handler.js:34 [2022-09-22 09:28:34] [ERROR] Failed to load the "Magento_Tax/js/view/checkout/summary/subtotal" component. ConsoleOutputHandler.show @ console-output-...
1 vote
1 answer
44 views

What is alternative of cacheable="false"

I am developing a module i which i override the Magento\Catalog\Block\Product\ProductList\Toolbar.php by preferece and list.phtml by catalog_category_view.xml layout. Correct product listing data is ...
0 votes
0 answers
12 views

ERROR Illegal offset type on reindexing catalog_product_attribute. Cant reindex product attributes

Upgraded from Magento2.4.2pt1 to Magento2.4.4-pt1. Now reindexing from SSH I am getting error with reindexing catalog_product_attribute. php -d memory_limit=2G bin/magento indexer:reindex ...
0 votes
0 answers
24 views

Whoops, our bad

it's been several times that I tried to make magento work but I always have the error page Whoops, our bad and I have tried everything so I am leaving it to you. If you need capture or anything you ...
  • 11
1 vote
2 answers
35 views

Cron Debugger not Working

Can anybody tell me how Can I use debugger on the Cron. I tried to do many things, but it doesn't work.
  • 115
0 votes
0 answers
10 views

Magento 2 - move block to another using move but not working

hello I have this layout, and I would like move the block amasty.menu.toggle before items of the menu to have an hamburguer into the same horizontal list menu. I tried this : <move element="...
0 votes
0 answers
25 views

Magento 2 : How to Change Text Favourite to add to favourited after product added to wishlist

<?php /** * @var $block Magento\Wishlist\Block\Catalog\Product\View\AddTo\Wishlist * @var $amLayoutViewModel Amasty\JetTheme\ViewModel\ProductPage\ProductPageViewModel * @var $escaper Magento\...
  • 1
0 votes
1 answer
14 views

Refused to connect error in trustpilot for other website in magento 2

I have two websites in my magento admin and I need to add trust boxes in the pages using trust pilot - trust boxes. It is working fine for one website, but when load other website url in the ...
  • 57
0 votes
1 answer
21 views

How we can convert this customer group dropdown select to multi select dropdown in magento 2?

I want to convert this customer group dropdown select to a multi-select dropdown in Magento 2.
1 vote
0 answers
10 views

Magento2.4.4 pagebuilder having issue When we change content and save

Magento2.4.4 pagebuilder having issue When we change content and save
  • 11
3 votes
1 answer
21 views

Magento 2 : How to fetch custom input data in product attribute form

I have created plugin for add textbox in product attribute form. di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
  • 33
0 votes
0 answers
11 views

Tax Percent function in magento 2

Tax Percent function in magento 2 . tax Percent data get in magento 2. $_order->getTaxAmount() . I try this function but that's not happening.
0 votes
1 answer
19 views

How to implement Add products option in ui form Magento2

I have a product block like(refer image) and I loaded the productgrid using( https://www.rohanhapani.com/magento-2-how-to-add-product-grid-in-ui-form-using-uicomponent/)and successfully saved.After ...
  • 15
0 votes
0 answers
24 views

database schema vs schema patch in magento 2

I have doubts about the database schema and schema patch so can anyone help me to understand the difference between
  • 1,925
0 votes
0 answers
8 views

Bundle products are showing without stock even if I disable the option to show out of stock products

I have a store with MSI and I have bundled products, also I have disabled the option to show out-of-stock products. But when one of the simple products that compound the bundle doesn't have stock the ...
0 votes
0 answers
18 views

Error: Call to a member function isSaleable() on null

I'm getting the below error: [2022-09-20T20:10:16.753904+00:00] main.CRITICAL: Error: Call to a member function isSaleable() on null in C:\xampp\htdocs\magento2\vendor\magento\module-catalog\view\...
0 votes
0 answers
11 views

Issue with Ensure text remains visible during webfont load in Porto Theme

After running site audits with Google Insights and Lighthouse I am getting the following: Ensure text remains visible during webfont load Leverage the font-display CSS feature to ensure text is user-...
  • 13
0 votes
1 answer
25 views

Full width product gallery

I am using a custom theme built off of Amasty's Jet Theme. I am trying to use the grouped product type to sell parts from a schematics image. The idea is to have the schematic full width across the ...
  • 3
0 votes
1 answer
42 views

Custom Validation For Checkout Field

I want to add custome validation for example firstname who user can't use number But i don't know why it doesn't work I have create a module and create a file in view/frontend/web/js/validation.Js ...
  • 17
0 votes
0 answers
16 views

Magento2.3.5: How to get Customer Grid custom columns values in CSV?

I want to to add custom columns values in export option in customer grid, but only heading are showing in csv file not values. here is my customer grid custom columns. Vendor\Module/view/adminhtml/...
  • 342
0 votes
0 answers
12 views

Magento 2.4.5 File/Folder Permissions

I know this has been asked before and there is the magento help documents, but can someone clarify what files/folder permissions i need for magento 2.4.5. I have been running magento fine for over 2 ...
0 votes
1 answer
15 views

Does not have accessor method M2

Getting this error: {"message":"Property "CustomerId" does not have accessor method "getCustomerId" in class "Magento\Customer\Api\Data\CustomerInterface". ...
0 votes
1 answer
14 views

Magento 2 compiling SCSS using Gulp

Currently, our development build uses gulp styles to compile stylesheets for the theme, I've installed it a dozen times but after I attempted to install it today I keep getting stuck on the message ...
  • 111
0 votes
1 answer
15 views

Issue with Advanced MSI and products listing Magento 2.4.3

I'm facing an issue with Magento 2.4.x, the website is hosted on managed magento server. We have 2 inventory sources (default & abc) and we have assigned products to the source abc. If we enable ...
0 votes
0 answers
9 views

Configure opensearch with magento 2.4

I have just installed fresh Magento 2.4.4, and now I need to configure OpenSearch in it. I am using Elasticsearch previously, but I need to switch to OpenSearch, but unable to find any blogs, answers, ...
0 votes
0 answers
7 views

New field in the search filter

How to insert a new input field in the search field of the Customers > All Customers menu? Follow the print
0 votes
0 answers
9 views

Invalid Method Magento Interceptor

I had customize this XML <referenceContainer name="content"> <block class="Magento\Cookie\Block\RequireCookie" name="require-cookie" template=&...
0 votes
0 answers
8 views

The product code is incorrect

I have a problem with the colissimo module I cannot print my parcel label because I have the following error The product code is incorrect but when I go to the product catalog my product does exist. ...
  • 11
1 vote
0 answers
8 views

How to add subscription's extension appearance on Catalog Page?

How can I add this appearance from product page: to the catalog page: Please check also this question Support Question that was connected on this.
1 vote
1 answer
19 views

How can I reference an extension block to another block on magento

How can I reference the block of this catalog_product_view.xml file: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:...
0 votes
1 answer
16 views

CSS and JS return 404 in only custom module page (in admin panel)

I write custom module for admin panel. The entire admin panel works correctly. Styles and scripts are loaded everywhere. But custom module page looks like I checked source code. Valid CSS path looks ...
  • 13
0 votes
0 answers
13 views

How to add File upload in the Gift Message form

I am trying to Add image upload in the Gift Message. To achieve , created a Field: image_url in the Table: gift message using db_schema.xml and used the extension_attributes.xml to set and retrieve ...
0 votes
0 answers
12 views

How to get product option in order item order history page magento 2

How to get order item in order history page magento 2 "product_option": { "extension_attributes": { "custom_options": [ { "option_id": &...
0 votes
0 answers
13 views

Magento 2.3 admin product listing page is loading very slow

I have a Magento2 application and it has around 3637 products. The problem is that the catalog>products page on the admin side is loading very slowly, it takes around 4 minutes to load the page. So ...
  • 113
0 votes
0 answers
15 views

Magento 2 - Extension throws error during compilation, even though it is disabled

I try to compile my project with bin/magento setup:di:compile, but I get: Company\PdfDesign\Block\Order Incompatible argument type: Required type: \Magento\Payment\Helper\Data. Actual ...
  • 2,551
0 votes
0 answers
18 views

magento2 image add in pdf how to? this code not working for me

$post = $this->getRequest()->getParam('sku'); $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $helperImport = $objectManager->get('\Magento\Catalog\Helper\Image'); $...
  • 1
0 votes
0 answers
13 views

On the Product Page, the Add to Cart Button is missing. Magento 2.4.3

Good day We are using a Magento 2.4.3. Unfortunately, the "add to cart" button is sporadically missing on the product page. Clearing the cache, reindexing and clearing the cache, or ...
  • 145
0 votes
1 answer
18 views

Couldn't get All categories Collection Magento2

I am facing an issue on the Live site that category collection only returns the specific level categories the same code is working fine on Localhost Here is My Code public function getAllCategory(int ...
0 votes
0 answers
9 views

How to show custom address attribute in checkout shipping-address?

I have created a custom attribute for customer addresses. and I want to show it in the checkout shipping address form.
0 votes
1 answer
8 views

how to send items details in shipment update email templates in magento 2

I wanted yo send items details in shipment update email templates in magento 2. please help me how to add items in shipment update email template. Thanks
0 votes
0 answers
8 views

Cannot redirect to custom page from Observer "sales_order_place_after"

I have this event "sales_order_place_after" I need to redirect the customers to a custom page and connect them to an external payment gateway, this page is done, however I can't figure out ...
0 votes
0 answers
7 views

Next Exception: Report ID: webapi-6326e5782661e; Message: Validate class not found from basename 'Magento\Framework\Validator\EmailAddress'

Upon trying to place a test order post upgrading Magento to 2.4.4, I found the following error in the system log. Could you please help me understand and fix the error? Next Exception: Report ID: ...
0 votes
1 answer
13 views

Using classes from \Magento\Setup namespace in custom module

This is for Magento 2.4.13-p3, on PHP 7.4. I'm working on a custom console command class. It uses another custom class named Analyzer in its constructor. I'm trying to inject a Magento\Setup\Model\...
0 votes
1 answer
18 views

Magento 2: How To Add Extension Attribute To order item only Order API

How To Add Extension Attribute To order item Order API Place order: [POST] /rest/V1/carts/mine/payment-information
0 votes
0 answers
9 views

How to check postman create order api and add extension attribute to order item magento 2

Magento 2 how add extension attribute to order item create order use postman Place order: [POST] /rest/V1/carts/mine/payment-information set order item extension attribute in magento 2 "...
0 votes
1 answer
16 views

Cannot access private property

What is the meaning of this error? Is the meaning of this is? I'm trying to add the extensions appearance on the product list. main.CRITICAL: Error: Cannot access private property Magento\Catalog\...
0 votes
0 answers
14 views

Magento 2.4.2-p2 - Inconsistent PageSpeed Insight and/or Lighthouse (DevTools) scoring & Website Speed Fluctuates

I am currently working on a project that keeps getting inconsistent scoring by fluctuating from >= 20 to <= 80. At first, after I applied the fix have it upgrade and reindex/recache the website ...
0 votes
0 answers
5 views

default add to cart with configurable items in catalog category page

I get an error for adding to cart the configurable items in the category catalog page. I assume it's because user has to pick which variant. Is there a way to get a default product without the user/...
0 votes
2 answers
15 views

Cannot insert custom block into 'product.price.final' in XML

Here is my catalog_product_view.xml: I want to insert one CustomBlock to this final price block, so i can use getChildHtml() to call in template final_price.phtml, but it does not work so far, why ? &...
0 votes
2 answers
20 views

how to add custom filter in UI component with minimum effort?

I have grid in which i try to filter a field name "seller_id" and this grid is a coming from a custom dataprovider with join of two tables. Now the issue is these both table have same column ...
  • 1,351