Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

27
votes
0answers
1k views

Magento 2 Adminhtml spreading forms across multiple tabs

I am 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 like ...
12
votes
0answers
6k views

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

Its 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 on ...
11
votes
0answers
783 views

Magento 2 - Use \Magento\Catalog\Block\Adminhtml\Product\Widget\Chooser with multiple selections?

Using this code $chooser = $this->_layout->createBlock('\Magento\Catalog\Block\Adminhtml\Product\Widget\Chooser'); var_dump(get_class_methods($chooser)); $configChooser = [ ...
8
votes
0answers
570 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 ...
8
votes
0answers
198 views

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 ?
7
votes
0answers
218 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 ...
7
votes
0answers
183 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 ...
7
votes
0answers
790 views

merge guest quote with customer quote(if custommer log in) magento 2 rest api

if 2 items in cart if customer login both item should need to add cart , Both quote (before login & after login) merge and create final quote which contain all item of customer quote Refference ...
7
votes
0answers
371 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 ...
7
votes
0answers
938 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 ...
7
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 "...
6
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 ...
6
votes
0answers
848 views

Magento 2 - sorting order of products in a widget block

I created a block and a widget in admin panel to show products that fit some criteria(in a specified category) on home page. When I finished the setting, I found that the sorting order of the ...
6
votes
0answers
1k views

Magento 2 : Validate form fields that are loaded with Knockout on blur-event

I have a form that is generated through a .phtml file, and in this form various fields are loaded with KnockOut (using the uiComponent javascript-object). .phtml: <form action="#" class="form ...
6
votes
0answers
646 views

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="...
5
votes
0answers
238 views

Magento2 Add Customer Group field on checkout register

I want to add Customer Group as Radio Button on checkout page. Customer is save after checkout. Useful link
5
votes
0answers
229 views

Join table for grid Magento 2 not working

I tried create a join select for my grid table in Magento 2, but the problem i always get an empty record for alias that i want to use in my grid app/code/Lime/CustomerBank/etc/di.xml <?xml ...
5
votes
0answers
184 views

Magento 2 USPS API estimated delivery date (standards and commitments api)

How can I add estimate delivery date for USPS shipping method? I am searching over google but no luck, how can I achieve this in Magento 2. I did this in UPS and want the same in USPS.
5
votes
0answers
215 views

Magento 2 The session id is too long

I am running Magento 2.2 on php7.1 and getting the following errors in my var/report and on my error log: > {"0":"Warning: SessionHandler::read(): The session id is too long or contains ...
5
votes
0answers
253 views

How to override a static method in Magento2

Plugin Interceptors and overriding with preference does not work on static methods. Need to override getOptionArray method in Magento\Catalog\Model\Product\Visibility to return a custom visibility ...
5
votes
0answers
645 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 ...
5
votes
0answers
61 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 2 ...
5
votes
0answers
166 views

Add custom input text field into layered navigation without creating product custom attribute

I have successfully extend the _getProductCollection function at \Magento\Catalog\Block\Product\ListProduct to my custom module block, the problem is I need to add text input to layered navigation so ...
5
votes
0answers
394 views

Uncaught Error: Call to a member function setItem() on boolean on product grid: Magento 2

I have a custom module in which I am using the grid to add items in the admin end. The items are getting added properly and everything is working fine. However, I face an issue often whereafter ...
5
votes
0answers
357 views

Magento 2: How to override cacheable=“false” in layout in your own theme

We use a third party extension wich lets us add bundles with specific discounts to product pages. The problem is that they added a default.xml with the following code: <block class="Magedelight\...
5
votes
0answers
149 views

Alternative to Authorize.net Direct Post?

Authorize.net developer support notes that Direct Post Method is deprecated which is replaced with Accept.js. Are there any plans for Magento 2 Community Edition to integrate with Authorize.net ...
5
votes
0answers
106 views

Replicate order summary block Magento 2

I want to add order summary at checkout success page, i need to replicate the existing order summary block and template file whether its from backend or frontend. Can you suggest which block and ...
5
votes
0answers
426 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\...
5
votes
0answers
595 views

Add custom dynamic column in sales order grid Magento 2

This solution shows how to add custom column to sales order grid, but to add a custom column you need to add the column via xml,the problem is i need to read data collection to get available column ...
5
votes
0answers
186 views

How to get custom table values into front-end checkout address section in Magento 2

For custom requirement, we are saving few values in our custom table with customer id and address id. We are trying to display those values in the checkout page address section based customer,address ...
5
votes
0answers
372 views

Magento 2 : How can I add discount to a custom option

I have a product with custom options and a catalog price rule (that applies to a certain customer group). When your in this customer group (group X), you get a discount of 15%. This works for the ...
5
votes
0answers
1k views

Magento2: Adding custom fields on checkout are not associated with the form

I'm trying to add some custom fields on the checkout. I looked around the internet and always I found an example adding some information on shipping address. But what I want is a fieldset independent ...
5
votes
0answers
505 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 ...
5
votes
0answers
309 views

How to override class Virtual Type class

I saw this, but it don't work for me. How to override Virtual Type class in Magento 2 <virtualType name="categoryFilterList" type="Magento\Catalog\Model\Layer\FilterList"> <arguments>...
5
votes
0answers
96 views

Magento 2 Fedex Integration Issue with restricted proxy - “Shipping method unavailable”

I tried integrating the shipping method in my personal laptop and it is working there without any network configuration. But when I'm using different proxy on another PC, I can't get the shipping ...
5
votes
0answers
2k views

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 ...
5
votes
0answers
300 views

how to update product preview image on product page like the functionality on list page , magento2

I created a configurable product, use attribute color and size. There is a setting on attribute color: "Update Product Preview Image -> yes." so that, on list page, when i click the color, the ...
5
votes
0answers
70 views

Magento2 CMSBlock API contains variables. How to replace?

I Have a magento2 EE with a headless implementation. hence I am using the rest/V1/cmsBlock/<id> to fetch the content added by admin (WYSIWYG). Problem: I see the output like : <response>...
5
votes
0answers
2k views

magento 2 Field dependency in ui form

I have created a ui component form. I want to display some fields based on status value. Display other fields only if status is 1. How Can I achieve it? Here is my code <field name="status"> ...
5
votes
0answers
2k views

Magento 2 with nginx throwing 404 error on setup

Can you please help me to solve the same problem.? I'm trying the magento 2 with nginx on my local environment. I'm getting a problem when trying to call my project for installation htttp://...
5
votes
0answers
608 views

Magento 2 : Not getting the product grid in a custom form using UI component

I want to show product grid in admin form using UI component, for that I have added the following code in product_form.xml <fieldset name="assign_products"> <argument name="data" ...
5
votes
0answers
641 views

Magento 2 - Move the afterMethods item (Discount and Gift Card Code) to the Order Summary sidebar

I would like to move the afterMethods xml item which contains the Discount Code and Gift Card code under the billing-step in the module-checkout/view/frontend/web/checkout_index_index.xml so that it ...
5
votes
0answers
833 views

How do “imports” work in a ui-component?

I've seen this customizeNameListeners method in the product add/edit form modifier. Inside it, there is an array that contains a member called imports 'imports' => [ '...
5
votes
0answers
833 views

Magento 2: How to Show Discount Coupon Applied Code Product wise

In Shopping Cart, I have 2 products. When i apply Promo Code it's going to apply on only 1 product as set on Shopping Cart/Promotion Rules. I would like to show discount code on basis of Product (...
5
votes
0answers
894 views

How to extend core UI Component in Magento 2

I've tried to bring Sales -> Shipments grid into my extension. It works fine when I use this in my layout file .xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
5
votes
0answers
431 views

ListProduct class override issue

Why does my ListProduct classnot overriding, I have overridden the Magento/Catalogs Controller and other Blocks...seems like a problem in only this Block class. Where can the possible issue be? ...
5
votes
0answers
774 views

How to make country_id/region_id/region to work in custom admin form?

I need country/region fields in custom form in admin panel. I have following fields: <field name="country_id"> <argument name="data" xsi:type="array"> <item ...
5
votes
0answers
391 views

Paypal Payload for Payment Rest API 2

Can anyone help me for payload of paypal standard we are trying two api's nothing works for us. We tried multiple payloads already but no success in order placement. POST /V1/guest-carts/{cartId}/...
5
votes
0answers
1k views

Magento 2 Separate billing address

If a customer wants to change their billing address they have to untick the option My billing and shipping address are the same, a form then appears for them to fill in. How can I make this unticked ...
5
votes
0answers
526 views

Magento 2.1 how to vault a card

Anyone out there know how to vault a Braintree card without having to create a payment ? I need to be able to allow customers to change their card details on a recurring payment. To do so would ...