All Questions

Filter by
Sorted by
Tagged with
175 votes
10 answers
26k views

Studying to become a Magento Certified Developer

I have been considering studying to become a Magento Certified Developer. When I look at the study guide I see a lot of questions that I can answer, however, the problem is I don't really know what ...
Rick Kuipers's user avatar
  • 4,260
160 votes
10 answers
183k views

To use or not to use the ObjectManager directly?

Ok, so yesterday we had a big talk with other people from the Magento community regarding the direct use of the ObjectManager in classes/templates. I'm already aware of the reasons why we shouldn't ...
Raphael at Digital Pianism's user avatar
148 votes
5 answers
12k views

How to write a custom extension?

Because I had a lot of issues lately with free and commercial extension I've decided to ask this question and answer it with the steps I usually follow when writing an extension. Feel free to edit the ...
Marius's user avatar
  • 198k
142 votes
22 answers
305k views

Magento 2: Replacement for Mage::log method?

In Magento 1, if you wanted to send a message to the logs, you'd use a static method on the global Mage class. Mage::log($message, Zend_Log::DEBUG, "my-log-file.log"); Is there an ...
Alana Storm's user avatar
  • 44.3k
141 votes
15 answers
57k views

Security Patch SUPEE-7405 - Possible Problems?

It's time for another patch day, SUPEE-7405 for Magento 1.x is out and the list of fixes is long: https://magento.com/security/patches/supee-7405 After the experience with the last patches, I have to ...
Fabian Schmengler's user avatar
125 votes
5 answers
50k views

What is the Best Magento 1 Server Setup?

We are currently working with a requirement that first response from the web server must come in under 200ms in the UK. Currently under 2 dedicated web servers under load balancer and 1 db server, we ...
lukefowell's user avatar
  • 1,967
122 votes
9 answers
52k views

How to test or style the order success page?

If I reload the checkout/onepage/success page, I am directed to the cart. So, when debugging or styling the order success page, I always have to make a new order. How can I do this more efficiently?
Alex's user avatar
  • 13.7k
113 votes
13 answers
76k views

Magento core_url_rewrite table excessively large

I've noticed a large amount of reports that this table itself can become extremely cluttered, I'm running a site with ~5000 SKUs and ~250 categories (single-store) and a resultant core_url_rewrite ...
Moose's user avatar
  • 7,495
110 votes
30 answers
52k views

Security Patch SUPEE-8788 - Possible Problems?

The latest Magento 1 security patch SUPEE-8788 contains 17 APPSEC updates, so it is very important to apply it as soon as possible. On the other hand, there are many potential backward compatibility ...
Fabian Schmengler's user avatar
110 votes
23 answers
36k views

Security Patch SUPEE-9767 - Possible issues?

A new security patch is out for Magento 1, addressing 16 APPSEC issues: https://magento.com/security/patches/supee-9767 Seven of the vulnerabilities score 8.0 or higher for CVSSv3 Severity, and they ...
Ryan Hoerr's user avatar
  • 12.2k
108 votes
6 answers
45k views

When Should We Use a Repository and Factory in Magento 2?

I have gone through a couple of tutorials in Magento 2, and this confuses me a little. I can see there are basically two ways by which we can read/write business entities: Retrieve Data Using A ...
Rajeev K Tomy's user avatar
105 votes
4 answers
56k views

Explanation of UI Component Grid in Magento 2

Is there a good explaination and/or sample of the bare minimum configuration needed to create a UI Component Grid in Magento 2? I know there are myriad core components, such as ./vendor/magento/...
Alana Storm's user avatar
  • 44.3k
103 votes
12 answers
38k views

How can I bootstrap Magento 2 in a test.php script?

In magento 1 I could create a file where I only needed to instantiate the Mage_Core_Model_App class and then I could add my "dirty" code for test purposes. Something like this test.php: <?php //...
Marius's user avatar
  • 198k
102 votes
16 answers
191k views

New order email confirmation not being sent

I have upgraded my website to 1.9.1 and now my customers are not receiving order confirmation email. I tried sending through the admin panel but nothing happens, also no update email is being ...
user16826's user avatar
  • 1,029
100 votes
18 answers
200k views

Magento 1.9 Can’t login to admin panel!

I have installed Magento 1.9. It was working well for a week. Suddenly yesterday, when I tried to log in to the Magento admin panel and I typed username and password, clicked the Login button and ...
SIBHI S's user avatar
  • 2,055
98 votes
5 answers
17k views

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 ...
Sander Mangel's user avatar
96 votes
15 answers
24k views

Where can I find a complete list of Magento events?

