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
13
votes
1answer
965 views

Magento 2 getTable behavior

TL;DR: Is there any way in Magento 2 to make the method getTable from a resource collection model to return the same table name for 2 different parameters? Detailed Explanation I will start with an ...
10
votes
1answer
710 views

Magento 2: Virtual Type Naming Convention

Date: June 1, 2015 (given the changing nature of Magento 2) In Magento 2, you can configure a "virtual type" in a module's di.xml configuration file. These virtual types allow you to change the ...
3
votes
0answers
1k views

Magento2: Error client denied by server configuration: [closed]

After I migrate data on magento2 from 1.9.1, I get an error on the home page, admin is functional, error is The page isn't redirecting properly Firefox has detected that the server is redirecting ...
4
votes
2answers
8k views

Magento 2 how to configure Nginx to allow execute other php files in root folder

How to configure nginx to let magento execute php files. For example I created phpinfo.php and I'd like to execute it. Where should I put it? ./ or ./pub/ ? What do I need to write into the config ?...
39
votes
3answers
7k views

What Triggers the Generation of a Factory in Magento 2

Magento 2 contains a number of class files that are either pre-generated, or are generated on the fly. They live in var/generated These generated files include factory classes. From the ...
17
votes
3answers
1k views

What Classes are “Intercept-able/Plugin-able” in Magento 2

Date: May 30, 2015 (given the changing nature of Magento 2). Magento 2 introduced a plugin concept, implemented via an interceptor pattern. What's not clear from the docs is -- which classes and ...
44
votes
4answers
59k views

Magento2 how to getRequest

In Magento 2 how to receive request array? $_POST and $_GET too as we did in Magento 1: Mage::app()->getRequest()->getPost()
1
vote
1answer
64 views

find which user uploaded magento product

We gave admin panel password to many employees of our company. but created different users and different roles for each employee. Is there any option to find out which "user" uploaded or edited a ...
1
vote
2answers
7k views

(resolved) Magento 2 : Setup\InstallSchema.php seems ignored, why and how to debug [closed]

Magento 2 (0.74.0-beta10) seems to ignore the Setup\InstallSchema.php of my module. The module is correctly enabled - and i can see him on frontend with the route. I don't find what script load the ...
6
votes
1answer
1k views

Magento 2: Where Does the Error Handler Redirect to the Home Page

Date: May 27th, 2015 (given the fast changing nature of Magento 2) For many classes of PHP errors/exceptions in Magento 2, the default system behavior is to redirect the user to the homepage, and ...
1
vote
0answers
245 views

Magento2: how to move a block [closed]

I am exploring Magento 2 for the 1st time (I am not familiar with Magento 1 either). I manage to figure out how the static blocks work but cannot find out how certain blocks work. For example how ...
0
votes
2answers
579 views

sample data not loading in 0.74.0-beta10

