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.

15,286 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
40
votes
1answer
1k views

Magento 2 Adminhtml spreading forms across multiple tabs

I'm attempting to create a backend module, wherein on my edit page I use admin-2column-left layout. I want to have a form on each tab, but I do not understand how I can do this. Ideally, I would ...
20
votes
1answer
8k views

Magento 2: Uncaught TypeError: Cannot read property '*' of undefined in (section-config.js:33)

It's duplicate question but I am facing the same issue while adding the product & removing items from the cart page. I have spent almost a day to resolve but no luck hope someone could help me ...
19
votes
2answers
4k views

Magento 2 checkout - add a custom field between shipping address and shipping method

I'm trying to add a custom field in between the shipping address and shipping method sections. And I want values of this field to be stored in both quote and sales_order tables ultimately. This is ...
17
votes
0answers
765 views

Magento Profiling - Why so many EAV: Magento\Eav\Model\Config::getAttribute?

I'm just reviewing the speed of a store and just wondering if anyone knows more about why I have over 100 EAV: Magento\Eav\Model\Config::getAttribute 0.006978 rows within my profiler. It's just I do ...
14
votes
1answer
522 views

Order Status not changed in the sales order grid Magento 2

I am using the fedex shipping method and after generating the shipment,status shows completed in the order view page.But there is still showing 'processing' status in the sales order grid. Please ...
14
votes
2answers
758 views

How to update Shipping rates using Ajax when cart item is deleted on Checkout-Cart page?

My Shipping rates are calculated based on item present in cart and now on deletion of item on Checkout/Cart page, I need to update the Shipping rates. As of now, Remove Item on Checkout/Cart page ...
14
votes
3answers
2k views

Adding a new method to an Abstract Class in Magento 2

Like this thread said: Override abstract class in Magento 2 in Magento 1, I can just create a full new class. In Magento 2, we should use plugins instead, but plugins only allow me to modified ...
13
votes
1answer
310 views

Magento2 : Separate Login and Shipping Methods from Shipping Step

I wanted to Separate login and Shipping methods from Shipping Step in Magento 2 on Checkout page ?
13
votes
1answer
1k views

Magento 2.1 adding new component type problem

