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 [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

19
votes
1answer
3k 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 ...
1
vote
2answers
7k views

404 Error. Magento2 admin page not working

Problem Was creating a module. Everything was good, but at some point admin page just stopped working. Can't say on what paticular moment, cause I used bin/magento to flush caches, compile and deploy....
3
votes
1answer
721 views

Magento2 REST auth help needed

I'm hanging on this issues for nearly a week and cannot find any sollution. I'm trying to send a REST request to my new Magento2 store. It worked allready, but then the oauth/token forced ...
8
votes
2answers
3k views

Magento2.1 Category custom attribute dropdown

Steps to reproduce 1. Module UpgradeData.php script contains: $categorySetup->addAttribute(Category::ENTITY, 'roflcopter', [ 'type' => 'int', 'label' =&...
1
vote
2answers
924 views

Upgrading from Magento 2.0.7 to 2.1.0 can no longer run the CLI

While the upgrade process worked fine on my development system, when I attempted to perform the upgrade on the live database I could only get as far as updating composer. After this was successfully ...
0
votes
2answers
826 views

Error When Installing Data Migration Tool

I am getting the following error when trying to install the data migration tool composer require magento/data-migration-tool:2.1 Problem 1 - The requested package magento/data-migration-tool 2.1 ...
1
vote
0answers
139 views

Magento 2.1 - Cancel an order [ configurable product ] issue

I'm so confused about cancelling orders in Magento. I made an issue post in Magento2 github repository explaining my problems. 1st issue : NB : All the products are configurable The test products :...
5
votes
1answer
3k views

How is product data passed from a Block to knockout template?

I'm investigating loading some product images via knockout templates. While looking for an example from the core I saw the minicart has this behaviour but right now I don't fully understand how the ...
3
votes
1answer
1k views

Magento 2.0.7 to 2.1 - Error in Review Order Page - “We cant place the order”

Steps to reproduce Install Magento 2.1 Add any product to cart Hit Go TO Checkout Select Checkout with Paypal Option Login and Hit PayNow Expected result After Hitting PayPal Pay Now button - ...
4
votes
1answer
2k views

magento 2.1 checkout tab “shipping” missing

I have two sites: local under windows/xampp and remote server under linux with magento 2.1 updated. Local site has two tabs at checkout - "Shipping" and "Rewiew and payment" And server site has only ...
8
votes
2answers
1k views

Magento 2: virtual types plugins

I'm confused by Magento 2 documentation regarding plugins: It is first said that: Plugins cannot be used with virtual types But then it is said that: You can specify a class, interface, or ...
0
votes
1answer
2k views

How do I determine why Sitemap isn't being generated?

I have a mostly vanilla instance of Magento 2.1 (previously Magento 2.0.x - where the problem also existed). I have setup the Sitemap file to generate - and it is not doing so. So far, for debugging ...
8
votes
2answers
4k views

Magento2 Need to build Grid with multiple table collection using UI Components

Started on building custom module, it has feature to display the GRID view for which need to join multiple tables in collection and render them on GRID and filters. I have used UI Component from ...
5
votes
1answer
906 views

how to migrate custom code from magento 1.9.2 to magento 2.1

I have created custom modules in Magento 1.9.2,Now I am moving into Magento 2.1. So I need to transfer custom code from Magento 1.9.2 to Magento 2.1. Please help me.
1
vote
1answer
2k views

install Magento 2.1 Error 404 after success installation

Installation from the download Page and the right ownership from there Ubuntu 16.04 PHP 7.0.8 MySQL 5.7.12 Apache 2.4.18 with configured VirtualHost And after installation I see the success page. ...
2
votes
1answer
126 views

Release Download Rest-API broken?

I am trying to download the current magento 2.1.0 release: curl https://MAGEID:TOKEN@www.magentocommerce.com/products/downloads/info/filter/version/2.1.* Output: Magento Community Edition 2.1.0.zip ...
1
vote
1answer
1k views

Upgrade to 2.1 breaks grunt theme fallback?

Since the upgrade to 2.1 I get the following error on grunt exec:mytheme: $ grunt exec:mytheme Running "exec:mytheme" (exec) task Running "clean:mytheme" (clean) task >> 231 paths cleaned. ...
0
votes
1answer
125 views

Why magento2 use UI components in Recent release of magento2,1[product edit page]?

In recent version of magento (Magento2.1), they have totally changed structure of product edit page (Backend). I mean they had replaced with UI components.(While in previous version of magento2.X they ...
4
votes
3answers
1k views

How to change the number of items per row in products grid?

How to modify magento 2 to show 3 items per row in product grid instead of the default 4? I tried to play with /var/www/magento2/vendor/magento/theme-frontend-luma/Magento_Catalog/web/css/source/...
2
votes
2answers
3k views

Adding custom product customizable option in Magento 2.1

I am looking into the way the new custom options works in Magento 2.1, looking through it, their doesn't seem to be an obvious way to inject your own uiComponents into this, since it is all written in ...
2
votes
2answers
1k views

Logging to custom file is not working from module helper

I wanted to wrap the logging functionality in my module helper. I have defined Custom Logger as: File: app/code/MagePsycho/CustomLogger/etc/di.xml <?xml version="1.0"?> <!-- /** * @...
1
vote
1answer
335 views

Can not excute command line in magento 2.1 with xampp php 7.0.6 on window

I have installed magento 2.1.0 with latest xampp window 7.0.6. The strange thing is I can not run command line after successful installation magento 2.1. It happens due to wrong PHP_VERSION_ID (on ...
9
votes
4answers
10k views

Magento 2.1 missing Web Setup Wizard link

Installed fresh Magento 2.1 store (php 7.0.8), with /pub as root web directory from command line and using tar.gz file. Everything seems to be fine, but when I go to admin panel under: System -> Tools ...
1
vote
0answers
302 views

Magento 2.1 EntityManager getList without Collection

From my understanding, the classic Magento Models will be deprecated in favor of the new EntityManager. Loading and Saving Simple Objects is no problem so far, but currently, I'm stuck with loading ...
29
votes
2answers
3k views

Magento 2 - Why is Magento\Checkout\Model\Cart deprecated?

Since Magento 2.1, Cart has a @deprecated tag. Nevertheless, it is still used by Magento itself to store products when shopping. Is the deprecation intended, and if so, and what should we use instead?
3
votes
1answer
1k views

magento 2.1 how to switch to default design “luma” or “blank”?

I have installed custom theme in magento and need to check working of fuctionality inside clean magento. But I couldn't find how to change design. At the image attached you can see "Search Robots" ...
3
votes
0answers
136 views

products became “out of stock” after update from 2.0.7 to 2.1.0

After updating from 2.0.7 to 2.1.0 all the products in catalog became "out of stock". That's how they displaying in my bestseller widget (pic.1). But in admin panel they always have positive ...
2
votes
3answers
1k views

Composer Update Error: magento/product-community-edition 2.1.0 requires php ~5.6.0|7.0.2|~7.0.6

Trying to do an update to Magento 2.1.0 via composer and getting this weird error. Php version is 7.04 running on Ubuntu x64 composer require magento/product-community-edition 2.1.0 --no-update ./...
1
vote
2answers
2k views

Unable to upgrade to Magento 2.1.0 GA via command line

I've already applied the patch MDVA-532. When I run composer update magento/magento-composer-installer I got this error: Your requirements could not be resolved to an installable set of packages....
10
votes
1answer
4k views

How to change theme in Magento 2.1rc3?

I tried both Magento v2.1rc3 and Magento2 develop version from git repository. Problem is that when I tried to change Magento 2 theme, I followed below steps: Open BO -> Stores -> ...
5
votes
2answers
3k views

Magento 2: How to use Grunt properly for CSS changes

I'm trying to figure out the clusterf-ck which is the Magento 2 front-end theming workflow. And I've read and understood all documentation, read all the blogs about it and are up to date on the latest ...
0
votes
2answers
1k views

Magento 2.1 - Just (simply) call categories in PHTML

Before we could do something like this: $_categories = Mage::helper('catalog/category')->getStoreCategories(); foreach($_categories as $_category): echo $_category->getName(); endforeach; ...
4
votes
3answers
934 views

Magento 2: why 2.0 sample data are not compatible with 2.1?

Magento 2.1 Release Candidate 2 was released yesterday: http://devdocs.magento.com/guides/v2.0/release-notes/ReleaseNotes2.1_RC2CE.html And according to the release notes: You cannot update from ...
5
votes
3answers
981 views

How to upgrade magento to 2.1.0-rc1 via composer?

I need to upgrade version of my magento base inside store. All the vendors I'm getting via composer and git contains only my /app/code and /web/composer.json. Current version is 2.0.7 and needed ...
1
vote
1answer
906 views

Magento 2.1-rc1 How to customize Topmenu Html Markup

Like in Magento1, the Topmenu html structure is still pretty hardcoded. To change the html markup of the submenus in 2.0, I added a plugin which altered the getHtml Method of Magento\Theme\Block\Html\...
3
votes
4answers
3k views

Magento 2.0 vs 2.1: what are the major/breaking changes?

As you may be aware, 2.1 RC1 was released last week as well as 2.0.7 yesterday. I know 2.1 implies a lot of changes. My question is, as a developer, which are the changes I should be aware of and ...
0
votes
1answer
693 views

How to upgrade to Magento 2.1 RC 1 when Magento 2 is installed via GitHub

Ok so I'm running Magento 2.0.6 and I have installed it via the GitHub repo. So as I cannot use the backend upgrade tool, when I upgrade Magento 2 I'm used to run the following: git pull origin ...
9
votes
2answers
5k views

Why doesn't Magento 2.1 support PHP 7.0.3 to 7.0.5?

As you may know Magento 2.1.0 is out. According to the release notes, only PHP 7.0.2 AND PHP 7.0.6 are supported Why aren't PHP 7.0.3 / 7.0.4 / 7.0.5 supported ? Edit: 2.1.2 now supports PHP 7.0.4
16
votes
5answers
1k views

What is the preferred structure of a Magento 2 project under VCS?

When I start a new M2 project, the first thing I would do is to install the core via composer: composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition I ...
4
votes
1answer
183 views

Magento2: module dependence

Magento 2.0 has several optional extensions (they are not necessarily to be installed). How can I safely announce the class dependency for these extensions in my __constract method? Please note that ...
-3
votes
1answer
2k views

How to align(stylise) images properly in static block in Magento [closed]

How can I add images side by side not one by one in static block? I created new block like And I got result as But I need like this