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
3 votes
5 answers
14k views

Magento 2 custom module not loading

I installed a local copy of Magento 2 into my XAMPP and have been getting to know the new structure. I have however run into a problem when trying to setup a basic module. I have created the ...
user avatar
  • 2,022
0 votes
2 answers
4k views

Magento2 Installation: Composer PHP version errors on Windows

I tried to install Magento2 on Windows which runs PHP 5.5.19 and MySQL 5.6.X versions (from xampp package) through Composer, but I received the following errors after running composer install (please ...
user avatar
  • 2,101
3 votes
1 answer
2k views

Why can't I reinstall Module Magento?

I have a module in magento, and the script setup module. Now I want to re-run this script and this module. I deleted the setup of this module in core_resource, and access magento. But the module is ...
user avatar
4 votes
5 answers
13k views

Magento 2 Installation: css/js/images not loading

I am trying to install Magento2(0.1.0-alpha107 ) in my localhost powered by OSX 10.10 + brew installed php-fpm + mysql + nginx. Steps that I followed for installation: mkdir /path/to/magento2 &&...
user avatar
  • 4,632
0 votes
2 answers
984 views

how to place "Orders and Returns" on navigation menu instead of a footer link

i would like to know if theres anyway i can place the "order and return" link and place it in the menu on the navigation bar. Here is my site. Thank you If you notice the order and return link is at ...
user avatar
2 votes
1 answer
803 views

Exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1293 Incorrect table definition when setup Magento 2.0 (0.1.0-alpha107)

Today I set up a version of Magento 2.0 (build 0.1.0-alpha107). But the process has stuck at 23% with error: Exception 'PDOException' with the message 'SQLSTATE[HY000]: General error: 1293 Incorrect ...
user avatar
  • 123
0 votes
2 answers
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 ...
user avatar
  • 2,463
1 vote
1 answer
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 ...
user avatar
  • 196k
3 votes
1 answer
10k 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?
user avatar
0 votes
1 answer
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. ...
user avatar
  • 672
2 votes
2 answers
728 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 '...
user avatar
  • 385
6 votes
4 answers
4k 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 ...
user avatar
  • 73
1 vote
2 answers
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 ...
user avatar
  • 989
7 votes
4 answers
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 ...
user avatar
  • 672
2 votes
1 answer
7k 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 (...
user avatar
  • 672
103 votes
12 answers
36k 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 //...
user avatar
  • 196k
1 vote
1 answer
561 views

Different delivery prices for different currencies

I have two currencies. The base currency is GBP, the other one is EUR. The client wants fixed shipping rates - 5 for GBP and 6 for EUR. I've set the one for the base currency but how can I set the ...
user avatar
  • 205
7 votes
2 answers
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 ...
user avatar
  • 196k
0 votes
1 answer
41 views

is it possible to change delivery depending upon product

I am trying to figure out if magento will provide me with all the functionality I need or if I have to write some code specifically. Naturally I'd like to keep the system as standard as possible. What ...
user avatar
21 votes
4 answers
19k 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 ...
user avatar
5 votes
2 answers
7k 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 ...
user avatar
  • 196k
3 votes
1 answer
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 ...
user avatar
  • 43
1 vote
4 answers
2k views

Product Page - Add Span Class - Price Symbol

I wish to add a simple span class on the product view page for the price. <span class="price-symbol">$</span> <span class="price">$99.90</span>
user avatar
  • 387
10 votes
3 answers
928 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 ...
user avatar
  • 196k
2 votes
1 answer
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: ...
user avatar
  • 4,643
13 votes
2 answers
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 ...
user avatar
  • 196k
1 vote
2 answers
96 views

Is there a native way to redirect a user to a page including a status code within an event observer?

I need to redirect a user to another page with a status code of 503 within an event observer. While I am able to redirect the user with Mage::app()->getFrontController()->getResponse()->...
user avatar
  • 133
2 votes
1 answer
514 views

Remove / Disable extension from Magento Connect

I have my developer account in Magento Connect. I have two extensions uploaded and now I want one of them to be disabled or removed from my developer listing. In the Versions tab, I try changing the ...
user avatar
  • 303
2 votes
3 answers
3k 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 ?
user avatar
  • 43
3 votes
3 answers
516 views

Is it necessary to disable the cache before creating a module?

I am newbie to Magento. I'm learning to create my first module but I'm confused whether it's necessary to disable the cache or not. If yes, please tell me how? Thanks,
user avatar
  • 49
3 votes
1 answer
442 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 ...
user avatar
  • 196k
9 votes
2 answers
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 ...
user avatar
  • 196k
48 votes
2 answers
6k 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 ...
user avatar
  • 196k
2 votes
1 answer
3k 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/...
user avatar
  • 196k
5 votes
3 answers
5k 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 ...
user avatar
  • 435
19 votes
2 answers
1k 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 ...
user avatar
  • 196k
56 votes
3 answers
24k 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 ...
user avatar
9 votes
3 answers
1k 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/...
user avatar
  • 607
2 votes
1 answer
2k views

Magento External Shipping Costs through a Custom API

I am trying to accomplish the following. I need to be able to add a custom shipping module that grabs shipping costs from an external system through an API. Once a customer gets to the point of ...
user avatar
4 votes
1 answer
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')
user avatar
  • 607
11 votes
2 answers
21k views

How to instantiate a block in magento2

Is there a simple way as in magento1 : $crumbs = Mage::app()->getLayout->getBlock('breadcrumbs');
user avatar
  • 607
14 votes
3 answers
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');
user avatar
  • 607
2 votes
1 answer
395 views

Magento : url structure

Please explain what is the meaning of this statement in Magento $this->_redirect('*/*/');
user avatar
  • 210
7 votes
3 answers
23k views

MySQL error while importing database

I want to upgrade Magento. Therefor I first want to transfer the live production system to a development workspace. I am trying to import the production database into a clean database. But I can't get ...
user avatar
9 votes
1 answer
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\...
user avatar
1 vote
2 answers
1k views

how to add delivery slot in magento?

delivery slots will be: 11am - 1pm 3 -5 pm 5 – 7 pm 7-9pm 9-10:30 pm User can choose any delivery slots for today and tomorrow . Only those time slots will be available to choose which will have 3 ...
user avatar
  • 195
2 votes
1 answer
465 views

Where to put custom model function

I created a module and I have a collection model class(under Model/Mysql4/MyModule/Collection.php), resource class (Model/Mysql4/MyModule.php), abstract model class (Model/MyModule.php) and a setup ...
user avatar
12 votes
4 answers
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\...
user avatar
  • 196k
4 votes
1 answer
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#...
user avatar
  • 4,638
2 votes
0 answers
54 views

Implimenting Custom Controller with payment option issues [closed]

I'm hoping someone can contribute to my complex issue. We have implemented a custom registration form with the aim of enrolling 'consultants'. Part of this enrollment is to order a special starter ...
user avatar