Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

2,440 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
21
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 ...
14
votes
1answer
633 views

Magento 2.1 Ui Component form field Token input

I want to add tags in an input field , in a similar fashion as it is done in product form to add catageories - which is show in the image below. This much task I have achieved by adding field ...
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\...
13
votes
4answers
5k views

Magento 2 - Render custom product collection via list.phtml

The product grid of a category page (frontend) is rendered via layout in catalog_category_view.xml. Lets say I have a custom product collection (which I got via ProductRepositoryInterface::...
11
votes
1answer
362 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 ...
10
votes
0answers
835 views

Magento2: Conditionally replace block template and class the right way

This rather trivial requirement turns out 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 ...
8
votes
0answers
806 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
1answer
655 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
0answers
349 views

Magento 2 : What is the Best Way to Implement Favorite Products List for Regular Customer?

The majority of our customers not very tech savvy and have trouble with basic website functions and they need to order same or similar items every week or quickly. What is best way for me to assign ...
8
votes
1answer
3k 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 ...
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
1answer
565 views

Magento 2 Customer address attribute not saved while creating new order from admin

I have created one "Customer address" type of attribute name "Suburb", It successfully created. It shows on Checkout, Customer create(admin) and Create New Order address(Admin) section, While It ...
7
votes
1answer
433 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 ...
7
votes
1answer
1k 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: ...
7
votes
1answer
1k 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....
7
votes
0answers
705 views

Magento 2 getting error There is a problem with creating or binding queue

The error says: report.ERROR: There is a problem with creating or binding queue "inventory_qty_counter_queue" and an exchange "magento". Error: [] [] [2017-01-11 07:28:02] report.ERROR: Sample Data ...
7
votes
1answer
787 views

Magento2 - Layered Navigation how to create multiselect functionality using code

Magento2 version is - 2.1.2 I am creating custom module for layered navigation and i want to create multiselect options functionality for layerednavigation. I have already displayed checkbox over ...
6
votes
1answer
126 views

Magento 2 : Sales Representative Collect Items from catalog

I want functionality or extension where Sales representative collect items from catalog. After collecting all the necessary items, Sales representative send link to individual customer for checkout. ...
6
votes
1answer
617 views

How to add custom customer attribute in custom tab in customer edit page of admin in magento2

I have created custom customer attribute successfully. Which are showing under account information tab of customer edit in admin. I want to show them in my custom tab.
6
votes
1answer
608 views

Magento 2: insert products images alt tag programmatically

I need to insert ATL tag for catalog products images programmatically. Is there any way to do it?
6
votes
1answer
2k views

Mass action in custom grid block Magento 2 not showing

I've created a product grid block following this tutorial, right now i want to add new massAction item but the mass action field won't show up in the toolbar grid, here's the xml file: <?xml ...
6
votes
0answers
821 views

Magento 2 Admin- Invalid data provided for linked products

Getting an error " Invalid data provided for linked products " when adding related products to a product from the admin panel and saving Indexer crons, already setup Magento CLI version is : 2.1....
6
votes
2answers
1k views

Data population in UI form

Im trying to build a custom admin form (using ui components) for a custom entity. We can assume the entity is very simple(e.g. id,name) One thing that i have hard time with, is populating the form ...
6
votes
3answers
1k views

Magento2 admin after login redirect back to admin login?

In my magento2.1 installation when put user name and password and submit, the page redirect back to login page. Cleared cache, re indexed, and deployed the static contents as well. But nothing works. ...
6
votes
1answer
1k views

How can we create a form at front-end using UI component Magento 2

I am looking to create a form at storefront using UI component. When I create xml file in Ui component folder It throwing an error Fatal error: Call to a member function getRequestFieldName() on ...
6
votes
1answer
195 views

Add new options into sorter

In magento 2 project, it provides 3 options by default. Position Product Name Price I need to change these options to sort as, Most Popular Price high to low Price low to high I can add from ...
5
votes
2answers
165 views

Magento 2.1 - On reindex start event

I am looking for an observer event that is triggered when any re-index starts. I want to create an observer that sends out an email whenever an index has been initiated for re-indexing.
5
votes
1answer
668 views

Pass data to child template in cart-items of checkout page

My site is a market place site where vendors(sellers can sell their product). Now i want to customize the to group items in cart by each vendor like this: http://prntscr.com/hmsam6 ...
5
votes
1answer
150 views

Overriding Magento 2 core js function

I need to override the 'loadArea' and 'loadAreaResponseHandler' magento core js functions in the file module-sales/view/adminhtml/web/order/create/scripts.js. I tried to use mixin property. Following ...
5
votes
0answers
543 views

Debugging emails

I have a Magento ver. 2.1.3 setup that is not sending any emails. I'm trying to fix this, but nothing I do seems to work. My server has protections against spam which forces scripts to use smtp. I'...
5
votes
0answers
178 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
799 views

Uncaught Error: Cannot instantiate interface Developer.php

HELP!!! Tried to upgrade Magento from 2.1.7 to 2.1.8 and now I get the error below when I load the store. Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\App\Config\...
5
votes
0answers
474 views

How to apply custom validation in Magento 2 checkout Shipping Address form?

I want to apply some custom validation on shipping address form of Magento 2 Checkout. Normally i do it with JQuery but don't know how to apply it in Magento 2. The validation i want to implement are ...
5
votes
0answers
343 views

Magento 2 : How to set default value in custom option

How to set a default value for a product custom option, so that default value can be visible in product details page as default value in magento 2.
5
votes
1answer
1k views

Product image not zooming in properly when hovering on image at product detail page

In my product page detail when i try to hover the product image there's only white box with low opacity overlaying at the top of my image like this : Usually in Magento 2, when hovering the image it ...
5
votes
0answers
214 views

what populates data in cataloginventory_stock_status table and from which table

I would like to understand what populates data in cataloginventory_stock_status table and from which table the data is transferred in this table. I tried searching in cataloginventory_stock_item but ...
5
votes
1answer
823 views

Magento 2 offline payment method new order status

I've created a new offline payment module using this generator http://cedcommerce.com/magento-2-module-creator/payment-module config.xml .... <order_status>pending_payment</order_status&...
5
votes
0answers
76 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
1answer
934 views

How do you include a custom LESS file inside of a child theme?

I'm starting a new project using Magento 2.1 and I'm a little confused on how LESS compilation works. I created a child theme using a purchased theme as the parent. Inside my child theme, I added ...
5
votes
0answers
1k views

Why is Magento 2 local developer mode site with nginx and xdebug enabled is super slow?

I am getting a 50 second server response time for a category page. When processing, the following is shown in top: 4312 www-data 20 0 488280 146704 41816 R 99.7 1.8 1:11.54 php-fpm7.0 I ...
5
votes
0answers
731 views

How to dynamically load phtml file on a button click in Magento 2

I have a phtml file view.php and its block class View.php. I need to show that phtml on a modal on checkout page and to do that I'm preloading that phtml file using following command <div id="...
5
votes
0answers
801 views

uicomponent form add new button for modal

I have build a custom form using uicomponent I want to add a button and on click want to open a modal with product grid. How can I achieve this using uicomponent form ?
5
votes
1answer
699 views

Add Layered Navigation in custom module - Magento 2.1

I want to add layered navigation block in custom module page and filter custom product collection. How can I achieve this functionality?
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
393 views

How to add new custom option type in Magento 2?

I want to create a new custom option type. When i go to the backend, select a product, go to the section called "Custom Options" i can add a new option, at which point i can select the type of the ...
5
votes
4answers
3k views

Design Configuration page infinite loading

Since updating to Magento 2.1.0 I have not been able to change themes as the theme configuration page does not load. It simply shows the rotating loading icon, there are no errors shown in the console ...
4
votes
0answers
28 views

Where, why and how are we using Data Providers in Magento 2

Explain how to use Data Provider, situations and requirements. Tips and advices will be a plus.
4
votes
1answer
56 views

Add product grid in custom module using ui component

I have followed this solution Magento 2 : How to add a product grid in custom module using ui component? but i am getting this What i am doing wrong can any one help me on this. Edit Controller ...
4
votes
0answers
23 views

Magento2.1 add pagination to my wishlist

Want to add pagination and toolbar to my wishlist page on customer panel. Mean that i want to do something like list.phtml on wishlist page in customer account - customer panel.