Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 42140

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
1 answer
454 views

Prevent to empty cart after failed/canceled payments in magento 2

I am using PayuBiz as a online payment method in our website, in which cart is getting empty on failure /canceling of order and my code is: public function execute() { $arrParams = $this …
supriya mishra's user avatar
1 vote
0 answers
118 views

How can create upload Grid/ form in admin in magento 2

I want to upload folder of Product images through admin, so how can I create Upload option in admin?
supriya mishra's user avatar
0 votes
0 answers
72 views

How can we create first time user : customer group in magento 2

I wish to use coupons for first time user, for this want to create one custom customer group which will be only registered not buyer to website. How to achieve this ?
supriya mishra's user avatar
0 votes
1 answer
1k views

Pagination Limit Need to make dynamic

I am adding pagination block to my custom shop by brand module, here is Block file <?php namespace PinkBlue\ShopByBrand\Block; use Magento\Catalog\Model\Product\Attribute\Source\Status; class View e …
supriya mishra's user avatar
2 votes
2 answers
3k views

MAGENTO 2: How to update meta tag for category page when filter selected?

I want to change the Meta Tag to NOINDEX, NOFOLLOW I am trying with setting an observer, but m having very hard time to find exact event. My events.xml is <?xml version="1.0"?> <config xmlns:xs …
supriya mishra's user avatar
8 votes
5 answers
18k views

Warning: DOMDocument::loadXML(): Empty string supplied as input

Warning: DOMDocument::loadXML(): Empty string supplied as input in C:\xampp\htdocs\Magento2\vendor\magento\module-config\Model\Config\Structure\Reader.php on line 132 …
supriya mishra's user avatar
1 vote
1 answer
2k views

how to get customer group id from last order id in magento 2

I want to change customer group after placing an order so I need Customer Group id which can be update in observer . How to achieve it?
supriya mishra's user avatar
0 votes
Accepted

Unable to resolve the source file for in Custom Offline Payment method in magento 2

There was an error with file type- I was trying with phtml file in but knockout js binds HTML files. After reading few blogs i got this solution: The html binding causes the associated DOM element to …
supriya mishra's user avatar
0 votes
Accepted

Show /Hide my custom payment method - (offline) at checkout in magento 2

We have to add this code in our Namespace/Modulename/Model/ in file.php public function isActive($storeId = null) { $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); …
supriya mishra's user avatar
0 votes
0 answers
55 views

Button to track order on homepage- Magento 2 [duplicate]

I am trying to put a button on front-end so that Logged In customer can check order status after putting his tracking number, which is already in Customer-Dashboard . How to execute this?
supriya mishra's user avatar
1 vote
2 answers
4k views

How to get customer details in checkout_onepage_controller_success_action observer

I am getting this error: Fatal error: Call to a member function getCustomerId() on null in C:\xampp\htdocs\Magento2\app\code\Vendor\MyModule\Observer\ChangeCustomerGroupAfterOrder.php on line 30 …
supriya mishra's user avatar
0 votes

Magento 2 : Event Observer For Payment Method Selection

These 2 You can try accordingly app/code/Magento/Payment/Model/Method/Adapter.php payment_method_is_active $this->eventManager->dispatch( 'payment_method_is_active', [ …
supriya mishra's user avatar
0 votes
0 answers
113 views

Magento 2 Entering Wrong Captcha clearing form data [duplicate]

In Magento 2 If Captcha is wrong then after submit all detail of form is getting empty. What approach can be taken to make it independent so that form should not get empty ?
supriya mishra's user avatar
0 votes
1 answer
2k views

Magento 2: How Captcha Module works?

I am struggling with adding captcha in few forms, have gone through its module I find it really intresting but not getting clear idea ! If anyone is having clear concept please describe . thanks!
supriya mishra's user avatar
3 votes
3 answers
9k views

Redirect customers to Home page/previous page after login/create account in magento 2 instea...

I am trying to redirect to user after login or creating account to either home page or previous page. My controller code is following it is not able to login or create an account. <?php /** * * Cop …
supriya mishra's user avatar

15 30 50 per page