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
0 answers
13 views

Problems when using composer require with Magento/Framework in Magento 2.4.2

Using Magento 2.4.2 Composer 2.2.17 I am trying to install Mollie Payments in Magento 2.4.2. Using Composer version 2.2.17. After running composer require mollie/magento2, i get the following problems:...
0 votes
0 answers
14 views

Magento 2 - render payment methods and its content for quote on custom page

i have created an custom checkout page. on that page i need to show the avaiable payment methods depending on the quote. i know how to get payment method title and code with php for a specific quote. $...
0 votes
1 answer
24 views

static image doesn't show in checkout page magento 2.4

I was override Magento_Checkout/shipping-address/shipping-method-item static html file with Vendor_Module/checkout/shipping/shipping-method-item static html file. now I wants to set static image URL ...
0 votes
1 answer
12 views

Accordion clickable on mobile and always open on desktop?

In alpine.js how can I reach this? <?php /** * Hyvä Themes - https://hyva.io * Copyright © Hyvä Themes 2020-present. All rights reserved. * This product is licensed per Magento install * See ...
  • 13
0 votes
1 answer
12 views

Does magento and PSR provides a better way of custom logging than Zend

in previous magento version, i used to make a custom logger, using Zend\Log\Logger This was allowing me to create as many logger with custom name as i wanted. I would like to update this behavior with ...
  • 853
0 votes
1 answer
28 views

How to create Access Token in Magento 2.4.5

I am creating the acess token using API /rest/default/V1/integration/customer/token. The Api is returning Access token successfully but it didnot saved in database in oauth_token table. also it is ...
0 votes
0 answers
7 views

Getting PHP error after enabling Braintree card payment method in Magento 2.4.5 Fresh Installation Setup

Getting an error when enabling the Braintree payment method when clicking on reorder from the order view page on the admin side, can you please help me resolve this issue? Error is = Error: Call to a ...
0 votes
0 answers
5 views

Load product eav attribute to Order grid csv export

Hi I have a custom grid which displays sales order items and I need to add a column to grid csv export.The column is an product eav attribute of ordered product.How can I load the product's eav ...
0 votes
1 answer
26 views

very tiny shopping cart images

I don't think I've touched this part but the cart images are showing extremely tiny images This is the one where you click on the shopping cart. I'm extending form the Luma theme this is when I ...
0 votes
0 answers
22 views

Magento2: How to get controller URL without index/index and how to access parameter in controller?

I am using magento2.4.3-p2 and I want to access the controller URL without index/index AND parameter. for example https://example.com/product-info/A123456 I want to access A123456 code from this URL ...
0 votes
1 answer
13 views

when we run composer update on magento version 2.4.2-p1 facing issue

Facing the issue of during composer update on magento 2.4.2-p1 Uncaught Error: Interface 'Laminas\ServiceManager\Factory\FactoryInterface' not found in /home/moazzam/www/test.local/setup/src/Magento/...
0 votes
1 answer
10 views

Mass price update vis custom code

I am trying to find code found in a tutorial that would enable me to update all pricing per sku for a specific store id. I am wondering if row 151 the INSERT qyuery shouldn't that be an update query ...
  • 793
0 votes
2 answers
12 views

what is the workable procedure for upgrading magento ce 2.3.x to 2.4.x

Due to the deprecation of composer 1 and EOL of magento 2.3.x, I am tempted to consider the upgrade magento from existing 2.3 to latest. I did research and found not many guidance for upgrade but ...
0 votes
0 answers
8 views

Magento 2.4: Paypal issue when tax is added programmatically

I am adding tax programmatically when a particular shipping method is selected.But it is giving an error after I click place order 'PayPal NVP gateway errors: The totals of the cart item amounts do ...
  • 161
0 votes
0 answers
10 views

Error filtering template: Invalid Document Element 'widget': Missing child element(s). Expected is one of ( label, description, containers ). Line: 4

I am facing this issue at home page after click on reorder in my order at frontend.
0 votes
2 answers
20 views

After login redirect to dashboard load for ever for administrators

When i try to login my Magento 2.3.5 backoffice with administrators role account it never finish his redirection . After a while got a 503 Backend fetch failed I got nothing in exception log , and ...
0 votes
0 answers
8 views

Element 'link', attribute 'as': The attribute 'as' is not allowed - Mangeto 2.3.1

Trying to preload my fonts, but I'm getting this error when using 'as' attribute. File -> ...../Magento_Theme/layout/default_head_blocks.xml <link rel="preload" as="font" src=...
  • 101
1 vote
0 answers
13 views

How to use custom field in the HTML of Magento 2 pagebuilder?

I added a custom field to all pagebuilder blocks, this was fairly easy to do with a single file in my custom module. <MyVendor>/PagebuilderExtend/view/adminhtml/ui_component/...
  • 1,358
0 votes
1 answer
26 views

magento 2 admin base urls

There seems to be an issue with google not showing my catalog and product images in google search results, just wondering if my magento admin base (secure/unsecure) urls are set correctly? i have seen ...
0 votes
0 answers
23 views

How to get product id in custom tab of product edit form in admin?

I have created a custom tab in the product edit form in admin, In the custom tab, I have added a grid, and I want to get product id in that specific grid data provider in Magento 2,
0 votes
1 answer
24 views

How to call the Cron's execute() function from a controller Magento 2.0.8

I have a Magento Cron which works fine when I call it using the CLI. I want to call the same Cron in a Controller. Is it possible to do it? (ie) I want to run the execute() function in the Cron script ...
0 votes
1 answer
23 views

How to move toolbar in left sidebar

Anyone have any idea about How to move toolbar in left sidebar in magento2 category page using XML?
  • 1
0 votes
0 answers
16 views

simple product to configurable product Magento 2.3.x

On magento 2.3.x or magento 2.4.x can you make a simple product into a configurable one? I'm speaking about 5k+ products. Is there an easy way to do this?
0 votes
0 answers
12 views

How to create a module showing flat rate shipping on the single product page?

On the single product page I would like to create a container that shows the shipping method and price (for example, under the 'add to cart' button). In the administration panel I have set flat rate ...
0 votes
2 answers
13 views

Special Price From Date attribute not showing

On the product edit page, if I click on the Advanced pricing link, the modal/slide-over panel comes in to show additional (editable) details. However... the special_from_date and special_to_date are ...
  • 111
0 votes
0 answers
9 views

How to Read xlsx file with multiple worksheets in magento2

Hi i need to read the xlsx file with multiple worksheets. I checked inside vendor there is a code only for single csv. Is there any way we can read xlsx with multiple worksheets.
  • 36
0 votes
0 answers
9 views

Critical CSS blocks interactivity and CLS problem

Preconditions (*) Magento 2.4.3-p1 Steps to reproduce (*) With Luma active on Magento 2.4.3-p1, enable Critical CSS: bin/magento config:set dev/css/use_css_critical_path 1 Issues: Test with lighthouse ...
0 votes
0 answers
5 views

Modules CSS loads after styles-m but before styles-l

I have a module that loads one css file. I want to overwrite a few things so I added a _module.less file in my child theme for this module. I added & when (@media-common = true) { in _module.less ...
0 votes
0 answers
45 views

PHP's phar extension is missing. magento2.4.5

I have been installing Magento2.4.5 getting below error while executing composer install Can anyone suggest me how to resolve this. PHP's phar extension is missing. Composer requires it to run. ...
0 votes
1 answer
34 views

Add product to cart programatically for Magento 2.4.x

I am creating a controller in custom module which will grab the product id from url and add that product to cart. I see a number of tutorials using Magento\Checkout\Model\Cart And for controller ...
0 votes
1 answer
24 views

Change label of State/Province in magento 2

I want to change the label of State/Province to just State only in the checkout field in magento 2. I am trying to update it via i18n and insert it in my custom module. But the label is not updated.
0 votes
0 answers
22 views

Magento 2.4.5 Checkout Error - Current Customer Does Not Have An Active Cart

I am upgraded the Magento 2 from 2.4.3-p3 to 2.4.5. Steps followed In Local Instance: Install the fresh Magento 2.4.5 Version Installed the custom implemented module (Disabled some module which faced ...
  • 1,608
0 votes
0 answers
14 views

Magento EE/ Commerce 2.3.3 and We don't want to renew membership for this year

We don't want to renew membership for this year. Are we able to use the entire feature of the version we have( Magento commerce 2.3.3) as we are not upgrading further to any latest versions.
0 votes
0 answers
13 views

SQL command always showing in processlist

I am facing a strange issue with Magento 2.4.3. Following SQL query always showing in process list:- "SELECT e.entity_id, e.*, IF(at_status.value_id > 0, at_status.value, at_status_default....
0 votes
0 answers
10 views

Magento 2 How to add input datetime in dynamic rows to the custom product attribute

I want to create dynamic rows to setup prices schedule. I created dynamic rows following this forum. Magento2 How to add row pattern/dynamic rows to the custom product attribute And I try to add ...
  • 36
0 votes
0 answers
10 views

Magento API works without authentication token

I created Magento API with "self" resource id but it works without an authentication token. I have also tried Magento built-in API which update product in Magento "https://web-url/rest/...
1 vote
0 answers
11 views

How to remove Transaction Id from Sales Order in Magento 2.4.0?

How can I remove the transaction id from the sales order? I have two transaction ids in the Transaction section. I want to remove the latest one. Please check the attached screenshot. is there any ...
0 votes
0 answers
6 views

Magento Redirects back to cart after providing payment method

I ran into the problem that my Magento is currently redirecting me back to the shopping cart after I select the payment method. Tried a lot of things but nothing seems to help. Anybody can help me out?...
  • 1
0 votes
0 answers
12 views

Catalog Search index process unknown error: {"error":{"root_cause"

None of the posts already present in the site as answers didn't help me fix the following issue. Please help me get it fixed. Catalog Search index process unknown error: {"error":{"...
1 vote
0 answers
27 views

Update product stock data Progratically

i have a scenario where i am trying to update product data programatically and setting manage stock to no this works great for the product created in the admin. but i have situation here if the ...
  • 1,712
1 vote
1 answer
28 views

Magento 2: Use of map in RequireJs-config

Is anyone know the use of this 'custom' & when we need to use that? var config = { map: { **'custom':** { '@@@': '@@@', '@@@': 'js/@@@' ...
  • 1,022
1 vote
0 answers
19 views

Magento2 REST API/GraphQl for Multiple Shipping

I'm Creating PWA Website and I don't find any API for multi shipping, I have checked Grapql on Magento's doc https://devdocs.magento.com/guides/v2.4/graphql/mutations/set-shipping-address.html#...
  • 7,386
1 vote
0 answers
17 views

Change the Product List Widget from Slider to Flat Display on Magento 2

My magento 2 is using free theme Bizkick from HiddenTechies. On the front-page the product list (Featured product, New Products etc) are listed as a slider. As diagram. is that possible in Magento to ...
1 vote
1 answer
25 views

I installed Breeze theme on magento 2.3.2

I installed "Breeze blank" theme on magento 2.3.2 through composer but I can't find it under magento/app/design/frontend/(theme) or /magento/app/code The theme is installed and is being used ...
0 votes
0 answers
9 views

Why do configurable_product_options must contain custom attribute data?

I'm POSTing configurable products via REST API, meaning if I have a t-shirt in 3 sizes and there's a custom "size" attribute I need to do 4 POST requests: 3 virtual ones for "S", &...
0 votes
1 answer
24 views

Magento 2.4 add column to admin grid

When I add new grid column I got an error says: Something went wrong with processing the default view and we have restored the filter to its original state. Here is my ui component form code: <...
0 votes
0 answers
5 views

Magento 2.4: PayPal NVP gateway errors: The totals of the cart item amounts do not match order amounts

I am getting this error on paypal : PayPal NVP gateway errors: The totals of the cart item amounts do not match order amounts (#10413: Transaction refused because of an invalid argument. See ...
  • 161
0 votes
0 answers
16 views

Add to cart is slow. After a bunch of products added to cart

I have create an custom api to add product into cart which is working fine. FYI: I am using Amasty_rule plugin which have 11 active rules. Magento version 2.4.3 Here is the code which I am using to ...
1 vote
3 answers
101 views
+50

How to add <picture> around the fotorama__img on the productpage - Magento 2.4

We would like to add a <picture> </picture> element around the main image with class fotorama__img on the productpage. How can we achieve that?
  • 1,504
0 votes
0 answers
9 views

Magento 2.4.5: Uncaught ReferenceError: affirm is not defined

I got the error from js file in checkout page. The error was thrown from the below lines affirm.ui.ready(function(){affirm.checkout(JSON.parse(response)) Here how to declare the affirm.