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.

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
6 votes
1 answer
7k views

Updating customer group from observer on customer_register_success event?

I want to set a customer group as first time user for that I am using an observer so that I can update the customer group just after or on the same time of registration.
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
2 votes
4 answers
6k views

How can I disable cache for particular section or block in magento 2?

I am making a online payment method, which is taking previous cart details if Full page cache is enabled. How can we make it non cache-able? I want to make my HTML content non - cache-able.
supriya mishra's user avatar
2 votes
1 answer
2k views

Error: Class PbuploadMediaGridDataProvider does not exist

I am creating grid in Admin, while adding ui_component and related resource Model to my module I am getting this error: Class PbuploadMediaGridDataProvider does not exist. frontname = pbupload …
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
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
2 answers
2k views

User with custom role cannot access custom menu item in Magento 2 admin interface

I want to give permission to admin user for a custom module, before creating a acl.xml the module name was not coming in list, after acl.xml its coming but admin user is not able to see in his menu. …
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
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
1 vote
0 answers
489 views

How to get Image of Parent product for grouped child product in a template?

<td><img src="<?=$this->getImageUrl($item->getProduct(), 'image', 300) ?>" style="max-width: 15rem"/></td> <td valign="top"> <p><a href="<?=$item->getProduct()->getProductUrl() ?>"><?php echo "Quant …
supriya mishra's user avatar
1 vote
1 answer
491 views

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

I need to hide custom offline payment method according to customer Groups! how to achieve this ?
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

15 30 50 per page