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
0
votes
2answers
3k views

Magento2 Installation error - Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' [closed]

I have been trying to install the Magento 2 framework ahead of the upcoming webinar but I have been getting errors. Has anyone been able to install via CLI or the web UI? Here is the error: Parse ...
1
vote
1answer
1k views

Magento2 Dynamic System->Configuration Comments

In Magento 1.x you could have dynamic comments on system->configuration fields by declaring your field in system.xml like this: <field_code_here translate="label"> <label>Label ...
3
votes
1answer
9k views

How to get URL rewrite Target Path programmatically

I need to get programmatically the "Target Path" field that I have set in the Magento 1.8 Admin Panel, using Catalog -> URL rewrite management. How do I get it?
0
votes
1answer
238 views

Magento2: So close, but Admin won't run

Magento2 has installed successfully. At least IT says so. Calling the localhost domain launches the website properly and everything there looks good. However, when I run localhost/admin I get a 404. ...
2
votes
2answers
715 views

Error when using magento2 /setup [closed]

i downloaded magento 2 in github:https://github.com/magento/magento2. when i run setup, it's give me a message: Whoops, it looks like setup tool dependencies are not installed. Please run '...
5
votes
2answers
3k views

Magento 2 composer install

Anybody do a successful install of magento 2 only via composer ? I found a nice article here : http://magenticians.com/installing-magento-2-composer but sadly it's outdated. I tried it and I get ...
1
vote
2answers
6k views

Magento 2 installation display blank page [closed]

step 1-> magento2 download from https://github.com/magento/magento2 version 0.1.0-alpha101all step 2-> install composer globally using composer windows installer. step 3-> run composer install ...
7
votes
4answers
4k views

Magento2 install error iteration

After successfully running composer install under the setup directory and then calling 127.0.0.1:8080/setup in my browser, the Magento Installer runs and I am able to successfully complete the first ...
1
vote
1answer
4k views

Errors installing Magento2 [closed]

I'm getting the following error when trying to run the Magento2 installer on my dev host (apache running on :8080 It's a fresh clone of the dev alpha rev 99. Oddly, I installed an earlier rev (...
94
votes
11answers
25k views

How can I bootstrap Magento 2 in a test.php script?

In magento 1 I could create a file where I only needed to instantiate the Mage_Core_Model_App class and then I could add my "dirty" code for test purposes. Something like this test.php: <?php //...
7
votes
2answers
3k views

Magento 2 javascript text translations

[EDIT] This is outdated. The translation is not done anymore as described below [/EDIT] In Magento 1 the translatable texts needed in javascript were added in the jstranslate.xml file in the etc ...
21
votes
4answers
18k views

Why aren't Magento developers using Zend Framework 2 for Magento 2?

Magento will continue to mostly use the original Zend Framework (version 1) for Magento 2 (source: Magento 2 and Zend Framework 2 ) Seeing as how Magento 2 will not be backwards compatible with ...
5
votes
2answers
5k views

Admin roles role_type table column

In the admin_role table there is a column role_type that can have 2 values: 'G' - Mage_Admin_Model_Acl::ROLE_TYPE_GROUP 'U' - Mage_Admin_Model_Acl::ROLE_TYPE_USER By their names I jump do the ...
3
votes
1answer
1k views

Unable to Add widget for New products in Hompage Using Magento 2 release alpha96 [closed]

Anybody can guide me on how to display products in homepage in Magento 2? In Magento 2 Backend, Content->Pages->Home Page->Content, I am trying to insert Widget for New products on homepage but I am ...
9
votes
3answers
573 views

What (type of) classes are generated in Magento 2?

In Magento 2 there are a set of classes that are generated automatically and stored in var/generation and they are used in the core code. While trying to create a custom module by replicating one of ...
2
votes
1answer
2k views

Magento2 Installation Parse error unexpected T_OBJECT_OPERATOR

I tried installing Magento2 today to try it out. I ftp'd the zipped codebase from github to my server and unpacked it, but when I try to run the installer I get the below error. Parse error: ...
13
votes
2answers
2k views

Magento 2 product list sorting [closed]

I see that in Magento 2 something changed in the way the page behaves when sorting a product list page or when the number of products visible per page is changed. In Magento 1 there were parameters ...
2
votes
3answers
2k views

How to disable Product Image Popup

In my product detail page, My product image can be Zoom/in and Popup(large image). I only want product image to be "zoom/in" option. How can I disable the popup image ?
3
votes
1answer
392 views

Magento 2 schema and pre-schema

I see that in Magento 2 all the xml (config, system, layout files, ...) files have a xsd associated for validation. This seams nice. Now you know what you are allowed to put in each file. But I see ...
9
votes
2answers
2k views

Magento 2 instantiating classes through object manager factory

In magento 2 the classes are instantiated using an object manager factory: \Magento\Framework\ObjectManager\Factory\Factory::create(). So far so goo. But there is something that I don't understand ...
45
votes
2answers
5k views

Magento Event Observers: Singleton versus Model

So Magento offers 2 ways of declaring an observer. Singleton and Model (new instance) by specifying the <type> tag in Magento 1.x and by specifying the shared attribute in Magento 2. Magento 1 ...
2
votes
1answer
2k views

How do I add a css file to the head block in Magento 2 [closed]

I'm building a Magento 2 module for learning purposes. I'm trying to add a css file to all configurable product pages but I'm failing miserably. Here is what I tried. In app/code/Namespace/Module/...
5
votes
3answers
4k views

Magento 2 and Zend Framework 2

Since Magento is planning on using Zend Framework 2, does that mean that all the current extensions that utilize ZF1 are going to break? From what I know about ZF2 and ZF1 is that they are very ...
19
votes
2answers
902 views

Magento 2 DI best practices

Let's say I'm building a Magento 2 extension that does....well...not important. Let's say it does super awesome stuff. But I want to make sure that this is build using the proper standards so other ...
41
votes
3answers
13k views

What is the difference between type and virtualType

In the di.xml that comes with Magento2 there is a node type and a node virtualType. My questions is what is this virtualType and in what case should it be used instead of type? In some places it ...
9
votes
3answers
947 views

Does interception in magento2 replace observers in magento1?

Is interception intended to be the preferred method when dealing with changing the behavior of an original method in Magento2 as observers was in magento1? https://wiki.magento.com/display/MAGE2DOC/...
3
votes
1answer
1k views

How to return store admin variables in magento2

how simple would it be to do as in magento1 Mage::getStoreConfig('general/store_information/name')
10
votes
2answers
15k 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
8k 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');
7
votes
1answer
11k 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\...
11
votes
4answers
6k 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
390 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
325 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 ...
28
votes
9answers
44k 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\...
3
votes
4answers
20k 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
533 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 ...
44
votes
13answers
99k 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 ...
26
votes
5answers
21k 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
612 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
604 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
130 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 ...