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
6 views

Magento 2 Guidelines - Values passed to observers must not be modified?

Just learned about this entry in the magento coding standards: https://developer.adobe.com/commerce/php/coding-standards/technical-guidelines/#14-events . All values (including objects) passed to an ...
astragt's user avatar
  • 129
0 votes
0 answers
11 views

Magento 2 stripe module upgrade deployment on Production environment throw in Stripe error

I am deploying my new stripe module upgrade changes in a Magento production environment. In the development environment, it is deployed successfully and running well. But in a production environment ...
Sanaullah Ahmad's user avatar
0 votes
1 answer
27 views

How can i fix the display data

It's show the same row data but database it not duplicate where should code i fix it? <?xml version="1.0" encoding="UTF-8"?><listing xmlns:xsi="http://www.w3.org/2001/...
Bu By's user avatar
  • 3
0 votes
0 answers
22 views

Need to build a basic admin form, instead getting an infinite spinner

Objective is to create a custom admin page with a form using UI components. I have the custom page working but form UI component is not loading and showing an infinite spinner. One more requirement is ...
Timik's user avatar
  • 478
0 votes
0 answers
11 views

Magento2 Order status is getting changed even after sales_order_creditmemo_save_after

Magento2 I am facing issue where my order status is getting changed to Pending even after I set the order status in this event sales_order_creditmemo_save_after How should I solve this? Any idea.
Arjun's user avatar
  • 3,556
0 votes
0 answers
22 views

Magento 2 Admin order's shipping method update event or plugin?

I want to do some functionality on update order's shipping method in admin so how it is possible. is there any event or plugin or other ?
SURENDER SINGH's user avatar
0 votes
1 answer
17 views

Attempts to reindex catalog_product_price throws SQLSTATE[42000]: Syntax error or access violation: 1064 on Magento 2

Recently I've been unable to reindex Product Price (catalog_product_price) on Magento 2.4.6. When I run 'php bin/magento indexer:reindex catalog_product_price' from the CLI, I get the following output:...
mcpacific's user avatar
0 votes
0 answers
9 views

The order was canceled but the table list shows pending payment on magento2

Customer canceled order has status update only in details page and items. but at table list is still pending.
hau's user avatar
  • 41
0 votes
0 answers
24 views

I see default apache page and not Luma site

After installing Magento2 I see the default page of Apache 2 and not that of Luma site. What could be the problem? Thanks so much for the support
Antonella Laghezza's user avatar
0 votes
0 answers
12 views

Where is this.address() defined in vendor/magento/module-checkout/view/frontend/web/js/view/shipping-address/address-renderer/default.js?

