All Questions

41,030 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
30
votes
2answers
2k 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 ...
20
votes
6answers
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 fully new class. In Magento 2, we need to use plugins, but plugins only allow me to modify existing ...
19
votes
1answer
988 views

Magento 1.9 Create new Magento Rest API to get category list

I am very confused about what kind of mistake I am doing to follow these steps provided here at the following link : Create new Magento Rest API to get category list in Magento After doing all these ...
16
votes
1answer
2k views

Warning: call_user_func_array() expects parameter 1 to be a valid callback Magento 2.3

I have installed Smile_Elasticsearch extension.It is working fine with the default mode but when I enabled developer mode it is showing an error. Warning: call_user_func_array() expects parameter 1 ...
16
votes
3answers
3k 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 to this link Usability issues with error/notice/success messages. But do not get ...
15
votes
2answers
1k 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 ...
14
votes
1answer
241 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 ...
13
votes
3answers
947 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 ...
13
votes
1answer
4k 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 described in DevDocs: http://devdocs.magento.com/guides/v2.0/ui-components/ui-secondary-inline.html The main problem is how to override this block of ...
13
votes
2answers
6k 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 ...
12
votes
1answer
703 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. ...
12
votes
2answers
2k views

Magento2: Conditionally replace block template and class the right way

This rather trivial requirement turns out to be quite a pain for us in recent days, as we couldn't find a satisfying existing solution, yet. The Task We are trying to replace certain blocks with a ...
12
votes
1answer
2k 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 ...
12
votes
2answers
256 views

Show Default values option in store switcher in admin product edit page

I am using Magento Enterprise Edition and I am super admin of it. For some admins, I have allowed only a particular store to be accessed. For me, the default values option in the store switcher of the ...
12
votes
1answer
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 ?
12
votes
1answer
1k views

Product List Attribute Filter Query

I have added one filter in Method _getProductCollection() of the class Mage_Catalog_Block_Product_List as follows. protected function _getProductCollection() { ... $this->...
12
votes
2answers
1k 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
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 ...
11
votes
1answer
2k 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 ...
11
votes
2answers
2k 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. ...
11
votes
1answer
3k views

Magento 2.1.1 - Improve security with Content Security Policy

I have a store running fine with the latest version of Magento (currently 2.1.1) and I'm trying to improve security through Content Security Policy on Apache 2.4.7 (Ubuntu 14.04). I had removed all "&...
11
votes
1answer
756 views

How do I correctly configure Magento to support 2 currencies

Currently I have one website/storeview that uses Danish Krones as currency. Now I would like to expand with a new website that uses Euro as currency. This causes some problems as I am trying to ...
10
votes
1answer
256 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 ...
10
votes
2answers
2k views

Magento - 2.2.6 Possible Problems?

Magento was released Magento-2.2.6 version on 18th Sep, 2018. This release includes : 25 critical enhancements to product security, over 150 core code fixes and enhancements, and over 350 community-...
10
votes
0answers
999 views

Magento 2.2.1: Add Custom Upload file attribute in Checkout

I tried to add an Upload file attribute to the Checkout form, I am now able to add a custom field, but still, I am unable to save values to the database - I used add Plugin - added Below code Amit\...
10
votes
1answer
181 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 ...
10
votes
1answer
1k 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
3answers
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....
9
votes
1answer
3k 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 ...
9
votes
2answers
2k views

Grunt theme source files missing when running Grunt exec

I have a theme that extends the Luma theme. I am trying to get Grunt working to do preprocessing. So far, I don't have any changes/additions in my theme at all. I setup my themes.js as follows: ...
9
votes
2answers
3k 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 ...
9
votes
1answer
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 $...
9
votes
1answer
1k 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 ...
9
votes
1answer
876 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
3answers
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 ...
8
votes
1answer
82 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 ...
8
votes
1answer
365 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 ...
8
votes
1answer
825 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
1k 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/...
8
votes
2answers
626 views

Unable to see the actual images in the back end

Magento 1.9.1 Porto theme We had to have our hosting company do a full restore. Now most things work except for when going into the images tab in the Admin panel: it shows the BROWSE FILES and ...
8
votes
1answer
252 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
658 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.
8
votes
1answer
3k views

Error message "Please enter valid date"

I am getting an error message when I use any date field for products or coupons. It tells me to enter a valid date. The dates are valid and there is no range that satisfies the system. Some payment ...
8
votes
1answer
879 views

Please specify the product's required option(s) Custom Option type file

I got only one custom option, which is file type, I tried to add product to cart programmatically like this: $logoSku = 'lg-brnd01'; $productLogo = Mage::getModel('catalog/product')->...
8
votes
0answers
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" ...
8
votes
0answers
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....
8
votes
1answer
5k views

How to Print PICKING or PACKING Slips Before Shipping - Magento 2.0?

We ship large items and we have to configure the shipment on a pallet (or pallets). When we get the order, based on ship to location and carrier chosen, we may send on one pallet, two pallets or ...
8
votes
3answers
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; ...
8
votes
3answers
7k views

How to get Captcha in customer registration form?

Lately, we have been having trouble with spammers on our website, we want to resolve this using a captcha function. I enabled the captcha function in System->Configuration->Customer->Customer-...
8
votes
2answers
953 views

Automatically input gtin number in products

I have over 50,000 products in Magento version 1.9.1.0 and I want to list them on google shopping. My question is, are there any Magento extensions that will automatically generate GTIN numbers for ...

15 30 50 per page
1
2 3 4 5
821