Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

Filter by
Sorted by
Tagged with
7
votes
3answers
6k views

Creating new theme, Copy Magento 2 luma theme

I have created a new magento 2 theme by copying luma theme. The issue I have is though I have created the theme by coping luma including all directories and files including layout, css, less, js, ...
2
votes
0answers
355 views

Magento 2.1 Customers Address Book Not Displayed Properly

Newly installed Magento 2.1 does not display customers address book properly both in frontend customer/address and backend customer information > customer view. The data is stored and displayed ...
1
vote
0answers
596 views

Uncaught ReferenceError: signals is not defined

Hi I am adding a js file to get a push slide in menu so I can change the country which is working here http://kaiel.fr/shopnew/kaielf.html But in magento 2.1 http://kaiel.fr/shopnew/ it does not work....
0
votes
1answer
18 views

Menu link in adminhtml, ::before pseudoelement before my link [duplicate]

As you can see from the image, recently a new ::before pseudoelement started appearing near my module link in the admin and I cannot find out where it is being pulled from. Inspect element: The ...
5
votes
4answers
2k 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 ...
16
votes
7answers
17k views

Add header and footer in checkout page Magento2

By default Magento 2 don't provide HEADER and FOOTER in CHECK OUT page. So I checked checkout_index_index.xml file on path app/design/frontend/package_name/theme_name/Magento_Checkout/layout/...
2
votes
2answers
4k views

How to print array in magento 2? [duplicate]

