Questions tagged [magento2]

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.

Magento 2, now also called Adobe Commerce, is the latest ecommerce software by Magento (Adobe). It differs from the previous version of Magento substantially and brings more and more possibilities and features with a complete ecosystem surrounding it.

Main Magento website: https://business.adobe.com/products/magento/magento-commerce.html

Official Magento 2 Documentation: https://developer.adobe.com/commerce/docs/

Official Magento 2 GitHub: https://github.com/magento/magento2

47806 questions
98
votes
5 answers

GIT and deployment strategy Magento2 projects

With Magento 1 I used a deploy tool that pulled in the GIT repo, ran commands like modman deploy-all and made sure the var directory was writable. For the .gitignore I used this one which worked pretty well. But what about Magento 2? What…
Sander Mangel
  • 37,528
  • 5
  • 80
  • 148
39
votes
5 answers

How to fix Magento 2 2.0.0-RC Admin page not found after installation

It's a fresh new install with a clean database. I checked the values from Magento 2 : Error 404 not found at magento 2 admin login page and it's fine too. Also tried to access it via /index.php/admin as suggested by All of the buttons/links…
csmarvz
  • 888
  • 2
  • 11
  • 19
35
votes
7 answers

Magento2 - programmatically add product attribute options

What is the right(official) way to programmatically add product attribute option in M2? E.g. for manufacturer product attribute. Obviously existing option would be matched by "Admin" title value.
werd
  • 545
  • 2
  • 5
  • 9
32
votes
5 answers

How to convert number into currency format in magento2

I want to convert number into currency format in magento2 like we do in Magento 1.x with this $_coreHelper = $this->helper('core'); $_coreHelper->currency(number_format(50,2),true,false) How to do same in Magento2?
Gaurav Jain
  • 1,013
  • 3
  • 12
  • 22
29
votes
2 answers

How to add css class on body [Magento2]

I am trying to add a css class on body tag but not able to find any file, from where the body tag is rendered. I need to add one css class on body tag such as others are coming > page-with-filter page-products page-layout-2columns-left…
Jack
  • 460
  • 1
  • 4
  • 10
22
votes
6 answers

How to Add a Custom Button to Admin Sales Order View in Magento2

How to add a custom button to sales order view in magento2, since some of the events was remove in-favor of plugins. Removed some events (plugins must be used instead): adminhtml_widget_container_html_before (use in magento…
MagePal Extensions
  • 13,911
  • 2
  • 33
  • 52
22
votes
5 answers

Add new tab in product edit page in admin Magento 2

I'm trying to create a custom module that will add a new tab on product edit page, right under Basic Settings. Can someone provide an answer?
Pavel Adrian
  • 375
  • 1
  • 3
  • 9
21
votes
4 answers

How to redirect to previous page magento 2?

How to redirect to previous page from my custom action in magento 2
Newbie
  • 1,614
  • 6
  • 29
  • 47
20
votes
2 answers

Magento 2: How to add css and js in custom module in magento 2?

How to create Magento 2 custom module with include Css and Js ?
sathya
  • 421
  • 1
  • 4
  • 13
20
votes
5 answers

Magento 2 log database queries

In magento 1.x I use the n98-magerun tool to get a log file for all DB Queries: n98-magerun.phar dev:log:db [--on] [--off] Is it possible to log database queries in Magento2?
bpoiss
  • 763
  • 2
  • 8
  • 24
19
votes
7 answers

Magento 2 Class *Factory does not exist

I was trying to install a plugin and I removed var/generation and var/cache/*. I've checked the MAGE_MODE and I'm in developer but now when I access the front-end and the admin I get random errors saying mean things like: Class…
jstrez77
  • 772
  • 1
  • 10
  • 24
15
votes
2 answers

For what is "downloadable_domains" in env.php file?

For what is "downloadable_domains" in env.php file? I have read on Magento dev docs, but I can`t understand where it is used? Please do not add links to dev docs. Describe please your point of view. Thanks in advance!
alexey boltynov
  • 563
  • 3
  • 11
15
votes
5 answers

Magento 2.3.3 tab jumping on Top

I have followed Mage documentation from Magento official website on clicking it's jumping on top: I am using 2.3.3, any way to stop jumping?
Arunendra
  • 7,446
  • 3
  • 29
  • 54
15
votes
5 answers

Magento2 : display static blocks in home page

How to display static blocks in the home page. I want to show a static block on the home page.I am overriding module_cms and add this code in cms_index-index but it's showing only last block
User0434
  • 1,155
  • 2
  • 15
  • 39
15
votes
3 answers

How to override a template file in module creation in Magento2

I want to override : vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml I have copied and pasted it in my custom module at : app/code/Hello/Custom/view/frontend/templates/product/view/addtocart.phtml This is my…
Narendra.vyas
  • 357
  • 1
  • 3
  • 7
1
2 3
99 100