I added a new form element type called Company\Module\Data\Form\Element\PdfButton, when it is version EE 2.0.7 and used this element in a custom tab(added by overriding Magento\Catalog\Block\Adminhtml\...
12
votes
1answer
510 views

Magento 2 Show customer attribute in ui_component form

I've created ui_component form. Where I need to show customer details, Same as Customer Edit. But, I can able to show their data from customer_entity table. DataProvider.php public function ...
12
votes
3answers
2k views

Magento 2 - Product price change to 0.00 in product detail page for Non-US Locale

I am facing a very strange issue after the installation of Magento 2.0.4. I have create a product with the price $12 and change the locale from Magento configuration in backend. Below is the ...
11
votes
1answer
668 views

How can i scroll up error message after click on place order magento2

If a user is a small screen device, there are many situations where they will never see an error message. I referred this link Usability issues with error/notice/success messages. But do not get any ...
11
votes
1answer
506 views

Magento2 : Create Custom Condition Field like Catalog Price Rule with my Own values

In Magento 2 Custom form i would like to add condition field like Catalog Price Rule with my custom values. Please find below screen shot. Screen shot: please suggest me how to get.
11
votes
1answer
358 views

Fedex Shipping Weight and Value is not setting while creating order programmatically

I'm trying to create order programmatically using FedEx shipping method.other methods are working fine.when I'm setting the FedEx getting the error like please specify the shipping method. After ...
11
votes
1answer
1k views

What is causing “Mismatch of entities in the document” when running migrate:delta

I have successfully upgraded a magento 1.4.1 database to 1.4.2 and then to 1.6.0. I also successfully was able to migrate:setting and migrate:data from the 1.6.0 database over to my Magento 2.1.2 ...
11
votes
1answer
1k views

Magento 2 - How to add Extra Checkout Step after Review & Payments Section with Place Order Button

I am trying to add an additional checkout step after "review & payments" section. The requirement is to split the payment and review as a separate steps. Once the after the payment method is ...
11
votes
0answers
753 views

Magento2 : Filtering product list by extension attribute

I added a new extension attribute extensionattribute1 to Magento\Catalog\Api\Data\ProductInterface. <attribute code="extensionattribute1" type="string"> <join reference_table="...
11
votes
1answer
866 views

Magento2 Custom Layered Navigation

I want to add a layered navigation block for a custom product collection. Is there a way to do that in Magento2 ?
10
votes
1answer
297 views

Is there an event or plugin spot for when cart rule is no longer valid?

Is there an event or place I can plugin for when a shopping cart price rule is no longer valid (such as when it expires or if you change the quantity of other products where it no longer applies)? I ...
10
votes
1answer
1k views

Frontend form key is being overwritten

I am currently having issues with frontend forms where the form keys are somehow being overwritten and displaying incorrect form keys. I am currently debugging this issue on the customer login form. ...
9
votes
1answer
132 views

Does magento 2 support invoicing based on amount?

I'd like the ability to create (and capture) an invoice based on a dollar amount rather than a quantity of items. We are currently using the endpoint /V1/order/{orderId}/invoice to create invoices ...
9
votes
0answers
79 views

Magento2 Chrome Driver Service error in MTF

I am new to MTF. I have followed the magento2 tutorial based on the following link But When I am running the command vendor/bin/phpunit I am getting the following error - Fatal error: Uncaught ...
9
votes
0answers
1k views

Magento2 : API Stock update

Using Magento 2.2.2, I was trying to add stock updates to a pre-existing setup using the official defined endpoint: rest/V1/products/testsku/stockItems/1 with { "stock_item": { "qty": 1234, ...
9
votes
1answer
92 views

Persistence Lifetime not working in Magento 2

I have configured Persistence Lifetime on Magento 2 but it's not working as expected. I have configured 60 seconds cookie lifetime but it's not affecting the same. I have checked with default Magento ...
9
votes
0answers
438 views

Magento 2 How to add Tab Component in admin module

How can I add UI Tab Component in custom admin module with the help of below user guide ? http://devdocs.magento.com/guides/v2.1/ui_comp_guide/components/ui-tab.html There are not enough information ...
9
votes
1answer
606 views

Magento 2: Creating configurable product using the REST API

In order to create configurable product I need to create configurable product, virtual product and finally connect them. Example of json request got from here: How do I create a configurable product ...
9
votes
0answers
2k views

Magento2 : How to enable inline edit in catalog grid without changing source code?

I try to turn on inline edit in catalog grid as it described in DevDocs: http://devdocs.magento.com/guides/v2.0/ui-components/ui-secondary-inline.html Main problem is how to override this block of ...
9
votes
1answer
633 views

Magento 2 Product video is not displaying in front end with TypeError: window[this.configSource] is undefined

I have successfully uploaded/configured Youtube video for a particular product but the video is not showing on the front-end, even though I marked the video as the 'base,' 'small' and 'thumbnail'. I ...
9
votes
0answers
2k views

Magento 2: Carrier with such method not found

When i'm on Checkout Page. Sometime i'm facing below error. Carrier with such method not found: null, null I have selected by Shipping Address, Not selected any Shipping Method & Clicked on "...
9
votes
1answer
685 views

Override locale configuration file to customize price format

To reliably change the price format(group and decimal symbol) without having to override several classes or write plugins for them, I need to override the en.xml from the Zend library. Changing the ...
9
votes
1answer
2k views

How to add time range picker to adminhtml form in Magento 2?

In Magento 2's devdocs pages there is an example of time range picker. But ,i can not find any examples of how to add it in my backend form for creating/editing of custom model. Have anyone any idea ...
8
votes
1answer
82 views

Magento2 : Subscription status shows pending in advance reporting

I want to enable advanced reporting in Magento2. To do this I go to Store->Configuration->General->Advance Reporting and enable it. It have been 5 days but still subscription status shows pending. ...
8
votes
1answer
158 views

Magento 2 : What is the intended use of the integration test functionality?

I write a lot of integration tests for Magento 2. This helps my local development and they fit nicely in a CI way of working. However, there are some oddities about the integration test suite of ...
8
votes
1answer
818 views

Magento 2.1.9 : Change store based on country

Important: I don't want to buy any GeoIP extension. I have a Magento 2.1.9 website with multi-site and multi-store setup. I have setup website for KSA, UAE, CHINA, EGYPT etc. and under each website ...
8
votes
0answers
1k views

Magento 2 checkout custom field validation

what is the best method to add validation for my custom checkout field which depends on selected shipping method? For e.g. I am adding field to address form in LayoutProcessor where I can specify ...
8
votes
0answers
799 views

Magento 2 - Update quantity and totals of cart page without page reload?

We need to update the main cart on change of quantity by Ajax without click on "Update Cart Button" and without reloading the page. Below my code in this code only update cart subtotal but not updated ...
8
votes
0answers
604 views

Magento 2: How to make custom fee taxable

I want to add a tax on custom fee. tax calculation is perfect and gets tax amount but it's not set in TAX files in quote_address in the database. public function collect( \Magento\Quote\Model\...
8
votes
2answers
1k views

Magento 2 is there a faster way to change product media gallery entries programmatically

I need to do a massive update of product data but what I need to do can't be achieved with product import. In example I need to update media gallery and categories for given products, but the solution ...
8
votes
1answer
772 views

Saving custom payment field data in magento 2 through plugin not working,

I am trying to save my custom field data through plugin but it's not working. Plugin Class namespace Vendor\Module\Model\Checkout; class PaymentInformationManagementPlugin { protected $...
7
votes
0answers
30 views

Apple Pay with magento Getting error

I implemented apple pay in my magento store I create button and now i want onvalidatemerchant but when I call end point I'm getting this error ssl3_read_bytes:tlsv1 alert unkown ca. I am ...
7
votes
0answers
141 views

How to add Widget layout updates field in my custom module admin form Magento 2

I am working on a custom module where I want to add the following field in my admin form in have my admin form developed in using ui_component I want to add this field (in this picture) after a field ...
7
votes
2answers
2k views

Magento 2.2.5: How to validate shipping address

I'm doing Custom Checkout, and here is what i've done til now. The adea is to use validate so when i click on "Next" button, it gonna check if the checkbox in "Terms of Use", if its checked, then it ...
7
votes
1answer
65 views

Change magento 2 controller language response

I have a controller that act as an API endpoint in magento 2, i need to have a response on different language base on parameter that were passed, this controller can access model and etc. for example:...
7
votes
1answer
397 views

Multiple Image browse in custom admin form Magento 2

I have created a custom form in the backend and it is working fine for single image browse. If I select only one image then it is working fine. My requirement is, I want to select multiple images with ...
7
votes
1answer
1k views

Magento 2 create admin config table with custom rows and columns

I want to create admin config with a table to take the data and save in config for that I followed this link. But I also want to create custom rows in that table programmatically and also without the ...
7
votes
0answers
224 views

Magento2 Add to cart button in row with grouped products

In magento2 i want to add "Add to cart" button with qty for every single product of Grouped Product. Is it possible? How? I see that the form is only one. I also need to remove the standard "Add to ...
7
votes
2answers
2k views

Magento 2 Custom Module admin form category tree

How to get Magento 2 category tree in Custom Module admin form. I din't use UI Component I am using Main.php like this i am adding $fieldset->addField( 'label', 'text'...
7
votes
1answer
2k views

Magento 2 how to filter product collection on category page with custom filters

I have one category in system... For example EMT. There are many products assigned to it. Now I want to filter some products for particular customers for that category. I mean only specific products ...
7
votes
1answer
424 views

Generate get parameter in XML layout Admin

I have a custom extension that generate grid using XML, the problem is that I need to add button which will generate link with a get parameter from get request that passed via url, the xml code for ...
7
votes
3answers
1k views

Update prices of all simple products via their configurable product in Magento 2

I'm new to Magento 2, and understand this is a change from Magento 1. Example: I have a T-Shirt as a configurable product with colour options as Simple Products. These Simple Products all require ...