I know that Magento has a hook-like system called events. Does anyone have a complete list or a script which can be used to determine which events can be called?
benmarks's user avatar
  • 16.7k
90 votes
31 answers
129k views

Required parameter 'theme_dir' was not passed

What is the error message: Required parameter 'theme_dir' was not passed Is it related to in Magento 2? And how can this problem be fixed?
hakre's user avatar
  • 2,821
89 votes
13 answers
200k views

Magento 2 Reindexing - One or more indexers are invalid. Make sure your Magento cron job is running

I couldn't find the way to do reindexing in mass actions on magento 2. Seems like you need to run it from cronjob. Is there an alternative way to reindex data in magento 2 from backend or command ...
Harit's user avatar
  • 1,293
88 votes
6 answers
92k views

Difference between getSize() and count() on collection

I have heard many times that they both are the same. But I am facing a weird issue, in the product collection of CatalogSearch module, count() is returning correct product count while getSize() is ...
MagExt's user avatar
  • 1,833
87 votes
16 answers
141k views

How to create custom Log file in Magento 2?

In Magento 1, it was common to segment logs into different files (to separate logs for payment methods, etc.). That's as easy as changing the $file parameter of Mage::log. Magento 2 has changed to ...
Ryan Hoerr's user avatar
  • 12.2k
86 votes
2 answers
25k views

Access Denied errors after installing SUPEE-6285