How can i print array values in magento 2? I am using below code to print log in magento 2 but it will only print string values. \Magento\Framework\App\ObjectManager::getInstance() ->get('Psr\...
0
votes
0answers
321 views

No Static Content on Category Pages in Magento 2.1

I am using Magento 2.1 CE in production mode. When going to a category in the backend and either adding a description and/or a static block then saving it, the changes are not seen on the front end. ...
4
votes
1answer
2k views

magento 2 - How to use composer for extension

Im developing an extension and would want to use some composer extensions in it. So I have a composer.json file in app/code/Vendor/Extension/ path. Do I simply run composer update in the extension ...
6
votes
1answer
7k views

Ajax add to cart button in product detail page magento 2

I have check online demo of Magento 2 http://magento2-demo.nexcess.net/fusion-backpack.htmlwhen we click on add to cart it add product via AJAX but i have Set up demo on localhost it don't to add ...
4
votes
4answers
2k views

Magento 2 : How can I use LESS variables in Modules' LESS files? (not theme)

I try to include specific LESS variables in my Modules' LESS stylesheet. Note: my module, not my theme. For example have a file called app/code/Vendor/Module/view/frontend/web/css/stylesheet.less. ...
0
votes
1answer
252 views

Issues in installing data migration tool to migrate from Magento 1.9.0.1 to Magento 2.1.0

I have installed Magento 2.1.0, I tried Install the Data Migration Tool , I tried Install the tool from GitHub by using composer config repositories.data-migration-tool git https://github.com/...
6
votes
3answers
976 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. ...
1
vote
1answer
1k views

M2: Custom form validation

I have an ajax form I need to call before allowing user to continue to add a product to cart. I have the form popping up but I also need to validate the contents before it submits. However the ...
2
votes
1answer
2k views

How to get same products from rest api as are visible on frontend?

We would like to use REST API for mobile application where should be the same products as we have on frontend. There are this conditions (params) website ID (or store ID) we have multisite show ...
4
votes
1answer
600 views

Magento 2.0 vs Magento 2.1: changes in the grid UI component

I upgraded from 2.0 to 2.1 recently and I had to refactor my custom UI component grid to get it working properly. However, I didn't keep track how what I've done so I can't answer my own question. I ...
0
votes
1answer
1k views

Setup Stuck on 99% - Clearing Cache

On setting up a new Magento instance (2.1), the process is getting stuck it seams at 99%, on Caches Clearing: Is this normal? How long should this process take and is there any task after this ...
1
vote
0answers
822 views

Magento2- In Checkout Page Not Display Payment Instruction

JS File path : Test\Demo\view\frontend\web\js\view\payment\method-renderer\Webpay-method.js define( [ 'jquery', 'Magento_Checkout/js/view/payment/default', 'Magento_Checkout/js/action/...
18
votes
2answers
31k views

How to Create Custom Form in Magento2 Frontend?

I want to create a custom form in frontend and using this form customer can get an appointment. In my form, I have 4 Fields. First Name (text filed) Last Name (text filed) Phone No. (numeric field) ...
9
votes
2answers
1k views

Where to create custom extensions for Magento2?

Some articles encourage to create custom extensions in app/code and some other encourage to create them under vendor. Are both these two methods fine? What if I want to override a module in vendor? ...
0
votes
0answers
239 views

How to override 'vendor/magento/module-catalog/etc/product_types.xml' in Magento 2.1?

In Magento 2.0 if you put the file vendor/magento/module-catalog/etc/product_types.xml inside your module's etc folder, it'll be overridden. But this same behaviour is not working in Magento 2.1. So ...
17
votes
6answers
22k views

Magento 2 Installation Fatal Error - Cannot instantiate interface

I have installed a fresh Magento 2.1 over the command line and always get the same fatal error when trying to access the frontend or backend. Fatal error: Uncaught Error: Cannot instantiate ...
1
vote
0answers
98 views

Load uiComponent (grid) over ajax request

Is there an easy way to call an uiComponent into an ajax response? I created the Controller which returns ResultLayout: public function execute() { $this->initCurrentCustomer(); $...
4
votes
4answers
3k views

How to remove “Help us keep magento healthy” in Magento 2.1

Can anybody tell me where they moved this? Changed the footer.phtml in /html/vendor/magento/module-theme/view/frontend/templates/html But it is still being shown, so it must be somewhere else.
3
votes
3answers
2k views

Change Header Minicart container effect from dropdown to slide(right to left) in magento2

After added any product to cart we can see that item in minicart header. So when we click on minicart then it's show product with dropdown effect. I want to change this dropdown effect to slider from ...
5
votes
1answer
2k views

How to use knockout.js in Magento2

Yesterday I was working with header minicart because I need to add some CMS block and some text but when I open app/design/frontend/package_name/theme_name/Magento_Checkout/templates/cart/minicart....
2
votes
1answer
2k views

Magento 2 Redirect to 3rd party payment gateway with post data

In Magento 1 we define the getOrderPlaceRedirectUrl in the model which extends Mage_Payment_Model_Method_Abstract and redirect to a particular controller after checkout submit. Then from the ...
4
votes
2answers
22k views

Get product collection by category id on phtml file magento2 [duplicate]

I want to get product collection by category id on phtml file. For that I used below code but it's not working. $collection = $this->productFactory->create() ->getCollection() ->...
11
votes
3answers
11k views

JS errors Magento 2

I've been trying to finish something and publish it online this entire weekend, it's some how broken and I have no idea why so I hope someone can help me out. I've tried adding custom jQuery into my ...
3
votes
1answer
11k views

Magento 2 simple form submit

To understand the new magento 2 design structure i'm trying to create a simple frontend form submitting module. In it i'm submitting a number in an input box and i want to multiply it by 2 and display ...
1
vote
1answer
354 views

Testing Block output

I made a customization to the TopMenu and want to run an integration test. I have the following code: /** * Check if menu items have the right URL */ public function testUrlInMenu() { \Magento\...
1
vote
1answer
667 views

Magento 2 admin grids are not loading because of getting error in knockout.js

I have installed new Magento 2.1 its installed successfully. Frontend is working fine, backend also loading able able to login. Whenever i going to Admin->Product->Catalog grid is not loading ...
1
vote
0answers
428 views

Magento 2.1 Mini cart is not working knockout.js error

2.0.7 was working fine with all browsers but after upgrade to 2.1 the store is not working, bought items not adding to the cart so customer cannot checkout. even with fresh installation the cart is ...
2
votes
4answers
1k views

Magento 2.1.0 on Ubuntu 16.04 not running on PHP 7.0.4

I just tried to run Magento-CE-2.1.0. I use Ubuntu 16.04 and the php version is 7.0.4-7ubuntu2. But I got this error when I wanted to run Magento: 'Magento supports PHP 5.6, 7.0.2, and 7.0.6 or ...
4
votes
4answers
2k views

Add multiple products to cart programatically - magento 2.1

I have created a custom module and add multiple products in cart on Ajax request. I follow a default Magento code for adding product to cart. But every time Magento throws below error. Cart %1 does ...
0
votes
2answers
339 views

Magento 1.7 to Magento 2.1 Database

We are discussing the idea of upgrading from 1.7 to Magento 2.1. Our current system is PHP Version 5.3.26 MySQL Version 5.5.31-30.3-log My preferred method would be to create a sub folder with ...
0
votes
1answer
150 views

custom attribute display frontend error in Magento 2.1

i have created custom attribute for ex. color in magento 2.1 but i can't able to display it in product view page frontend. so please guide me how to achieve this in the new version. getAttributeText('...
1
vote
5answers
2k views

Getting Error in Magento 2.1 add to Product in Admin

I have created a new product in Magento 2.1 admin. I am getting the error shown below: Warning: Illegal string offset 'is_in_stock' in [...]/vendor/magento/module-catalog-inventory/Ui/DataProvider/...
5
votes
1answer
2k views

Something went wrong with the subscription alert in Magento2

I have a clean Magento 2.1.0 installation running on my server, and for some reason the newsletter subscription box keeps displaying the following error: "Something went wrong with the subscription." ...
7
votes
3answers
2k views

Magento 2.1 admin logged in issue in session

If I logged in admin side by chrome.then if when I logged-in successfully in Mozilla for same magento instance in magento2.1 then I automatically log out in chrome and throw message Someone logged ...
1
vote
1answer
2k views

Console Command: Area code must be set before starting a session

I am trying to get a list of orders from the OrderRepository (Magento 2.1) via a console command and am using code as follows... ... public function __construct( \Magento\Framework\Model\Context ...
3
votes
3answers
2k views

Magento 2.1 Theme option not available in Store > Configuration > General > Design

I installed Magento 2.1 successfully.But When I go Store > Configuration > Design,theme option not avaiable.I tried pub deploy and flush cache and reindex command but theme option not available in ...
2
votes
1answer
5k views

Magento 2 “Recoverable Error: Argument 2 passed” when trying to define model in constructor

I am trying to define 2 models inside controller constructor to use it later inside execute function. This is my code: namespace Company\Modul\Controller\Adminhtml\Index; use Magento\Backend\App\...
0
votes
0answers
1k views

extending Adminhtml Product edit page in Magento 2

In Previous Magento released versions (2.0.*) I have successfully extended and it's working fine. When comes to Magento 2.1.0 the same functionality not working. I have tried below code. If I went to ...
0
votes
1answer
1k views

Magento 2.1 Web setup wizard missing in backend

Running Ubuntu 16,04, Nginx, Mariadb, phpmyadmin, redis and Magento 2.1 GA Why am I missing web setup wizard in backend?
0
votes
1answer
916 views

How to display some module (<block>) at a particular page (main)

Problem There is properly working custom module (as far as I'm concerned), that outputs map. I need to display it only at main page at the content container. Now it outputs at every page content ...
15
votes
1answer
5k views

The configuration parameter “componentType” is a required for “advanced_pricing_button” component. | Upgrade Magento 2.0.7 => 2.1.0

After a lot of issues I managed to update Magento 2.0.7 => Magento 2.1.0 After checking the upgrade I see 2 issues: 1. The frontend is not displaying any products. 2. When I want to edit the products ...
1
vote
2answers
274 views

Custom Attribute no longer available in the TopMenu since Magento 2.1

In a Module I configured my custom attribute redirect_url for categories to be included in the collection using catalog_attributes.xml This seems to no longer work in Magento 2.1 My module defines ...
0
votes
1answer
205 views

Call to undefined method Mock_AbstractDb_87c49d8f::setStoreId() on getCollection() in Test

I am trying to create a test to see if What is the equivalent of the config node category/collection/attributes in Magento 2 to add an attribute to the category collection works. I use a ...
23
votes
1answer
5k views

Magento 2: what are the Interceptors file in var/generation?

So I noticed some Interceptor.php files in var/generation I know that this folder contains generated classes created on the fly for the following: Factories Proxies Plugins I assume that ...