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.
magento2
5,097
questions
129
votes
9
answers
298k
views
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 (&...
119
votes
23
answers
601k
views
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 ...
50
votes
20
answers
296k
views
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....
38
votes
16
answers
66k
views
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?
29
votes
4
answers
60k
views
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.
28
votes
8
answers
15k
views
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....
26
votes
5
answers
16k
views
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:' ...
23
votes
7
answers
63k
views
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 ...
23
votes
3
answers
61k
views
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.
22
votes
11
answers
29k
views
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 ...
22
votes
14
answers
19k
views
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 ...
21
votes
6
answers
6k
views
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. ...
19
votes
5
answers
21k
views
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 &...
18
votes
6
answers
32k
views
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.
18
votes
11
answers
49k
views
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 ...