Search Results
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 |
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.
25
votes
5
answers
32k
views
How to test or style the Order Success Page Or how to stop Success Page redirecting in Magen...
I have an issue in Magento 2 success page, its showing blank after successfully placed order. I am trying to debug it but the issue is when trying to refresh the success page after changing the code i …
13
votes
Accepted
Magento2: what is the best way to detect mobile device?
Best way is to detect a mobile device is
//Identifying if user is on mobile browser or not
if(preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|i …
12
votes
How to add images to product gallery programmatically in magento2?
Use Below code to add images,thumbnail
Use following code to add/remove image from product in Magento2.
// Instance of object manager
$objectManager = \Magento\Framework\App\ObjectManager::getInstance … addImageToMediaGallery($imagePath, array('image', 'small_image', 'thumbnail'), false, false);
$product->save();
Reference Url: https://stackoverflow.com/questions/40259303/add-remove-image-programmatically-to-product-magento2 …
11
votes
3
answers
10k
views
Magento 2: Disable all custom and Third Party Module in single Command
Is there is any way that we can disable all custom and third party Module in a single command? Currently, I am using below command to disable multiple modules
php bin/magento module:disable module …
8
votes
1
answer
819
views
What is difference between Creating Admin Grid with using Layout and Using Component
As we are aware that we can create Admin Grid to display list of item from database table with two ways:
1.Using layout
2.Using component
I want to know which one is best and what is difference be …
8
votes
2
answers
4k
views
Magento 2 Get Full Category Path for product
How to get full category path in Magento 2?
For example
Home > Women > Dresses > Maxi Dresses
I am developing script for Google Shopping Feed and there is a node product_type which is require …
6
votes
Magento2 - auto select shipping method
You need to override core file in your theme
vendor/magento/module-checkout/view/frontend/web/js/model/checkout-data-resolver.js
Override file in your theme : sendorname/theme/Magento_Chekout/web/js/m …
6
votes
Accepted
Does Magento2 send an email when order is cancelled by default?
I have check magento2 event list and found event "order_cancel_after" that can we use in our observer.
You will need to create a module and use observer. … execute(\Magento\Framework\Event\Observer $observer)
{
//implement here for sending mail
}
}
There is also some discussion about that topic,you can review it
https://github.com/magento/magento2 …
5
votes
Magento 2 change Invoice PDF Font and Add logo and mailing Address in Footer
I have tried with module
https://github.com/EaDesgin/magento2-pdf-generator2
but this module very complex and provide features if you buy it.I have not used this module and decide to make custom module …
4
votes
Accepted
Success message doesn't show in my custom module in magento 2
try below code,changed is only adding cacheable="false" in block
<body>
<referenceContainer name="page.messages">
<block class="Magento\Framework\View\Element\Messages" name="messages" a …
4
votes
1
answer
3k
views
Magento 2 Return Order Management
I have Installed Magento 2 latest version and I have checked in My account Section but not getting Order Return section.
I want to know where I get this feature and how to enable it for front end?
A …
4
votes
0
answers
2k
views
Magento 2 "No such entity" debug when creating customer
I am creating an account which is recently developed in Magento 2.2.4 and migrated from Magento 1.9.1.0.
I am getting error "No such entity with email = [email protected], websiteId = 1"
I am not finding the …
4
votes
Accepted
"Telephone" is a required value in customer edit form
There is a Magento2 feature that is by default telephone field is required. … There is a lot of discussion on below topic:
https://github.com/magento/magento2/issues/1691
There is also a suggestion on this topic that we can make it optional by running SQL script
update eav_attribute …
3
votes
Accepted
Calling system config value
Define construct function for pass the object manager as DI.
Define below code in your file in construct function
protected $_scopeConfig;
public function __construct(\Magento\Framework\App\Config\S …
3
votes
2
answers
9k
views
Magento 2 change Invoice PDF Font and Add logo and mailing Address in Footer
I want to change Invoice Pdf format.In default magento footer part is not added in pdf invoice.I want to add footer and in footer there will be logo and mailing addres.Also I am looking for update fon …