Questions tagged [magento2]

Magento 2 is an eCommerce project facilitating the improvement of Magento Core products. Written in PHP-Zend Framework. Available under both open-source and commercial licenses via Adobe Commerce.

Magento 2 is the next major release of Magento. It differs from previous versions of Magento substantially, including fundamental changes such as directory structure and naming conventions.

It has been released for GA (General availability) on November 17, 2015 Magento Ushers In New Era of Commerce Innovation with Next-Generation Platform

Release Notes : Release Notes 2.2

Release Notes : Release Notes 2.3

Release Notes : Release Notes 2.4

Latest Release: Magento 2.4.5 Release notes

Links :

5108 questions
18
votes
11 answers

How to remove "My Wish List" and "Compare Products" blocks from Magento 2.0 Luma template?

I have spent a lot of hours trying to remove "My Wish List" and "Compare Products" blocks from Luma template. Besides, I need to change and remove some of the bottom links. I cannot find where to modify. Can you help me, please? Thanks
jstuardo
  • 3,901
  • 14
  • 61
  • 136
18
votes
3 answers

Get the current page url in Magento 2.0

I am trying to retrieve the current page url in a template file, but I can't figure out how to do it in Magento 2.0. Does anyone know how to get it? (keep in mind I am working in a template / phtml file)
Seregmir
  • 548
  • 1
  • 5
  • 16
15
votes
3 answers

Magento2 Backup disabled

Magento Version 2.2.7. I wanted to backup the system and database with the Tools given by Magento2. But in the backend when I go to System - Backups, I get the message Backup functionality is disabled Backup functionality is currently disabled.…
Chequille
  • 161
  • 1
  • 1
  • 5
15
votes
3 answers

Magento2 : how to reinstall magento setup?

I am installing magento2 with sample-data. all requirement is completed and the Magento installation process starts but stops after some process. I have to wait for the complete installation process but nothing happens. so I need to restart my…
Suresh Chikani
  • 948
  • 2
  • 9
  • 23
14
votes
1 answer

How to add widget to layout in Magento 2?

Is there a way to add widget to the layout xml? I know about the layout updates from the backend, but I wanted to know if there is a way to add widgets the same way as static blocks?
V.S
  • 314
  • 1
  • 4
  • 14
13
votes
4 answers

Install specific PHP version for mac

I need a specific version of PHP for magento (7.1.3) With home brew or curl, I can only specify one decimal (7.1, 7.2 etc). Running brew install php@7.1 ultimately gets me php -v PHP 7.1.29 (cli) (built: May 21 2019 20:05:17) ( NTS ) Copyright (c)…
Brandon
  • 335
  • 2
  • 4
  • 15
13
votes
5 answers

How to get current category in magento2?

How can i get current category in magento2 ? I want to get category name and category id in custom phtml file.
Makwana Ketan
  • 1,380
  • 1
  • 14
  • 22
12
votes
2 answers

Unexpected end of JSON on GraphQL query with React while no issue with GraphiQL

I am trying to do a very basic query via React with Apollo. When I do this query in GraphiQL I nicely get my results back but in my app I get an undefined data object. And a error with a message: Network error: Unexpected end of JSON input The…
Kay Int Veen
  • 577
  • 1
  • 5
  • 17
12
votes
7 answers

Magento 2 - Fotorama

I have a problem with the ProductSlider on the Productdetail Page. I dont know how to set the Container width & heights. I found some configuration for the Fotorama Plugin but there is nothing about width and height. My Productimages have another…
user5138425
  • 121
  • 1
  • 1
  • 5
12
votes
3 answers

Magento2 not reading my requirejs-config.js

I'm new to Magento2 and trying to figure out how RequireJS works in Magento. Here is my situation: I have following module: app/code/Mymodule/Test/view/frontend/requirejs-config.js Here is the content of this file: var config = { map: { '*': { …
Ashutosh
  • 4,371
  • 10
  • 59
  • 105
12
votes
5 answers

Installing magento 2 does not deploy the /pub/static/frontend and backend

I'm having this weird error and I did not suceed to find the origin. First of all I would like to say that I succeeded to perform some installation of Magento 2 on a windows os with a xampp server before. I'm now trying to install a magento instance…
Anselme
  • 479
  • 2
  • 9
  • 32
11
votes
4 answers

Magento 2 error Current version of RDBMS is not supported. Used Version: 10.1.37-MariaDB. Supported versions: MySQL-8, MySQL-5.7, MariaDB-(10.2-10.4)

I am running a magento 2.4 project but current not in position to update mysql version. any way to skip that error ? Magento 2 error Current version of RDBMS is not supported. Used Version: 10.1.37-MariaDB. Supported versions: MySQL-8, MySQL-5.7,…
Soniya Garg
  • 155
  • 1
  • 2
  • 7
11
votes
3 answers

PHP memory size exhausted in docker with magento/bin setup:di:compile

I got this error in log file after run php bin/magento setup:di:compile or php bin/magento deploy:mode:set production in php:7.1-fpm image's container. [2019-02-04 12:15:26] main.ERROR: /usr/local/bin/php -f /var/www/html/m230/bin/magento…
Chung
  • 174
  • 1
  • 3
  • 10
11
votes
2 answers

Magento 2 : Add custom script just after head tag

i want to add custom script just after the start of head tag. like. i tried to add code in default_head_blocks.xml
Sandip Dutt
  • 175
  • 1
  • 3
  • 8
11
votes
7 answers

Magento stuck on " It's time to change your password."

I didn't use Magento 2.0.2.0 CE for about 1 month. After that I logged in to admin after, opened my account/Account information page, the title “It's time to change your password.” was shown. When I tried to open my products (or settings page), the…
Maxim Kitsenko
  • 2,042
  • 1
  • 20
  • 43