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.

Filter by
Sorted by
Tagged with
11
votes
2answers
20k views

How to instantiate a block in magento2

Is there a simple way as in magento1 : $crumbs = Mage::app()->getLayout->getBlock('breadcrumbs');
14
votes
3answers
9k views

How to instantiate a model in magento2?

Is there a way of doing something simple as in magento2? call function like this in magento 2, $model = Mage::getModel('cms/page');
9
votes
1answer
16k views

Magento 2 Fatal Error :: Maximum Functions Nesting Level of '100' reached

I got this error after installing Magento 2 on my local machine over wamp software: Fatal error: Maximum function nesting level of ’100′ reached, aborting! in \magento2\lib\internal\Magento\...
12
votes
4answers
7k views

Magento 2 Helper instance

When I think I got my head wrapped around the DI system from Magento 2 something comes up and un-wraps it. I see in the core code different ways to access a helper. For example in Magento\Catalog\...
4
votes
1answer
2k views

SASS in 1.9 - LESS in 2 - Why?

As I familiarize myself with Magento's implementation of SASS, I recalled this bit from the Magento 2 wiki: https://wiki.magento.com/display/MAGE2DOC/CSS+Preprocessing+in+Magento+2#...
0
votes
2answers
510 views

How to export all the products that are not assigned to any category?

I am looking for a way to export all the products that are not assigned to any category. I know it can be done using XML, but I don't have enough knowledge in XML to create an Action so is there any ...
4
votes
1answer
334 views

In what order are theme files processed?

Please note this question is about the yet-to-be-released Magento 2, which I'm still trying to get to grips with. Each module contributes to each layout handle separately. For example, the default ...
30
votes
9answers
46k views

How to change the Admin session time in Magento?

It is possible that sometimes the time that the admin session is active is too short. How to change the time it takes to auto-logoff the user from the back-end?
1
vote
3answers
1k views

Does Magento2 work only on Linux OS?

I am trying to install Magento2 on my local machine but it is not working properly It throws the following error: Fatal error: Maximum function nesting level of '100' reached, aborting! in \lib\...
4
votes
4answers
21k views

Magento2 - After login redirect to previous page instead of My Account page

Is there a simple way to sovel redirect url customize in Magento? I'v searched some articles mentions "controller". But I have no idea about custom extensions. How to override the base controller ...
2
votes
1answer
541 views

Magento 2 - Custom Currencies

A cursory review of some classes in the Magento 2 codebase seems like the core devs do not intend to change how currencies are architected in the new version. Shouldn't this be reconsidered in light ...
48
votes
15answers
129k views

How do I set Developer Mode in Magento 2

I'm trying to install Magento 2 but I am getting the following error: Error happened during application run. Could not write error message to log. Please use developer mode to see the message. I ...
0
votes
2answers
3k views

Magento2 - Override theme phtml [closed]

How override a default phtml in Magento 2? I want to update/improve the theme "magento_plushe". I add a file on app\design\frontend\magento_plushe\Magento_Theme\html\header.phtml But Magento ignore ...
27
votes
5answers
27k views

Instantiating Helpers in Magento 2

The latest builds of Magento 2 have done away with the Mage class. This mean we've lost the Mage::helper method. Is there a replacement technique (helper factory?) for instantiating helpers in ...
2
votes
1answer
616 views

Magento2 (pre-alpha) theme not showing in Admin [closed]

I created my own theme based on the blank theme but I can not get it to show in Admin <design> <package code="default"> <title>Default</title> <theme ...
10
votes
3answers
2k views

Magento 1 Class Rewrite in Magento 2 with Dependency Injection System

Poking around Magento 2's core code, it looks like the old class rewrite system has been ripped out and replaced with a new dependency injection system. Unfortunately, there's no documentation for ...
3
votes
1answer
621 views

Magento 2 Tests in Magento

We are looking to start using testing for our builds and are looking at the best tools to use. I noticed there is a port of the Magento 2 tests https://github.com/techdivision/...
2
votes
1answer
134 views

Setup Script Not Working Properly

I need to add attribute through a setup script.Attribute properties are working,but the frontend properties are not applied as specified in the setup script.For example, visible_on_front ...
2
votes
3answers
2k views

Magento 2 : Impossible to retreive the customer id of the session in an external script

I created an external script test.php inside Magento 2 at the root. But, I don't succeed to retrieve the customer ID of the session in this external script. The script is as follows: <?php ...
4
votes
3answers
1k views

Should I use Magento 2 pre alpha already for production shops? [closed]

I know, it is alpha software, but at least there are lots of tests and bugfixes which are not in Magento 1. If I write own modules for Magento 2, is the module structure very likely to change? Are ...

1
885 886 887 888
889