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
122
votes
8 answers

Uncaught SyntaxError: Unexpected token u in JSON at position 0

Only at the checkout and on individual product pages I am getting the following error in the console log: VM35594:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse () at run (layout.min.js:9) at…
Howli
  • 12,291
  • 19
  • 47
  • 72
113
votes
23 answers

how can I enable PHP Extension intl?

I am going to install Magento2 at my local server and it gives me following error notice. I am using XAMPP. When I tried to enable it from php.ini file it throws another error for missing dll: The program can't start because MSVCP110.dll is…
Yasin Mushtaq
  • 1,139
  • 2
  • 8
  • 4
48
votes
20 answers

To enable extensions, verify that they are enabled in those .ini files - Vagrant/Ubuntu/Magento 2.0.2

When installing Magento 2.0.2 via composer getting this error: Problem 1 - Installation request for magento/product-enterprise-edition 2.0.2 -> satisfiable by magento/product-enterprise-edition[2.0.2]. - magento/product-enterprise-edition 2.0.2…
Verse
  • 1,403
  • 1
  • 14
  • 21
36
votes
16 answers

How do I install the sample data after setting up Magento2?

I want to install sample-data after successfully Magento setup. What is the process of installing the sample-data after Magento installation in Magento2?
Suresh Chikani
  • 948
  • 2
  • 9
  • 23
29
votes
4 answers

Magento 2 - How to call a custom phtml file in another phtml file, xml layout, static block and cms page?

I am creating a magento 2 theme. I just want to know how can I add .phtml file in xml layout, static block, cms page or in another .phtml file. Thank You.
Milan Chandro
  • 2,342
  • 1
  • 18
  • 25
28
votes
8 answers

A faster route to deploying static content in Magento 2? Dev to Live etc?

This is my environment. Please note this is also set in the relevant development modes and production modes. Dev: https://ar.dev.loc/ https://en.dev.loc/ Live: https://ar.site.com/ https://en.site.com/ I am using a multi store setup with Arabic…
TheBlackBenzKid
  • 26,324
  • 41
  • 139
  • 209
26
votes
5 answers

Magento 2 - 'Area code not set:' after adding sample data

So i've gotten magento 2 working all running fine, I've even started on my own theme, but i've tried to install the sample data after I've installed magento. And it has returned 'Area code not set:' in terminal, below is a little run through of my…
andy jones
  • 904
  • 1
  • 12
  • 37
23
votes
7 answers

How to turn on error messages in magento 2

I have installed magento 2 and it working.I just created the Hello world module and it working now. My issue was I had called non existing method in execute method. While trying to get it to work I tried to load the page it shows blank white screen,…
Ranjit Shinde
  • 1,121
  • 1
  • 7
  • 22
23
votes
3 answers

How to install/enable intl and xsl extensions after installing PHP 7

I installed php7/apache2.4/mysql5.6 via this script, but it turns out that the extensions xsl and intl are missing (need them to run Magento2). I'm using Ubuntu 14.04.
Henry
  • 593
  • 2
  • 5
  • 12
22
votes
14 answers

Magento 2 goes terribly slow (Developer mode)

Recently I started developing magento 2 projects. First I tried on Windows with xampp and it was a mess... every refresh page was a nightmare, about 30-40sec to load the page. I read about it, that Windows system files is so slow working with…
Marc Pont
  • 988
  • 2
  • 14
  • 34
20
votes
6 answers

Magento 2 - Event dispatched when a user clicks "Go To Checkout"

What is the name of the event that is dispatched when a customer clicks "Go To Checkout" after adding stuff on their cart? I want to register that a user started a checkout process for analytics. Specifically, I need to capture the contents of the…
satnam
  • 1,457
  • 4
  • 23
  • 43
19
votes
5 answers

how to change theme in Magento2

UPDATE: this could be a version issue, should I update to the non-stable 2.0.4? I know this should seem obvious to someone, but clearly it's not. as state in the documentation In Admin, go to Stores > Configuration > Design. but there is only a…
aahhaa
  • 2,240
  • 3
  • 19
  • 30
18
votes
8 answers

The stock item was unable to be saved. Please try again. Magento 2.4.0

I installed magento 2.4.0 on my Linux server from godaddy. I'm unable to add the products to it. It is showing the Error is The stock item was unable to be saved. Please try again. Can any one help me from this please
nikhil gantyala
  • 311
  • 1
  • 2
  • 6
18
votes
6 answers

How to remove test orders from Magento2

Please explain me the proper way to remove the test orders in Magento2 website.I removed all records from 'sales_order' table but still the orders exist in the backend.
VIPIN A ROY
  • 1,761
  • 5
  • 28
  • 41
18
votes
5 answers

Get shopping cart details in Magento2

I know in Magento 1 you can get the shopping cart details on any page with: $cart = Mage::getModel('checkout/cart')->getQuote(); foreach ($cart->getAllItems() as $item) { $productId = $item->getProduct()->getId(); $productPrice =…
Jimmery
  • 9,783
  • 25
  • 83
  • 157
1
2 3
99 100