Skip to main content

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.

20,904 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
15 votes
6 answers
2k views

Magento 2 How to add Tab Component in admin module

How can I add UI Tab Component in the custom admin module with the help of the below user guide? http://devdocs.magento.com/guides/v2.1/ui_comp_guide/components/ui-tab.html There are not enough ...
Ajay's user avatar
  • 919
15 votes
2 answers
3k 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 ...
LRV's user avatar
  • 185
15 votes
3 answers
9k views

Magento 2: Carrier with such method not found

When I'm on Checkout Page. Sometimes I'm facing the below error. Carrier with such method not found: null, null I have selected by Shipping Address, Not selected any Shipping Method & Clicked on ...
Jackson's user avatar
  • 9,939
13 votes
1 answer
860 views

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

I'm trying to create orders programmatically using the FedEx shipping method. other methods are working fine. when I'm setting the FedEx getting the error like please specify the shipping method. ...
Ramki's user avatar
  • 401
13 votes
2 answers
3k 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. ...
Derek's user avatar
  • 311
13 votes
3 answers
1k 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 ?
Atish Goswami's user avatar
12 votes
3 answers
2k views

SQL query kills entire server

I caught the following query via mysql's SHOW FULL PROCESSLIST; which was eating the whole CPU / RAM on my server (32GB Ram, i7 hexacore CPU) rendering the entire server unusable for more than 3 hours....
koseduhemak's user avatar
12 votes
2 answers
2k 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.
user avatar
11 votes
2 answers
335 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 ...
Justin Rhyne's user avatar
11 votes
1 answer
2k 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 ...
Abid Malik's user avatar
11 votes
1 answer
3k views

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

In Magento2 - We need to update 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 ...
Prathap Madhavan's user avatar
11 votes
3 answers
5k 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 ...
Giel Berkers's user avatar
  • 12.3k
10 votes
1 answer
305 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 ...
Ashna's user avatar
  • 518
9 votes
3 answers
2k views

Magento 2: How to get discount price for each cart rule in quote

I need to get all discounted price from each cart rule which is applied on current quote. I am getting applied rule ids from $quote->getAppliedRuleIds() and I am getting total discounted amount but ...
Max's user avatar
  • 323
9 votes
1 answer
2k 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 $...
rajat kara's user avatar
  • 1,219
9 votes
1 answer
2k 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 ...
Noemi Quezada's user avatar
9 votes
1 answer
1k 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 ...
Gion Koch's user avatar
  • 196
9 votes
3 answers
3k 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 ...
jurgen's user avatar
  • 395
8 votes
1 answer
517 views

Where's the order item custom options labels in the REST API?

I'm trying to retrieve orders from the REST API in Magento Enterprise 2.3.1, and that's easy enough with endpoints like /rest/default/V1/orders, but while I can see the values for custom options of ...
Mike's user avatar
  • 568
8 votes
1 answer
126 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 ...
imtiazau's user avatar
  • 379
8 votes
2 answers
5k views

How to set custom tax price during add to cart in Magento 2

I am adding product to cart using ajax call. Here is my controller code. use Magento\Framework\Controller\ResultFactory; use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\...
Jafar Pinjar's user avatar
  • 1,949
8 votes
1 answer
512 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 ...
Waqar Ali's user avatar
  • 2,349
8 votes
1 answer
2k views

Magento 2.3 V1/Search with sortOrders not working in REST API

Magento 2.3 Search Criteria with REST API, SortOrders not working in V1/Search API. I am trying to fetch Category products using Magento REST API by below request URL. http://127.0.0.1/magento230ee/...
Rakesh Jesadiya's user avatar
8 votes
2 answers
7k views

Magento 2 No such entity with cartid =

I'm experiencing this error on my site quite often: Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with cartId = It's not using multiple stores, so the entity_ids ...
Howliee's user avatar
  • 153
8 votes
1 answer
356 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 ...
Giel Berkers's user avatar
  • 12.3k
8 votes
2 answers
1k views

Magento 2 debug router

Is there some functionality to view all routes same like Symfony(router:debug) which shows us all the available routes(URL) in the current application.
AbdulBasit's user avatar
8 votes
4 answers
5k views

Programmatically update name of category in specific store

I have a magento 2 multi store setup (e.g. stores with the id 1 - 3) and I want to update the name of the category with the entity_id 3. I've tried $cat = $this->_categoryRepository->get(3, 3);...
ochnygosch's user avatar
8 votes
1 answer
2k views

How to create admin grid without db collection in Magento - 2

My requirement is to display a grid of data from a web service with search and sort functionalities. Currently what I am doing is, storing all the data from the web service into a db table and ...
user43415's user avatar
  • 375
8 votes
0 answers
1k views

Magento 2 - sorting order of products in a widget block

I created a block and a widget in the 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 ...
Ricky.C's user avatar
  • 2,182
8 votes
0 answers
1k 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" ...
Vindhuja's user avatar
  • 1,395
8 votes
0 answers
1k views

How to extend core UI Component in Magento 2

I've tried to bring the 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....
0xh8h's user avatar
  • 485
8 votes
3 answers
4k views

