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
1
vote
2 answers

Magento 2 - Get Customer Address Id through Shipping Address at Checkout Session

I'm having trouble with getting customer address Id as it returns a null value. This is what I have tried: $checkout = $this->_sessionCheckout->getQuote(); if ($checkout) { $shippingAddress = $checkout->getShippingAddress(); if…
1
vote
1 answer

Anchor Link Not Scrolling Down

I'm having a little trouble with an image linked to a section of the page. This link works fine when input into the bar and loaded, it'll scroll down but once the base page is loaded, if i click the image with the link, it doesn't want to go down…
Neale
  • 11
  • 4
1
vote
1 answer

Add custom button on add/edit product page

https://i.stack.imgur.com/uHZ33.png How to add a custom button, in add/edit product page (magento2). I need to open popup on clicking of the button.
sumit
  • 37
  • 3
1
vote
1 answer

find reason for automatic encoding detection (UTF-8 vs Windows-1252)

I have a CSV with content that is UTF-8 encoded. However, various applications and systems errorneously detect the encoding of the CSV as Windows-1252, which breaks all the special characters in the file (e.g. Umlauts). I can see that Sublime Text…
fritzmg
  • 2,494
  • 3
  • 21
  • 51
1
vote
1 answer

Realex Payments HPP in Magento 2.3 - 302 Redirect?

I am currently upgrading our Magento 1.9.x store to Magento 2.3. I have been working to get everything up and running, including installing all extensions (or equivalent) used previously on our old Magento install. I am having an issue with Global…
1
vote
1 answer

Set attribute value in magento 2

I have created custom attribute named my_shipping_charge in magento 2 programmatically. I set default value '0' for this attribute. It works fine when I create new product. But what if I want to set this attribute for already created product what…
Khooshbu Patel
  • 80
  • 1
  • 12
1
vote
0 answers

AEM create magento orders

After integrating the AEM with Magento, order are only creating in AEM, it shows only AEM order ID, how to create order in magento so that we can get the magento order id instead of AEM order ID.
Jagi Yadav
  • 111
  • 6
1
vote
2 answers

Can't create a mysql table: foreign key constraint issue

I deleted a sql table (without key constraint check) and now i can't regenerate from sql query or import again. creation query: SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET…
Alfredo Lanzetta
  • 314
  • 4
  • 18
1
vote
1 answer

How to inject the product factory dependancy in plugin?

I am a new Magento 2 user and I'm trying to develop a plugin, but iv been stuck on this problem for the past 2 days. I am trying to programmatically add a new product to the Magento 2 database. For this, I figured out I need to inject de product…
Michael Guimaraes
  • 333
  • 1
  • 3
  • 20
1
vote
2 answers

Mage 2 Refused to execute script from '' because its MIME type ('text/html') is not executable

I am learning Magento2. I installed it but an error occurs while I fire url on browser. I installed Magento on Windows 7 using xampp server but I receive errors like: Refused to execute script from '' because its MIME type ('text/html') is not…
Pramod Badgujar
  • 95
  • 1
  • 1
  • 5
1
vote
1 answer

Php memory Limit Exceed, while runing Magento 2 Commands

I tried to deploy static content of magento 2 but php memory limit exceed error pops up every time. Even my cron jobs are not running it giving me the same error in cron.log files.
Rohit
  • 33
  • 6
1
vote
1 answer

Get categories and subcategories as tree display

How do I get the Categories and the subcategories recursively using Magento 2? I was able to display all categories but the problem is I need to display it in a treelike manner such as below Default category Home About…
MadzQuestioning
  • 3,341
  • 8
  • 45
  • 76
1
vote
2 answers

Why are my styles not applying after a custom CSS file is included?

I am using Magento 2.2.3. In my magneto theme added custom CSS file in the below path: project/app/design/frontend/vendor/theme/web/css/custom.css I added source file in default_head_blocks.XML file. after that added a page with following code in…
Bala
  • 57
  • 2
  • 12
1
vote
0 answers

Magento 2 REST API Custom Order Status Endpoint?

I am using the Magento 2 REST API: https://devdocs.magento.com/guides/v2.3/rest/list.html Is there an endpoint to pull custom order statuses? For example, a user can have these statuses: Complete Processing Pending A user adds a custom status called…
Joseph Anderson
  • 4,114
  • 4
  • 45
  • 99
1
vote
1 answer

Need to run "setup:static-content:deploy -f" every time to update css in magento 2 developer mode

:: Magneto 2.3 :: mode : developer CMD SCREEN SHOT In CMD after run command getting the warning: Manual static content deployment is not required in "default" and "developer" modes. But not getting the latest CSS changes in - pub\static\frontend If…