Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
2answers
674 views

Copy XML nodes from layout files of another action in Magento2

My use case is, that I copied parts of the Magento checkout to the bundle's product's page. i.e. I copied parts from app/code/Magento/Checkout/view/frontend/layout/checkout_cart_index.xml to app/...
4
votes
1answer
769 views

Magento 2 Pattern Library — Date & Time Selectors

I would like to implement the "Horizontally Stacked Time Range Picker" from the Magento 2 Pattern Library into an admin form input http://devdocs.magento.com/guides/v2.0/pattern-library/getting-user-...
4
votes
2answers
2k views

How can i rewrite TierPrice Block in Magento2

I am facing one issue in block rewrite. I am trying to rewrite app/code/Magento/Catalog/view/base/layout/catalog_product_prices.xml I want to Call my own tier_prices.phtml <code> <layout xmlns:...
1
vote
3answers
656 views

Magento 2 script errors when running MAGE_MODE=production

I've installed Magento 2 and set MAGE_MODE=production. However, I'm receiving a lot of JavaScript errors when visiting the home page (requireJS). I tried flushing the cache and reploying static ...
6
votes
1answer
3k views

Magento 2: Soap Credentials

Poking around the codebase and some questions here it looks like Magento 2 -- much to the chagrin of certain segments of the web development community -- will still support SOAP API endpoint. (...
5
votes
1answer
7k views

How do the extension attributes work in Magento 2?

I'm not sure what the docs are saying. I know they're used to add attributes (complex or not) via etc/extension_attributes.xml and I managed to make the compilation process create an interface with ...
0
votes
1answer
251 views

Unable to extend adminhtml customer addresses tab in magento2

In magento1 i could extend the adminhtml customer addresses tab class Vendor_Module_Block_Adminhtml_Customer_Edit_Tab_Addresses extends Mage_Adminhtml_Block_Customer_Edit_Tab_Addresses { public ...
1
vote
3answers
775 views

custom xml get error is not valid?

i have default.xml in frontend. <?xml version="1.0"?> <!-- /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ --> <page xmlns:xsi="http://...
-2
votes
2answers
2k views

Composer installation issue for Magento 2 on WAMP [closed]

I'm trying to install magento 2 on WAMP Windows 10. I have downloaded. When i run it gives error Autoload error "Vendor autoload is not found. Please run 'composer install' under application ...
22
votes
4answers
8k views

Magento2 CLI module:enable gives error “Unkown module(s)”

In Magento2 I've built a simple custom module and want to enable it by CLI: bin/magento module:enable Vendorname_Modulename But it is giving me the following error: Unknown module(s): '...
-2
votes
1answer
2k views

replace or over write the Magento 2 footer phtml file [closed]

How to replace or overwrite the footer phtml file without changing the core file of Magento 2?
2
votes
4answers
450 views

Magento 2: Composer Only Instalation

I'm trying to write up a tutorial explaining how to install Magento 2 only via composer, and use that tutorial as an in to exploring how third party composer repositories work. Looking at the current ...
0
votes
1answer
244 views

ko.getObservable is not a function in admin section

After updating may Magento2 instance to commit I am seeing the error ko.getObservable is not a function in the file events.js. I have performed and composer install, bin/magento update and bin/...
1
vote
2answers
2k views

Add an admin with basic custom form for Magento2

I am trying to create an admin page for my extension. I managed to add a new button to the side menu just below the System icon by adding the following menu.xml under etc/adminhtml. <?xml version="...
0
votes
1answer
855 views

How to get a configurable parent product from catalog in Magento2?

In Magento 1 I had an extension that did the following to get the configurable parent product by child ID: // $full_product holds the child in the first place $configurable_product_model = Mage::...
18
votes
3answers
8k views

Magento 2: Sending Email Programmatically

Does Magento 2 have any built-in integration with third party transaction email deliverability systems like Amazon SES, Mandrill, etc., or is the built-in email functionality still based around PHP's ...
3
votes
3answers
4k views

How to enable Full Text search in admin grid of magento2

i created admin grid using UI component when i try to search from full test search or keyword search i am not getting correct search data can any one help me on this rest all thing are working ...
6
votes
3answers
3k views

Adding button in Magento 2

I'm trying to add button in customer address form. But I don't know how to do it from customer_form.xml file. If any one knows please suggest me. I have registered button control on ui_definition.xsd ...
0
votes
0answers
558 views

magento2 setup error with database MariaDB?

today I uninstall mysql and add new mysql-5.6.27-winx64, Windows (x86, 64-bit), ZIP Archive in https://dev.mysql.com/downloads/mysql/. and add pubbin mariaDB in Zendserver. when i setup magento2 ...
4
votes
1answer
274 views

Magento 2 1.0.0-beta creating a new vendor/theme from Magento/luma breaks FE

I created a new Vendor/theme where, in the theme.xml, i referenced the Magento/luma theme. As i understand it right, the fallback should now grap styles from the luma theme and my new theme should ...
12
votes
3answers
10k views

Magento 2 : Error 404 not found at magento 2 admin login page

I have installed magento 2 into my Personal Computer. It working fine over there. I have installed same copy at another system then frontend is working fine admin is not. (its showing 404 page) ...
2
votes
2answers
5k views

How to add new column to core module of admin grid in Magento2 [duplicate]

I need to add new column to sales and customer admin grid in Magento2 and also as all we know it uses UI Component, then how to extend grid with UI as well as non UI ex newsletters modules
0
votes
1answer
705 views

magento 2 conn't login to admin panel in local host with xampp

when i given correct logins also it conn't login Thnaks
19
votes
3answers
2k views

Magento 2: What's a Service Contract

In Magento 2, is there a concrete example of something that's built using the Service Contract concept? I've seen this term thrown around a lot, but looking at Magento 2 as it exists now it's not ...
3
votes
1answer
1k views

Magento 1.9.2 Upgraded to magento 2 via admin panel

I was reading the upgrade guide - but had the idea to try the upgrade via Magento connect. but is there any chance to update via admin panel
2
votes
0answers
1k views

Magento 2 Add Image to product media gallery

I am using bacon-qr-code library to generate a png file containing the QR code of the product info, it is generated and i am using $product->addImageToMediaGallery() function, which creates a ...
9
votes
4answers
17k views

How to create Admin Grid in Magento2?

I am trying to create module in magento2, now i stuck creating grid page in admin side, let me know if any one already did
2
votes
1answer
81 views

Magento2 - Which namespaces to be used inside a class

This might be a novice question, but as when a developer starts to learn Magento2,how do i figure out which all namespaces must be used inside a Model,Block,Plugin or matter of fact any custom class ...
0
votes
1answer
6k views

AJAX request in backend template is redirecting to login page

I am working with Magento2. I've created some backend controllers, which are accessible in backend. In my backend template file, I want to call the controller function with jQuery like this: ...
0
votes
0answers
402 views

Magento2 attributes construct error in Entity

I have made a dummy module in Magento2 , just wanted to observer cart add event, but while making few files i am getting this error a:4:{i:0;s:168:"Warning: DOMDocument::loadXML(): attributes ...
0
votes
3answers
2k views

Magento 2 Form Field Array (Advance system configuration option)

Recently I worked on advance system config form field in Magento 2. I checked Braintree payment method for reference. When I saved a value, it showing following error: Something went wrong ...
0
votes
1answer
2k views

Magento2 Admin login is coming blank [duplicate]

Installation of Magento2 went fine, but when i try to access the admin page, it gives me blank login screen. pub/static has generated css,js correctly for frontend and adminhtml I see problem with ...
0
votes
0answers
483 views

Error while running php bin/magento setup:upgrade in magento 2

When i try to upgrade the setup from the magento root folder in cmd, using php bin/magento setup:upgrade i get below error Autoload error: An abstract factory could not create an instance of ...
19
votes
1answer
5k views

Block with Cachable=false not rendered on product view page

I am using magento2-1.0.0-beta4 I have copied the checkout.root block from app/code/Magento/Checkout/view/frontend/layout/checkout_index_index.xml to the product page. Everything is working fine, ...
10
votes
2answers
17k views

I am getting Fatal error: Class 'IntlDateFormatter' not found in Magento2

i am getting error Fatal error: Class 'IntlDateFormatter' not found in Magento2 after installation
2
votes
2answers
54 views

Contributing to magento hackathon Github

I'm wanting to contribute to the magento hackathon github page https://github.com/magento-hackathon .Does it need to be during a hackathon or can anyone contribute at anytime? And Do they accept PR's?
2
votes
1answer
2k views

Magento 2 - custom model save triggers error - Fatal error: Call to a member function dispatch() on a non-object

I am creating a simple frontend magento 2 module to take input from user and save output in database. Here is what i have tried. Index.php -- (Index controller index action) namespace ...
46
votes
3answers
6k views

Run tests for a specific module in Magento2

Running the tests for Magento to using php bin/magento dev:tests:run takes a lot of time. Is there a way to run the tests for a specific module only? I'm a noob in (unit) testing so have mercy.
0
votes
2answers
2k views

How to override adminhtml phtml files in magento2

How to override adminhtml phtml files in magento2? I want to place a custom text in customer edit page welcome to magento2. For this I have created a theme and placed app\design\adminhtml\Vendor\...
7
votes
2answers
1k views

Add jQuery Datatables in magento 2

I am trying to use the jquery DataTables in magento-2 frontend using the requirejs. I can see the datables.min.js file in the net panel, but somehow it give the following error. My reuirejs-config....
1
vote
0answers
118 views

Detail page in Magento2 render empty

I have created my own new theme in Magento 2 clone from blank theme of Magento2. When I open up product view page, It's showing blank page (Body totally blank). I have re-checked all my settings ...
3
votes
1answer
3k views

How do add css, js in customview.phtml in view magento2?

I have custom view.phtml. I Want add my.css and my.js in <head></head> 2 file in app\code\Test\New\view\frontend\web\css. How do it?
15
votes
3answers
5k views

How to get events/observers in magento 2

In Magento 1 I can get list of events/observers by debugging dispatchEvent() method from Mage.php like below. /** * Dispatch event * * Calls all observer callbacks registered for this ...
40
votes
8answers
35k views

How to Override Core Block, Model and controller in Magento2

I'm stuck in overriding core model Blocks and controllers in Magento2. Can any one help on this? Let's take list toolbar as example where I need to add a new sort option called sort by most popular. ...
4
votes
1answer
1k views

How to Extend and initialize a JS Widget with Proper Custom Namespace / Replace Existing Widget

I want to modify the mage.catalogAddToCart JS widget of Magento 2. According to http://devdocs.magento.com/guides/v2.0/javascript-dev-guide/javascript/custom_js.html I have to do a $.widget('foobar....
3
votes
1answer
5k views

Magento 2: How to add popup on button click in admin?

Can you explain how to add popup(modal window) on button click in the adminhtml? I already create some phtml <div id="messages"> <div class="messages"> <?php foreach ($this->...
2
votes
1answer
2k views

magento 2 override block using preference

I need help regarding block overriding. I have successfully overridden a block using preferences, but when I add core registry in the construct method it's showing the following error: Recoverable ...
1
vote
1answer
702 views

Magenot2: what is the use of `resource` paramerter in menu.xml

i created one testing module in magento2 and for backend added menu by this code: location of this file is Test/Seller/etc/adminhtml/menu.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
0answers
356 views

Magento2.0 used as backend and Wordpress used as frontend(magento2.0 Api) [closed]

I need solution with below requirement 1) All Magento data, inclusive of catalog/products, inventory, customer data, quotes, checkout process, etc., should be utilized from within WordPress by way ...
2
votes
1answer
522 views

Smarter way to continuously update the cart in Magento 2

I am developing a Magento 2 shop with a (bundle) product configurator and a side bar which should contain the current cart, including shipping cost and discount (for example 5% for orders > 100€). I ...