After installing the SUPEE-6285 patch on our Magento 1.7.0.2 store the system is showing an "Access Denied" error when attempting to access all custom modules for users who have selective permissions (...
Chris's user avatar
  • 1,389
84 votes
6 answers
12k views

What is the best deploy strategy?

Setting up a Magento store is not only a matter of developing self-installable extensions but requires also a lot of "manual entry" operations such as creating end editing attributes, categories, ...
Alessandro Ronchi's user avatar
81 votes
4 answers
29k views

Fundamentals for debugging a Magento store

How can I debug my Magento store This is a question that isn't all too relevant to us now, but had a Magento SE site existed 5 years ago, it probably would have been our first question. For those ...
Ben Lessani's user avatar
  • 17.6k
80 votes
22 answers
135k views

How to check if customer is logged in or not?

How to find if a customer is logged in or not in Magento 2. If the customer is logged in then how to get customer data from a session?
Rakesh Jesadiya's user avatar
79 votes
14 answers
259k views

Magento 2 folder/file permissions

I suspect that the permissions might have gotten messed up on my Magento 2 installation. On the old versions I would run the following command to make folders 755 and files 644: find . -type f -exec ...
Neekoy's user avatar
  • 1,001
78 votes
13 answers
33k views

Magento 1.9.2.0 static block display issues

I have a website with multiple static blocks which was working in 1.9.1.0, but with 1.9.2.0 the static blocks start displaying sporadically, as they sometimes show the wrong block rather than the ...
w.k's user avatar
  • 883
77 votes
13 answers
84k views

Clearing Magento after testing

I am currently doing a lot of tests in Magento so I can get familiar with it. Unfortunately the database is extremely cluttered with my tests. I wish to clear up the database so I can start over again....
Deep Frozen's user avatar
  • 1,033
76 votes
2 answers
17k views

Magento 2 @escapeNotVerified

I see a lot of occurences of this comment /* @escapeNotVerified */ in the template files for Magento2. Does it have a special meaning? Is there any use for this? Examples: https://github.com/...
Marius's user avatar
  • 198k
73 votes
9 answers
66k views

Magento 2 How to unlock reindex process

I'm making some tests in Magento reindex process and I locked the stock index process. How can I unlock this process? Design Config Grid index has been rebuilt successfully in 00:00:02 Customer ...
Douglas Ianitsky's user avatar
72 votes
13 answers
29k views

Is Magento ready for PHP 7?

PHP 7 is reaching beta status and lots of testing is going on at the moment. Given that Magento caught up within the last year from "runs only on PHP 5.3" to "fully compatible with PHP 5.6", I would ...
Fabian Schmengler's user avatar
71 votes
5 answers
18k views

How to check which modules are affected by security patch SUPEE-6788

On October 27, 2015, Magento has released security patch SUPEE-6788. According to the technical details, 4 APPSEC's that have been fixed require some rework in local and community modules: APPSEC-...
Aad Mathijssen's user avatar
70 votes
8 answers
64k views

How to use the new repo.magento.com

I've generated a new Magento Connect key per the developer documentation instructions. How am I supposed to use this key? i.e., if I try getting info, I see the following. $ composer info magento/...
Alana Storm's user avatar
  • 44.3k
68 votes
13 answers
179k views

How to get Magento 2 base URL?

In Magento 1 Mage::getBaseUrl();, but in Magento 2 I have to pass responsible class object type in constructor. I don’t have the idea which class I have to pass?
sivakumar's user avatar
  • 257
67 votes
13 answers
108k views

'Area code not set' issue in custom CLI commands in Magento 2

I'm getting following error while updating data through CustomerRepositoryInterface [Magento\Framework\Exception\SessionException] Area code not set: Area code must be set before starting a ...
MJ.'s user avatar
  • 839
67 votes
4 answers
51k views

Magento 2: how do customer sections / sections.xml work?

I recently came accross a new concept in Magento 2 that I found interesting: customer sections Some of you may have notice the presence of sections.xml files that look like this: <?xml version="1....
Raphael at Digital Pianism's user avatar
65 votes
15 answers
46k views

How to force flush CSS cache on client side?

Suppose that we changed a lot of functionality for the module (templates, layouts, CSS) and we are going to move these changes to the production site, but a lot of customers have cached CSS in their ...
Nick's user avatar
  • 1,020
64 votes
3 answers
68k views

Adding custom attribute to Customer

We need a simple way to add an attribute to a customer record that is not editable by the customer or admin, only programatically. Essentially, we have an ExpressionEngine site coupled with Magento. ...
MB34's user avatar
  • 771
63 votes
6 answers
8k views

How do you give estimates for Magento upgrade?

Overview: This question was originally asked and later closed on StackOverflow. We stated in meta, that here is the right place for this question. This question is in favor to help to many people to ...
ceckoslab's user avatar
  • 837
62 votes
8 answers
98k views

How to disable Two factor Authentication module in Magento 2.4

How can I disable the Two-factor Authentication module using command-line ?
Softec's user avatar
  • 2,055
61 votes
6 answers
68k views

Magento 2: Changing a Block's Template

In Magento 1, as a module developer it's possible to change a block's template using layout XML code something like this <reference name="block_to_change"> <action method="setTemplate"&...
Alana Storm's user avatar
  • 44.3k
61 votes
8 answers
67k views

Magento 2 backend session timeout

In Magento 1.x the backend session timeout was set via: Backend -> System -> Configuration -> Admin -> Security -> Session Lifetime (seconds) Initially, my question was how to set this ...
Els den Iep's user avatar
59 votes
3 answers
28k views

What is the difference between type and virtualType

In the di.xml that comes with Magento2 there is a node type and a node virtualType. My questions is what is this virtualType and in what case should it be used instead of type? In some places it ...
David Manners's user avatar
59 votes
6 answers
102k views

How to get value from `core_config_data` table in Magento 2

Magento 1.x use Mage::getStoreConfig('sections/groups/fields') get data on core_config_data table. How to Magento2 get value from core_config_data table ?
LinoPham's user avatar
  • 3,748
58 votes
4 answers
26k views

Deprecated save and load methods in Abstract Model

I see that in the develop branch of the Magento 2 repo the methods load and save from Magento\Framework\Model\AbstractModel class are deprecated. But there are a gazillion classes in the core that ...
Marius's user avatar
  • 198k
57 votes
18 answers
120k views

Magento2: Re generate css file in pub/static folder

I have installed Magento 2 and set developer mode, then I have installed one module that contains css and js files. The module works fine and css and js files are rendering from pub/static folder. Now ...
chirag dodia's user avatar
  • 2,112
55 votes
11 answers
95k views

How to reset lost admin password in Magento 2?

I tried to reset the admin password via Phpmyadmin in admin_user table but this doesn't seems to work. Also on chrome I am getting "This webpage has a redirect loop" error when loading admin page.
Dev's user avatar
  • 1,144
55 votes
3 answers
29k views

How to implement service contract for a custom module in Magento 2?

As seen in this post : Deprecated save and load methods in Abstract Model the save and load methods are deprecated in the Magento 2 develop branch. Thus, the good practice is now to be implement ...
Raphael at Digital Pianism's user avatar
55 votes
5 answers
27k views

Running Magento in an AWS Environment

Hosting Magento, as everyone knows, isn't like hosting other PHP applications. How feasible is it to run Magento in an Amazon Web Services environment in 2013? What magic combination of AWS ...
Alana Storm's user avatar
  • 44.3k
55 votes
3 answers
18k views

Magento 2 as a headless solution

I want to know if there are some best practices to use Magento 2 as a headless E-commerce solution. A typical E-commerce in 2017 is to have an omni-channel solution which includes E-commerce CMS ...
Franck Garnier's user avatar

15 30 50 per page
1
2 3 4 5
2256