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-dev-beta]

Issues relating to the developer beta release of Magento 2.0.0. This formally is the the period from Dec 18th 2014 to around the end of Q1 2015.

4
votes
1answer
2k views

Magento 2: How to remove add to cart template from product detail page

I have to remove add to cart button from product detail page when product store has 0. How to achieve this
1
vote
0answers
469 views

Magento DevBox Beta Speeds Magento 2 Setup - Container is not working

I have installed the docker on Windows 7. It's working fine and run as well. I installed the Magento site using Varnish and Redis, so works fine. When I tried to enable the deploy:mode:set to ...
0
votes
2answers
2k views

Magento 2 : How to send data from controller to block and display on front end

I have used the following code <?php namespace Inchoo\Helloworld\Controller\Index; use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\Context; use Inchoo\Helloworld\Model\...
4
votes
5answers
2k views

Magento 2 : Displaying the database table values in frontend

In Magento 1.9 i used this code to get the database table values. $model = Mage::getModel('task_creation/details'); $collections = $model->getCollection(); foreach($collections as $collection)...
0
votes
0answers
112 views

Override TableRates if StoreView not Default

I want to override the TableRate values, if the StoreView is not the default one. So I wrote a plugin for Magento\OfflineShipping\Model\Carrier\Tablerate.php. The code is not working... class ...
1
vote
1answer
253 views

Magento2 System Upgrade from 2.0.5 to 2.0.7 Check Component Dependency issue

I have started on upgrading the magento2.0.5 enterprise system to latest Magento2.0.7 from web interface. Initially I faced the issues related cron setup, once I completed the cron setup all the ...
1
vote
1answer
261 views

Magento 2: Admin grid creation

What difference between magento 2-dev-beta grid creation and Magento 2 release. When i update magento to release version i saw this: Can someone explain to me what i need to delete or add? UPDATE: ...
1
vote
2answers
5k views

custom admin grid not rendering in Magento 2

I'm trying to display the grid(read only for view purpose, it won't allow edit or delete). My module is calling and heading also displaying in admin panel, but grid not displaying. Even though I'm ...
2
votes
1answer
2k views

Email template 'custom/mail/template' is not defined

I'm written code for sending mail from my custom module, but it's throwing error. But I have configured right way. I don't know where I went wrong. Could you please throw me right direction. Even ...
4
votes
1answer
612 views

magento 2 setup compile error

In magento 2.0, when I run the magento setup:di:compile command, it gives an error: [ErrorException] Declaration of Magento\Newsletter\Test\Unit\Model\Queue\TransportBuilderTes t::...
9
votes
1answer
5k views

Email template 'custom_mail_template' is not defined

I'm trying to send mail from my custom module. For this I have created system.xml file, but it's returning error. Error: Email template 'custom_mail_template' is not defined. my code is: <?...
0
votes
2answers
874 views

Magento 2 InstallSchema : Is my assumption correct?

I'm creating table with reference key of catalog_product_entity, here I'm little bit of confusing while converting Magento 1.0 to Magento 2.0. Can you clarify it. In magento 1.0 simply I can run the ...
0
votes
1answer
1k views

extending product view page in Magento 2

I'm trying to extending product view page, But Unable to overriding. catalog_product_view.xml <?xml version="1.0"?> <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1answer
680 views

how do getUrl of controller in Adminhtml on frontend?

I have custom module override product view. So in frontend I want to get action Save in Custom/Controller/Adminhtml/Custom/Save. How can I do this?
0
votes
1answer
785 views

Unable to extend customer address edit page in Magento 2

I'm trying to extend customer address edit page, but it is throwing Error. For these I have written code as below. composer.json { "name": "learning/module-contact", "description": "Contact", "...
4
votes
2answers
2k views

What would be the Mage::getSingleton('core/layout') in Magento 2?

