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
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\...
17
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
944 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
870 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
880 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
195 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
193 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
6k 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
8k 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
73k 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
72k 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
870 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
101 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
18k 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
28k 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
677 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
56k 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
922 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
518 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 ...
5
votes
1answer
4k views

Custom Module not working in Magento 2

I am created custom module in magento 2, but it's not working. Could you please suggest me where i went wrong? my Code is: app/etc/config.php 'modules' => array ( 'Magento_Hello' => 1, ...
29
votes
9answers
17k views

Future Support of Magento 1.9 - Coming Magento 2.0

We want to upgrade our current Magento 1.4.0.1 installation to 1.9.1.0 till autumn this year. The only thing we are unsure about is the future support of 1.9.1.0 since Magento 2.0 will be released end ...
0
votes
1answer
162 views

Magento dictionary problem

I am stuck since a few days on this. I want to create a new dictionary for Magento. And I followed the instructions here : https://wiki.magento.com/display/MAGE2DOC/Using+Translation+Functionality#...
-1
votes
2answers
1k views

magento 2 How to overwrite the existing style.css

I need to customize css in magento 2. For example My theme name is "inchoo" at following path :- - C:\wamp\www\magento2\app\design\frontend\Magento\inchoo Currently I am facing following issues to ...
-1
votes
5answers
502 views

Looking for some help setting up Magento

I have been hosting several Magento websites via shared hosting for the last 24-months now. Setting them up is a doddle using cPanel etc. My web host simpleservers have let me down causing the ...
22
votes
7answers
4k views

Can anyone suggest more technical resources for Magento 2?

I was able to find few articles on Magento 2 from http://magenticians.com/ http://www.thienphucvx.com/ If anybody know some other resources can you please share it here? (links, Ebooks, blogs etc)
2
votes
2answers
11k views

How to change page title in Magento “Magento Commerce”?

When I click on a link send to a friend and want to send the link to some of my friend I have the title Magento Commerce displayed in my title tag. The question is: how to change it to something ...
6
votes
2answers
743 views

Custom Entity Models - Using EAV vs Flat

I am working on a module that is essentially replacing a number of Magento features with custom logic. This is mainly due to the fact that I require pricing to 5 decimals of precision, but that is ...
22
votes
1answer
3k views

How can I have a custom XML file in modules merged as one in Magento 2? (MageStackDay mystery question 2)

MageStackDay bonus question for 500pts Bounty AND a the possibility of winning a free Z-Ray license for a year. More info can be found >> here << The questions are provided/inspired by Magento ...
42
votes
1answer
7k views

How to add a new product type in Magento 2? (MageStackDay mystery question 1)

MageStackDay bonus question for 500pts Bounty AND a the possibility of winning a free Z-Ray license for a year. More info can be found >> here << The questions are provided by Magento 2 core ...
3
votes
1answer
4k views

Magento 2 and Varnish results

Installed the latest Magento 2 beta3 release with sample data, and configured Varnish, and enabled Varnish debugging in vcl file. When requesting a page, and refreshing, I see the css, js files, etc......
5
votes
1answer
511 views

What happened with Magento 2 Service Layer?

As far as I remember, there were a lot of talks about importance of Magento 2 Service Layer and many services with different methods we had out of the box. When I downloaded the latest build, I was ...