Magento Dev
  • Member for 4 years, 1 month
  • Last seen this week
  • Noida, Uttar Pradesh, India
Trigger Proceed to checkout button in Magento2
Accepted answer
6 votes

Here you need to build a module in which you need to use event 'controller_action_predispatch_checkout_index_index'. Create registration.php <?php \Magento\Framework\Component\ComponentRegistrar:...

View answer
How can I change phone number label to Mobile number in Checkout Page;Magento2
Accepted answer
6 votes

1.Create di.xml under app/code/Namespace/Module/etc. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:...

View answer
Magento 2 : how can i add notice below state/province field in shipping address in checkout page
Accepted answer
5 votes

1.Create a di.xml under 'etc' directory of your any custom module <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...

View answer
Use getTemplate() within KnockoutJS foreach
3 votes

See the code in files and try like this. grid.phtml <div id="block-sample-grid" data-bind="scope:'sample-grid'" class="block"> <!-- ko template: getTemplate() --><!-- /ko --> ...

View answer
Where is the product gallery stored in the database?
3 votes

Check the catalog_product_entity_media_gallery table in database here in 'value' column image path is saved For writing custom query for this table you need to use core_read and core_write connection ...

View answer
Magento 2 issue on category page and product page of "inventory_stock_1" table?
Accepted answer
2 votes

I have found after debug and research we need to run query on database. ALTER DEFINER=user@localhost VIEW inventory_stock_1 AS select distinct legacy_stock_status.product_id AS product_id,...

View answer
Magento 2 - Display search button
Accepted answer
2 votes

1.Go to your custom theme like Package/Theme and create directory Magento_Search. 2.Copy form-mini.phtml from vendor/magento/module-search/view/frontend/templates. 3.I changed some piece of code in ...

View answer
Please execute 'magento-cli' instead of 'magento' that uses the proper user to execute any Magento's command
2 votes

1. Login to your account using ssh 2. At the command prompt, change to the directory where Magento is installed. For example, if Magento is installed in the document root directory, type cd ~/...

View answer
How to create shipment using rest api in magento 2?
Accepted answer
1 votes

I have researched on this and found an answer. URL : http://domain/rest/V1/order/237/ship -:- where 237 is the order id Method: post Input Parameters : { "items": [ { "...

View answer
How to send shipment email notification using rest api magento 2?
1 votes

I have researched and found how we can do this. Details http://domain/rest/V1/shipment/10/emails : where 10 is the shipment id Method : post parameters : {} When will hit then a mail will go ...

View answer
Magento 2: Get Customer data before login with observer
1 votes

Please follow the below code 1.Create a events.xml file under "Namespace/Module/etc/frontend" <?xml version="1.0"?> <!-- /** * Copyright © 2015 Magento. All rights reserved. * See COPYING....

View answer
how to switch cart items & totals table?
Accepted answer
1 votes

1.First override checkout_index_index.xml under your theme like Package/Theme/Magento_Checkout/layout. <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...

View answer
Magento2 | Listing grid / "select all" option not working
Accepted answer
1 votes

1.You need to create MassDelete.php file in your controller. <?php namespace Namespace\Module\Controller\Adminhtml\Order; use Magento\Framework\Controller\ResultFactory; use Magento\...

View answer
How to show particular cms page for specific user group?
1 votes

1.Create di.xml in your custom module under Namespace\Module\etc directory. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...

View answer
Magento 2 Customer registration with customer group
Accepted answer
1 votes

1. Add your phtml to additional info block, by creating following file: /Nano/CommissionAgents/view/frontend/layout/customer_account_create.xml. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...

View answer
Update custom product attribute programatically?
Accepted answer
1 votes

You can do this by first setting the value of custom attribute and then save product. $product->setCustomAttribute('value') $product->save();

View answer
How to create Catalog attribute in Magento 2 Using Upgrade Script
Accepted answer
1 votes

First You need to increase version of your file under etc/module.xml.Suppose your version is 1.0.0 then increased it by 1.0.1 Now create UpgradeData.php under Setup folder. <?php ...

View answer
Magento Override frontend template in custom module file
1 votes

Create "local.xml" under "app/design/frontend/themepackage/theme/layout". Add below lines of code. <?xml version="1.0"?> <layout version="0.1.0"> <contacts_index_index translate="...

View answer
How to show my page when i click link in customer account navigation?
1 votes

Create a local.xml under app/design/frontend/themepackage/theme/layout/. Add the below code. <?xml version="1.0"?> <layout version="0.1.0"> <customer_account> <!-- ...

View answer
use rewrite to hide add to cart button magento
Accepted answer
1 votes

For hiding addtocart button you need to do Removing from product page you need to create local.xml under 'app/design/frontend/themepackage/theme/layout/' and put the below xml code <?xml version="...

View answer
Magento 2 - Redirect customer to custom page after login
0 votes

I resolved this by passing referer in custom module controller. Step1 ` use Magento\Framework\App\Action\Context; use Magento\Framework\View\Result\PageFactory; use Magento\Customer\Model\Session; ...

View answer
Magento2: Issues after switch to production mode
0 votes

1.Clear content from directory var are: var/cache var/di var/generation var/view_processed 2.Clear content from pub directory except .htaccess file. 3.Now run command forcefully because in ...

View answer
When using Magento 2 the admin panel buttons are un-responsive
0 votes

Please try to run below command: bin/magento setup:static-content:deploy --theme Magento/backend en_US

View answer
Remove Create an account link in Magento 2
0 votes

To Remove "Create an Account" link create default.xml under to your theme like "app/design/frontend/Theme/Demo/Magento_Customer/layout". <?xml version="1.0"?> <page xmlns:xsi="http://www....

View answer
Binding Events On Dynamically Generated DOM Elements Knockout + Magento 2
0 votes

I used js code like. /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ /*jshint browser:true jquery:true*/ /*global alert*/ define([ "jquery", '...

View answer
Custom module does not display in page
0 votes

First add "module.xml" in layout tag in "config.xml". <config> <modules> <MG_MyBlock> <version>0.1.0</version> </MG_MyBlock> &...

View answer
Pub Folder Not Updating
0 votes

You don't need to deploy content every time.Set your deploy mode to developer then it automatically deploy if any changes occur. Set developer mode,first check developer mode then set. php bin/...

View answer
Configurable product isn't displaying in categories?
0 votes

when we create configurable products then after creating its associated simple products then its does not show under its respected categories so it may be the cause of not re-indexed.So re-indexed ...

View answer
Array in Magento1
0 votes

You are doing only one mistake that using parent array instead of sub array please see the correction below $Item = array( array( 'id' => 239, 'order_no' => ...

View answer
Magento Website not working
-2 votes

Go to file 'app/code/core/Mage/Core/Model/App.php' and on line 722 replace it return $this->_stores[$this->_groups[$group]->getDefaultStoreId()]->getCode(); replace by if(is_object($...

View answer