In Magento 1 I can Inject a template through coding like below. $layout = Mage::getSingleton('core/layout'); $block = $layout->createBlock('module/module_block_identifier'); $block->setTemplate(...
0
votes
2answers
2k views

How to get Custom Model in a block that extends Block \Magento\Catalog\Block\Product\View?

I have block named custom.product namespace Myaddon\CustomProduct\Block\Product; use Magento\Framework\View\Element\Template; class Custom extends \Magento\Catalog\Block\Product\View { ...
1
vote
1answer
360 views

Configuration default Values not showing in magento 2

I have set default file name in textbox but it's not working. Can you please guide me where I went wrong? my Code is: app/code/learning/Custom/etc/adminhtml/system.xml <?xml version="1.0"?> &...
1
vote
2answers
189 views

magento2 rc error?

i have custom module it not wordpress magento2-rc2. it get error Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory. The following modules are outdated: ...
3
votes
2answers
1k views

How to move js file dynamically to pub/static folder in Magento2

I created custom module with requirejs-config.js and js folder when ever page loads requirejs-config is dynamically created in pub/static/_requirejs folder, but my custom JS is not created ...
2
votes
3answers
6k views

How To Add Country And State Dropdown In Admin Side in Magento2

I need to add country and state drop down in admin form how to do it
2
votes
2answers
4k views

Ajax loader image is not displaying in ajax call in Magento2

I try to to call ajax call its working fine but loader image is not displaying at the time of loading below is a code when you change country it will call ajax call and load region <script ...
0
votes
3answers
864 views

Event catalog_product_after_save magento2-rc?

help me find event magento2. In magento we have event catalog_product_after_save this event in magento2-rc?
0
votes
4answers
1k views

can't call controller in magento2 2.0.0-rc?

i have custom module. i can't call controller in view of my module. this url call http://localhost/magento2-2.0.0-rc/index.php/namespace/modulename/product/view/custom/ Code file Custom.php in ...
0
votes
1answer
454 views

Magento2 message manager doesn't work

I'm trying to use the message manager in magento2 (admin side) by object injection but when i add it to my controller - my controller doesn't run. class Example { protected $_messageManager; ...
0
votes
0answers
140 views

how do overriding Block with template has changed?

I want to override the block : <block class="Magento\Catalog\Block\Product\View" name="product.info.addtocart.additional" as="product.info.addtocart" template="product/view/addtocart.phtml"/> ...
0
votes
1answer
194 views

error version in custom module magento2 2.0.0-rc?

i created module in magento2 2.0.00-rc but get error Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory. The following modules are outdated: ...
0
votes
0answers
363 views

Magento2 Admin overlay notification

I've created a button on magento2 admin. This button activates a controller using an Ajax request. I'm trying to display an overlay notification - or any other kind of message to the user that will ...
1
vote
2answers
1k views

how do override Html template magento2?

I create new Block Xyaddons\Productzoom\Block\Product\View\Gallery override Block \Magento\Catalog\Block\Product\View\Gallery. I want set template image.phtml in Xyaddons_Productzoom::product/image....
1
vote
1answer
3k views

Magento 2 Ajax request fails

I made an ajax request (in the admin html) and got the following response: "{"error":true,"message":"You entered an invalid Secret Key. Please refresh the page."}" new Ajax.Request('...
1
vote
2answers
1k views

Overriding Block issues?

I want override Block Magento\Catalog\Block\Product\View\Gallery this is code in file di.xml Edited <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
0
votes
2answers
6k views

How to set template in custom block in Magento2? [closed]

I want to set template in Block custom.php. how can i do it? I tried following: protected function _prepareLayout() { $this->getLayout()->createBlock('Xyaddons\Productzoom\Block\...
3
votes
1answer
3k views

Add new field in configuration Magento2

I try create custom module config in magento2. This code add field productzoom Source file: Xyaddons\Productzoom\etc\adminhtml\system.xml. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1answer
767 views

setPage magento2?

i want use pagination for my module. I have code return $this->_faqFactory->create()->getCollection()->setCurPage($this->getCurrentPage())->setPageSize(10); Edited in view page1 ...
10
votes
6answers
22k views

How to call Direct SQL Queries and join to collection In Magento2

I just want to call direct sql query in Magento2 as like in magento1.x
0
votes
1answer
526 views

Admin url and themes not working in Magento 2

I have installed Magento2 from git repository. Currently I'm not able to access admin URL and also theme is not applying. I'm also referred http://devdocs.magento.com/guides/v2.0/install-gde/trouble/...
1
vote
1answer
1k views

magento2 shipping method :Table Rates import issue

Right now I am trying to import table rates, shipping method rates in Magento 2 in windows environment.But whenever I am trying to import it throw me error like The file "C:/Windows/Temp/E:/wamp/tmp/...
0
votes
1answer
2k views

how do use UrlRewrite for Custom module in magento2?

I have custom a module. When I do getUrl, it shows: http://localhost/magento2_beta/index.php/faq/category/view/tags/abc/ So I want an url like: http://localhost/magento2_beta/tag.phtml How to do ...
6
votes
4answers
14k views

how do call Block in controller magento2?

I want getBlock Adb/Block/Index in controller Adb/Controller/Category/View. So How do it? Edit in controller. namespace Addon\Faq\Controller\Category; class View extends \Addon\Faq\Controller\...
1
vote
3answers
774 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://...
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 ...
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
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
4k views

Order and Product information in Magento 2

In Magento 1 Simply I can get the Order information by using Mage::getModel() as well Product also same thing right? $order_information = Mage::getModel('sales/order')->load($order_id); as well $...
5
votes
1answer
3k views

How to get customer information in magento 2

In my custom module I'm trying to get the Customer, Customer Address, Product and Order information through events/observers but it's not working. When I'm hit the Save Button the website is hanging. ...
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 ...
1
vote
1answer
699 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
1answer
802 views

core class in magento2

how can we use $resource = Mage::getSingleton('core/resource'); $readConnection = $resource->getConnection('core_read'); $tableName = $resource->getTableName('sales/order'); in magento2? ...