I'm having no luck getting the sample data to load in the current rev., and I've had no trouble at all in previous versions. My composer.json contains the following, edited for brevity: { "name"...
0
votes
1answer
242 views

Magento2 use Plugins (di.xml)

I have created a Plugin. Registered it in di.xml All public methods execute. Can I inject/rewrite/replace (don't know the proper title) protected methods? How?
11
votes
3answers
9k views

Magento2 InstallSchema add new column to existing table

I'm trying to add new column to existing table in magento2 <?php namespace Vendor\Module\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\...
18
votes
3answers
14k views

Magento 2: rewrite controller

how can i rewrite a controller (that's actually an action) in Magento 2? I tried, as instructed here like this: I have my own module called Namespace_Module with a di.xml file, that is taken into ...
1
vote
1answer
971 views

Magento2 controller response for iframe

I'm working on creating iframe in magento2. Content of this iframe should be a custom form, which exists in one of templates. I made following: <iframe src="<?php echo $this->getUrl('...
1
vote
1answer
881 views

Magento2 update layout

I'm trying to apply any layout changes. I have: .../view/adminhtml/layout/default.xml with code: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:...
2
votes
2answers
1k views

Magento2 Module\Updater\Setup error

I'm trying install different modules on my magento2 (v.0.74). But all of them generates the same error: exception 'Magento\Framework\Exception\LocalizedException' with message 'Source class "\...
5
votes
1answer
4k views

Magento2 Create eav_attribute for catalog

I'm trying to understand how magento2 is creating attributes in initial installation and using this I'm trying to create my own attribute. For example I'd like to create duplicate of thumbnail ...
1
vote
2answers
889 views

Magento2 setup/index.php from console DbConfig not found

I'm trying to install magento2 from console. I use following: php setup/index.php install --db_host=localhost --db_name=magento2ce --db_user=root --db_pass=root --backend_frontname=admin --...
4
votes
3answers
2k views

Create simple product programatically in magento2

I have created simple product using following code.almost its working fine, but I'm not able assign product to websites. Actually I have created two websites. I want to assign product to particular ...
0
votes
1answer
199 views

Magento2 nightly build install script

I was wondering if there is way to install/upgrade Magento2 every night using a shell install script run by cron. Our server runs Centos/Nginx/Php-fpm. Question: I was fiddling with some code and ...
4
votes
1answer
196 views

What are immutable data objects (with examples) in Magento-2?

According to dev document there are no setter methods in data interfaces. but in application almost every data interface contain setters also. There is no clarity on data interfaces. According ...
1
vote
1answer
7k views

set product status programatically

I have idea we can set product status using following code in magento 1.x.but I’m not able to identify in magento 2.0 beta. i'm spending lot of time to search status.php file. i find following file....
6
votes
2answers
3k views

Magento 2 “sequence_” tables

In my the Magento2-0.74.0-beta7 there are some tables related to sales entities that start with sequence_. sequence_creditmemo_0 sequence_creditmemo_1 sequence_invoice_0 sequence_invoice_1 ...
3
votes
1answer
1k views

Serve resources from a consistent URL - 2 images URL for single product, same image

I have one image for all three small, base and thumnail. However, when I am uploading a product , and selecting three options, magento automatically takes this as 2 image URLS in 2 different folder ...
10
votes
6answers
9k views

Delete operation is forbidden for current area

I want to create command for delete operation for simple product by sku. I'm getting following error.how to set admin area? [Magento\Framework\Exception\LocalizedException] Delete operation is ...
25
votes
19answers
74k views

CSS and Javascript files are not loading after Magento 2 installation

I've installed Magento 2 on local server successfully using composer but I'm not able to see frontend and admin panel designs. I see plain texts there. While looking at console I see following error. ...
39
votes
8answers
74k views

Magento 2 404 error for scripts and css

I have downloaded and installed Magento 2 from https://github.com/magento/magento2 But I am getting 404 error for scripts and cs located in http://localhost/magento2/pub/static/ I have checked, ...
1
vote
2answers
3k views

List all root categories in magento2

How do you list all root categories (and their child categories) in a template file (phtml) in magento2? I'm running 0.74.0-beta5.
3
votes
1answer
884 views

magento2 enable SOAP

how do I enable SOAP on Magento2? If I access http://example.com/soap?wsdl&services=customerV1 I get [2015-04-24 05:47:01] main.CRITICAL: exception 'RuntimeException' with message 'Report ID: ...
1
vote
1answer
169 views

Magento 2: in depth of magento core [duplicate]

Digging in magento core code I found some interesting code: https://github.com/magento/magento2/blob/develop/lib/internal/Magento/Framework/ObjectManager/Factory/AbstractFactory.php#L93 protected ...
1
vote
1answer
2k views

Magento 2: can't access pub/media files

Site can't access img, JS and CSS files separated in pub/media folder. But pub/static files are accessible. I have following config <VirtualHost *:80> ServerName mage2.loc DocumentRoot /...
2
votes
3answers
6k views

Magento 2 - Changed the base URL but old base url seems to be cached somewhere. Any ideas?

I installed Magento 2 (Dev RC) on an ubuntu instance on Google Conpute Engine. I changed the base url in the admin under stores > configuartion > web to a domain name. It didn't work as I had hoped ...
1
vote
1answer
11k views

Magento 2 problem in admin login

I have sucessfully installed magento2 but I cannot login to admin, I saw the related question and the problem was rewrite_module I already enabled rewrite_module as checked in wamp and i am seeing it ...
1
vote
1answer
103 views

Override config

I am trying to override the config in a early stage. I have created a option where the admin can choose in the config section from which website they want to inherit the config from. I am stuck on ...
9
votes
4answers
19k views

How can I get product list with its detail in rest API I'm on magento2

I'm working on native mobile application and want to display product after customer selected a category. I am able to get list of the product by category in rest request but that list don't have much ...
37
votes
3answers
29k views

Enable exception printing on the webpage in Magento2

I was installing Magento 2 and got the following error. There has been an error processing your request Exception printing is disabled by default for security reasons. Error log record ...
2
votes
1answer
236 views

Magento2 - Overriding magento2 backend theme

How to use a new theme admin? in Magento v1.x had to create a controller to configure a new theme. ex: ` public function overrideTheme() { Mage::getDesign()->setArea('adminhtml')->...
5
votes
1answer
1k views

Magento 2 how to interact with products grid collection

I'm trying to find the best way to modify products collection for products grid in admin. In particular, to add additional filter to the collection. I don't want to override the grid's block to ...
1
vote
1answer
686 views

Problem with Magento 2 Installation [closed]

I've tried to install Magento 2 0.42.0-beta11 on Windows 7 machine with Apache. After install homepage doesn't have any styles or images - http://joxi.ru/Vm6ko9ni7oWG2Z. If i try to open any css or ...
3
votes
2answers
1k views

Magento local to live migration database error

After migration, I have moved Magento from local server to live server, I get this error when I want to save any setting, SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for ...
36
votes
3answers
60k views

Extending / Overriding JS in Magento 2

As Magento2 is using RequireJS for loading scripts, and there's no more skin folder, I've stuck with a problem: How can I replace Magento's module JS file by my modified version? For example — the ...
9
votes
4answers
7k views

How to create admin theme for Magento2

This method works for Magento 1 but not for Magento 2 (version 0.42.0-beta10): http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/admin/using_custom_admin_theme_templates
5
votes
1answer
6k views

How to add new css file for a module in Magento2?

I'm trying add custom css file for my module namely Magento_Hello in magento2. In the module I've created new page and trying to add new custom css to that page. Here is what I have done in app/code/...
0
votes
1answer
1k views

Magento 2 isn't generating my pub images

I was running into an issue that my Magento 2 instance wasn't generating images on my Windows 7 machine. The system wasn't producing any errors and it had all installed perfectly. I also was meeting ...
1
vote
2answers
944 views

RWD Theme in version 2.0

Can anyone confirm? I heard that the RWD theme will no longer be an available option during install when Community version 2.0 is released. A rumor or fact?
2
votes
1answer
522 views

Pass string parameters to the model construct in Magento 2

What is the best way to pass some not predifined string to model construct in Magento 2 with di.xml? I have an api class which requires incoming params like service url, login and license key which i ...
1
vote
4answers
2k views

Multi Vendor / Multi Seller store in Magento 2

Can the new Magento 2 be able to implement these features easily ?? especially the multiple shops for each shopkeeper ? or a lot of customization will have to be done ?
0
votes
1answer
1k views

`“.maintenance.flag” cannot be touched Warning` Error while installing magento2 after admin user creation - Linux

I got stuck (94% progress) in exception while installing magento2 after user creation. I have enabled the php error reporting on but not Luck. Then i have tried to debug from terminal(CLI) and got ...