Magento 2 create plugin for my module

I have created plugin to add link for every product as below: <?php namespace Vendorname\Modulename\Plugin; class ProductData { protected $urlInterface; protected $scopeConfig; ...
Prashant Valanda's user avatar
8 votes
3 answers
2k views

SSL Installed Checkout and Account Area Still Using HTTP and not HTTPS

I am running magento 2 ver 2.0.7 I have an HTTPS issue. I'm not quite sure why this is happening but in Stores -> Config -> Web. I have my secure base url set to https://mystore.com/ but when I ...
steve's user avatar
  • 81
8 votes
1 answer
3k views

how to load or add js before require js in magento 2

I am trying to override default_head_blocks.xml like below vendor\magento\module-theme\view\frontend\layout\default_head_blocks.xml <?xml version="1.0"?> <!-- /** * Copyright © 2016 Magento....
Uthayaselvan's user avatar
8 votes
1 answer
2k views

How to Enable Maintenance mode for specific store in Multi Website Magento 2

I have multi websites, I set website or store code in server conf that's is $_SERVER Now I have to enable maintenance flag or page only for specific store rest other store should So how to do it ?...
Pradeep Kumar's user avatar
7 votes
1 answer
953 views

Page Builder was rendering for 5 seconds without releasing locks

My products have small descriptions and description attributes. A small description is a Tinymce field and a description is a pagebuilder. When I edit a product, if I open the content section, here ...
mvistas's user avatar
  • 531
7 votes
0 answers
306 views

How can I make admin form field ($form->addField()) use PageBuilder editor?

I'm using Amasty's Landing Pages extension. On the Landing Pages edit form there's a content field that uses the default WYSIWYG editor. I need to make this field use the PageBuilder editor instead. I ...
barrakuda's user avatar
  • 151
7 votes
0 answers
1k views

getting error "PHP Fatal error: Uncaught Zend\Uri\Exception\InvalidUriPartException"

I am using Magento ver. 2.3.2. I am getting following error in error_log after moving the site on new server (AWS Server): PHP Fatal error: Uncaught Zend\Uri\Exception\InvalidUriPartException: ...
Lalit Kaushik's user avatar
7 votes
0 answers
690 views

Running a single MFTF test that is included within a suite

I am trying to only run the test StorefrontVerifySecureURLRedirectCheckout. To run it I am using the following command: vendor/bin/mftf run:test StorefrontVerifySecureURLRedirectCheckout -k (I have to ...
Daniel's user avatar
  • 2,239
7 votes
0 answers
954 views

How to pass a attribute code dynamically in extension_attributes.xml

How to pass a attribute code dynamically in extension_attributes.xml or how to save a custom field value in db in checkout page without extension_attributes extension_attributes.xml <?xml ...
Divya Sekar's user avatar
  • 1,495
7 votes
1 answer
5k views

Reference to undeclared plugin with name 'stockedProductsFilterPlugin' warning in di compile magento 2.3.2

I have recently upgraded my site from Magento 2.2.6 to Magento 2.3.2. During each di compilation it shows a warning like main.INFO: Reference to undeclared plugin with name '...
amesh's user avatar
  • 561
7 votes
1 answer
1k views

Magento 2.3: Customer ID from Session Returning NULL with Cache Enabled

I'm calling the following helper but getCustomerId is returning NULL when I have cache enabled. If I disable all cache, then I can return the customer's ID. <?php namespace Company\Module\Helper; ...
AJK's user avatar
  • 751
7 votes
1 answer
658 views

Best Redis maxmemory configuration for Magento 2

Right now i'm using Redis as my Magento 2 full page cache and session cache, but sometime this cause my website to get out of memory error, i've fixed the memory_limit for the php and i found out my ...
blue's user avatar
  • 128
7 votes
2 answers
8k views

Magento 2 Import categories using csv

I have around 500+ categories in my csv. I'm trying to import only categories using csv. Can anyone knows how to import only categories in magento 2 using csv?
Ronak's user avatar
  • 797
7 votes
3 answers
14k 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 ...
fudu's user avatar
  • 1,298
7 votes
1 answer
388 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:...
Tiny Dancer's user avatar
7 votes
2 answers
1k 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 ...
Sunny Rahevar's user avatar
7 votes
2 answers
2k views

In Magento 2 , configurable product options disabled after the first selection.How to reset option?

I am using Magento 2, I have some Configurable Products with a lot of variants (in some cases there are 5 attributes, each with several options). Each variant has a Simple Product associated with it, ...
sky's user avatar
  • 1,397
7 votes
2 answers
2k views

How to add file upload option to Magento2 contact form?

I want to give users option to upload a file in magento2 contact form and recieve it in the email as attachment. How to do that? Please guide.
Mounika's user avatar
  • 223
7 votes
2 answers
2k views

How can I pass a URL parameter to admin grid data provider?

I have a custom admin grid, which lists only the orders that contain the product given as a URL parameter. My URL is of form https://www.example.com/admin/mymodule/orders/index/product_id/123/ I ...
Juho Jaakkola's user avatar

1
2 3 4 5
419