I try to figure out where this.address() is defined in vendor/magento/module-checkout/view/frontend/web/js/view/shipping-address/address-renderer/default.js ? /** * Copyright © Magento, Inc. All ...
Black's user avatar
  • 3,150
0 votes
0 answers
12 views

How to identify which way the product qty was updated in magento 2

I have 3 ways to update the product quantity. using product edit page in magento admin using magento API Using magento csv import I wanted to know while updating the qty of a product which method (...
shankar boss's user avatar
  • 1,439
0 votes
0 answers
12 views

How to change of the packingslip pdf file name (Shipment) with the shipping ID generated from admin?

Use di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/...
Shiv Om Mishra's user avatar
0 votes
1 answer
19 views

Magento 2 Event or Plugin after order status update in admin

I want to perform some activity after order status update in magento 2 admin order
SURENDER SINGH's user avatar
1 vote
2 answers
92 views

How to change of the invoice pdf file name with the invoice ID generated from admin?

add in di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/...
Shiv Om Mishra's user avatar
0 votes
0 answers
15 views

Placing Order Without inventory Check

For some orders placing time don't want to check the inventory details is available and qty details but product manage stock is YES
hari prasath's user avatar
0 votes
0 answers
11 views

Magento 2 override shipping file giving error of Invalid template file

We are using Magento 2.3.5 version when we are trying to override file of vendor/magento/module-checkout/view/frontend/templates/cart/shipping.phtml to app/design/frontend/Infortis/base/...
sumeet bajaj's user avatar
  • 1,266
0 votes
0 answers
9 views

Magento 2 Braintree Payment Gateway Issue - Returning to cart after 3DS

We are using the Magento 2.4.5 version, using the Braintree payment method and 3D secure enable Once the customer enters their card details and clicks place order a 3d secure box from their bank ...
sumeet bajaj's user avatar
  • 1,266
0 votes
0 answers
10 views

Magento 2.4.6 search synonyms doesn't work on REST API

I am trying to make use of search synonyms. I have created a synonym group, and added synonyms comma separated, and afterwards ran full re index. http://website/rest/V1/products?searchCriteria[...
Aniruddha Ray's user avatar
1 vote
0 answers
49 views

Magento 2 Add Custom attribute value on customer order graphql

I have created two extensions and it's an add fee on Order Total. Now on adding this fee to Get CustomerOrder Graphql so, we override the default Magento Get CustomerOrder Graphql and it's working. ...
Keval Chauhan's user avatar
0 votes
0 answers
8 views

About elastcisearch memory Xms and Xmx fort Magento 2.4

Can anyone recomend the values for Xmx and Xms, as I have found diferent information in internet about the recomended giga rams. Most time I find that it should be 32gb, So i have this in my jvm....
Francisco Muniz's user avatar
1 vote
1 answer
56 views

Magento 2 Command Not working

Earlier My site was working properly but suddenly it threw the below error. Also, When I tried to run the command it threw the below error. Can anyone give us a solution on How to fix it? and run ...
Keval Chauhan's user avatar
0 votes
4 answers
37 views

Installing Magento 2.3.5 on Ubuntu 22

I'm attempting to install Magento 2.3.5 on Ubuntu 22. However, I'm unable to install Composer version 1, as it's deprecated on Ubuntu 22. Additionally, I've already downloaded the Magento 2.3.5 ...
junaidh's user avatar
  • 49
0 votes
1 answer
49 views

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

For some specific categories we would like to change the default value for Products per Page on Grid Default Value. By default it's set to 24. In our custom theme we create a custom page_layout with ...
JGeer's user avatar
  • 1,385
1 vote
0 answers
22 views

Magento 2: how to get swatch options in custom theme product list on home page?

i have created a custom theme, i listed the products in home page, now i need to show the swatch option. i used this code inside the div of my phtml file, still the option is not visible ` <...
user114408's user avatar
0 votes
0 answers
18 views

Search with - does not give results?

Magento 2.4.6 Searching a SKU like abc123 works ok, but as soon as a "-" is included like abc123-456, it does not find a single product. Why is that? I am using elasticsearch. Can the search ...
user4095519's user avatar
1 vote
0 answers
20 views

Magento2 Get all the status of single order update ( Track of order status history ) block in order details page

My requirement is to have a track of order status update ( irrespective of comments update from admin dashboard ) of single order on details page of admin dashboard. Would like to display as a block ...
user2335404's user avatar
0 votes
0 answers
13 views

Magento2 Order status is getting set to pending when partial refund is done from processing

Magento2 Order status is getting set to pending when partial refund is done from processing This happens only in case of store pickup & not in case of home delivery. Please suggest how to move ...
Arjun's user avatar
  • 3,556
0 votes
1 answer
41 views

Magento 2 Cart Price Rule is not working

This is the first time I created a sales rule on the site, but it doesn't work. I want the shipping cost for a product to be free. I have done the following: Create the price rule in Marketing -> ...
Diego Castro's user avatar
1 vote
1 answer
88 views

Error: Cannot instantiate interface Magento\Catalog\Model\Layer\ContextInterface Magento Plugin

I've created a plugin in Magento 2.4.5 to overwrite Magento\CatalogSearch\Model\Layer\Filter\Price 's method. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
Yaroslav's user avatar
0 votes
1 answer
30 views

magento2 update product stock in MSI programatically [closed]

I'm trying to update product stock programatically in a store with MSI(multi source inventory) enabled. I want to decrease / increase product quantity based on source_code (inventory source code). ...
Dharmesh N Tukadiya's user avatar
0 votes
0 answers
12 views

Image Not Shown Unless Added & Deleted First

I've been working on a module that adds Configurable Child Products to Cart at the Simple Product they are. This all works fine. The part of the module I'm working on now is to get the Child Product ...
Chris Oliver's user avatar
0 votes
0 answers
7 views

Arguments shared between multiple instances of same block

I have created a custom block and tried to insert it multiple times in the same page: <block class="MyCompany\MyModule\Block\Producttabs\CategoryProducts" name="category.products....
zekia's user avatar
  • 620
0 votes
0 answers
20 views

Why does my own payment method not get disabled?

I have created a payment method module in Magento 2.4.4 after a lot of trial and error and I finally have a small working version that works both in the adminhtml and the frontend. The problem I have ...
vkal's user avatar
  • 1
0 votes
0 answers
9 views

How to set required field to not required after changing payment method

Is there a way to change the state of all billing & shipping address fields from required to not required after selecting the payment method, for example, PayPal? I tried to find some info, and ...
Herecomes's user avatar
0 votes
0 answers
7 views

Magento 2 Catalogue Price Rule Calculations & Rounding Issues

I have set up a Catalogue price rule to give 10% off as a percentage of original and have VAT set to 20%. Prices are set as Excluding Tax. I can not find anywhere that explains the calculation ...
Mark B's user avatar
  • 1
0 votes
0 answers
10 views

data-mage-init breaks in cms static blocks - how do i get tabs?

I need a block with tab content, so a client can edit categories when needed. I have been using mage-init but it breaks if you try to edit after the first save. It's these two lines below. Once edited ...
totneschap's user avatar
0 votes
0 answers
8 views

There are no printable documents related to selected orders in Magento 2.4?

Magento 2.4.6 After upgrading 2.3.5 -> 2.4.6 I am getting the There are no printable documents related to selected orders message when I try to print invoices from the order grid. Printing the ...
user4095519's user avatar
0 votes
2 answers
23 views

How can I make the button be black and white with round edges?

Banners have the correct button I want, black with white text and rounded edges The buttons added to the page have a burgundy boarder and blue text Can someone help as I cant find this anywhere in ...
user114366's user avatar
0 votes
0 answers
72 views

Preselect saved categories in Magento UI component

In Manage Categories, I want to add a field called 'category_selector' to select categories and save them to my table child_categories with a column called categories. the code below, displays the ...
user33629's user avatar
0 votes
0 answers
12 views

Added custom field/attribute to magento 2 pageBuilder all content types but the attribute is not displaying on frontend html

I extended magento 2 pageBuilder media content types (image, banner, slide, slider etc..). So if I add any value in that custom field that will be displaying on frontend CMS (home) page correctly but ...
shankar boss's user avatar
  • 1,439
0 votes
0 answers
23 views

how to fix magento runs in the wrong js path

I'm having a problem: my js line is correct but when running, Magento runs incorrectly. Does anyone know how to fix it?
hau's user avatar
  • 41
0 votes
0 answers
15 views

How to toggle custom tab visibility in product view with event observer based on custom attribute's value (custom layout handle)?

There is a custom tab "Ask Question" in a product that has a form (it has a logic for saving data to the database). My task is to create an event observer for the attribute that I have ...
Dramorian's user avatar
0 votes
0 answers
18 views

magento 2 layer navigation by categoryId i'm getting below error

"message": "No record found with %fieldName = %fieldValue", "parameters": { "fieldName": "id", "fieldValue": "0" }, <?php ...
Faisal Khan's user avatar
0 votes
0 answers
75 views
+50

Custom file upload in ui-component form

I am trying to get file upload working in a ui-component admin form. The file input field is coming from a htmlContent block. This is all sitting in a <form xmlns:xsi="http://www.w3.org/2001/...
vandijkstef's user avatar
0 votes
0 answers
28 views

Magento2 catalog search results append some additional product ids

I have a requirement to apply some custom logic in catalog search results and retrieve some additional products in search results if i search for certain text in a global search. I have used ...
bhargav shastri's user avatar
1 vote
1 answer
22 views

Issue with ERP API PUT Request: Unintended Update of `warranty_type`

On Magento 2.4.6: When our ERP executes an API request on the PUT method /all/V1/product/:sku with the following JSON content: { "product": { "custom_attributes": [ { ...
Kallard's user avatar
  • 11
0 votes
1 answer
34 views

Not Display Product Name in the Email template?

module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/...
Thoubik's user avatar
  • 118
0 votes
0 answers
15 views

Skip loading and showing certain images in fotorama.js

Magento 2.4.6 I have a very specific requirement. I want to not load images in the media gallery on the product page, if the image is a placeholder. Do not ask why :-D, its a requirement and can not ...
user4095519's user avatar
0 votes
0 answers
8 views

Magento2.4.5: How to lazy load Jquery and remove unused scripts from Theme Desgin?

I want to optimize my website and remove unused javascript/jquery and also defer or lazy load javascript/jquery for better performance any tools or techniques to achieve this?
Afzel Arshad's user avatar
0 votes
1 answer
22 views

Unable to resolve the source file for

When I run it, the system log shows the message Unable to resolve the source file for, but when I check the path of the js files, Magento runs at the wrong path. Does anyone know how to fix this error?...
hau's user avatar
  • 41

1
2 3 4 5
954