All Questions

Filter by
Sorted by
Tagged with
81 votes
4 answers

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
160 votes
10 answers

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
79 votes
14 answers

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
110 votes
30 answers

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
103 votes
12 answers

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

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
80 votes
22 answers

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
110 votes
23 answers

Security Patch SUPEE-9767 - Possible issues?

A new security patch is out for Magento 1, addressing 16 APPSEC issues: Seven of the vulnerabilities score 8.0 or higher for CVSSv3 Severity, and they ...
Ryan Hoerr's user avatar
  • 12.2k
141 votes
15 answers

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: After the experience with the last patches, I have to ...
Fabian Schmengler's user avatar
100 votes
18 answers

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
39 votes
24 answers

Magento 2 CSS and JavaScript not loading from correct folder

I am attempting to install and run Magento 2 on WAMP on a Windows 7 machine with little success. After jumping through the many and various hoops to get the site to load I am now faced with 404 ...
E.Gain's user avatar
  • 393
45 votes
6 answers

How to add fee to order totals in Magento 2

The following link will describe to add fee to order totals in Magento 1. Now this functionality is moved to ...
Sivakumar K's user avatar
  • 2,013
45 votes
3 answers

APPSEC-1057 How to add variables or blocks to the white list tables

APPSEC-1057 (part of SUPEE-6788) states Magento now includes a whitelist of allowed blocks or directives. If a module or anyone uses variables like {{config path=”web/unsecure/base_url”}} and {{...
paj's user avatar
  • 5,755
64 votes
3 answers

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
40 votes
9 answers

Magento 2 404 error for scripts and css

I have downloaded and installed Magento 2 from But I am getting 404 error for scripts and cs located in http://localhost/magento2/pub/static/ I have checked, ...
piyush_systematix's user avatar
142 votes
22 answers

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
50 votes
6 answers

Critical Reminder: Download and install Magento security patches. (FTP with no SSH access)

The Magento security patches look like they are .sh files, how would someone apply these patches without SSH access to their Magento installations? Also, are these patches cumulative? IE: Will they ...
SR_Magento's user avatar
  • 5,209
43 votes
18 answers

Magento 2.2: Unable to unserialize value?

Running into issues on a site running Magento 2.2.0-rc3.0/PHP 7.0.23 The following issue occurs with all 3rd party extensions either enabled or disabled. When adding an item to comparison from ...
Chuck's user avatar
  • 709
52 votes
8 answers

How to Override Core Block, Model and controller in Magento2

I'm stuck in overriding core model Blocks and Controllers in Magento 2. Can any one help on this? Let's take list toolbar as example where I need to add a new sort option called sort by most popular. ...
Pradeep Kumar's user avatar
43 votes
6 answers

Magento upgrade from 1.7 to 1.9

I need to upgrade my Magento store from 1.7 to 1.9. I am very new to Magento, SSH and MySQL. I was just wondering what is the easiest way to upgrade without breaking my website.
Adam Allen's user avatar
  • 2,205
35 votes
10 answers

Magento 2 - How to add captcha to a custom form

I'm developing a custom module which contains a form submission. I would like to add a captcha to it. And we want to use the Magento default captcha library so that the captcha is consistent with the ...
TFS's user avatar
  • 4,289
105 votes
4 answers

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
108 votes
6 answers

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
55 votes
3 answers

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
44 votes
2 answers

When should I use the Magento Compiler

I often see people mention they use the compiler feature of Magento. I do never and wonder, which cases you should use it and how much performance gain you have then. [DISCLAIMER]: As I got an edit ...
Flyingmana's user avatar
  • 6,127
35 votes
4 answers

How to add a custom CSS file in Magento 2

Is there a way to create my own CSS file that loads last in the cascade? If so, how and where do I add my custom CSS file?
H. Ferrence's user avatar
  • 1,021
37 votes
9 answers

Security Patch SUPEE-10415 - Possible Issues?

New Magento 1 patch has been released, SUPEE-10415. This patch provides protection against several types of security-related issues Info page: ...
Icon's user avatar
  • 2,439
30 votes
4 answers

Theming for Magento 2 - Starting from scratch

Some of you probably read that topic regarding theming from scratch for Magento 1: Theming - starting from scratch I was wondering, what would be the best practice to develop a theme from scratch for ...
Raphael at Digital Pianism's user avatar
29 votes
3 answers

How to implement translations in design template package CSV's? How does echo $this->__('Text') work?

I have a design package setup like so: design/frontend/package_name/theme_name/locale/ under which I have de_DE, en_GB etc, under which I have corresponding translate.csv files with the various ...
waffl's user avatar
  • 723
24 votes
6 answers

Magento 2: When should I run which commands?

I have been working with Magento 2 for 2 months now. I realized that I am using bin/magento setup:upgrade way too much. I think I do not know when I have to run that command. Here are the situations ...
Bunyamin Inan's user avatar
113 votes
13 answers

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
41 votes
3 answers

Extending / Overriding JS in Magento 2

As Magento2 is using RequireJS for loading scripts, and there's no more skin folder, I've stuck with a problem: How can I replace Magento's module JS file by my modified version? For example — the ...
Dmytro's user avatar
  • 1,080
8 votes
2 answers

How to set custom tax price during add to cart in Magento 2

I am adding product to cart using ajax call. Here is my controller code. use Magento\Framework\Controller\ResultFactory; use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\...
Jafar Pinjar's user avatar
  • 1,929
8 votes
6 answers

How to create order programmatically in Magento 2?

I have special order form and now I need to create orders without payment. So the payment needs to be skipped. I am not sure what would be the best way to accomplish this part. Should I send my form ...
codelogn's user avatar
  • 521
29 votes
1 answer

Add new field in magento(1.9) customer registration

I like to add new field in customer registration and admin customer creation form. The field name is license number. I searched so many links related to my requirement but those do not work in ...
senthil's user avatar
  • 1,707
14 votes
4 answers

Remove Shipping steps in Onepage Checkout

I'm using CE I'm trying to remove the Shipping Information and Shipping Method steps from onepage checkout but with no success. Perhaps someone could help me out or point me in the right ...
JackWhite's user avatar
  • 153
8 votes
10 answers

How to create simple module in magento 2

I'm new to magento2. I want to create simple Hello World module in magento 2. How to create this module?
Saravanan DS's user avatar
  • 1,116
78 votes
13 answers

Magento static block display issues

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

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
36 votes
11 answers

Security Patch SUPEE-10266 - Possible issues?

A new security patch is out for Magento 1, addressing 13 APPSEC issues What common issues do you have to watch out for when applying this patch? ...
Luke Rodgers's user avatar
  • 4,432
31 votes
6 answers

Magento 2 How to Add a New Column to Orders Grid

I've added a new column to the table sales_order called export_status, now I want to add new order grid column with the data from the new sales_order column. I've managed to add column to the ...
André Ferraz's user avatar
27 votes
3 answers

New order email being sent twice

I'm using Magento 1.9.1 and when creating a new order, whether it's from the frontend or Admin, the system is sending out 2 emails - both the same! I've looked on the net and found a bug which was an ...
Christopher Thrower's user avatar
22 votes
5 answers

Magento 2: How to create a customer custom attribute? [duplicate]

What are steps to create a custom attribute for Customer entity in Magento 2?
huzefam's user avatar
  • 2,576
17 votes
3 answers

How to Add Custom fields to Checkout page in Magento2

I need to add two custom fields in each shipping and payment steps of checkout page in Magento 2 and also data should be saved in needed tables how to do it in Magento 2
Pradeep Kumar's user avatar
89 votes
13 answers

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
77 votes
13 answers

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
43 votes
12 answers

Customer Login Doesn't Work in Magento 1.9

I just did a fresh installation of Magento and I am seeing some very odd behaviour with the customer login form. In Chrome (version 36) the login form does not work. I am just redirected to ...
Josh Pennington's user avatar
33 votes
15 answers

magento 2 admin url not working and loaded frontend is all messy

Admin url is showing 404 error after installing magento 2 on wamp server and frontend design is all messy and css is not linked to it.Error visuals are shown below. Frontend error:
Arun Pal's user avatar
  • 523
26 votes
13 answers

Remove /index.php from the Magento URL gives 404 error

I am using Magento ver. Here it is the link to my website: I have to remove the /index.php folder from URLs so I edited the .htaccess file and backend too (...
Udit Gupta's user avatar
16 votes
4 answers

Override abstract class in Magento 2

In Magento 1 I could copy abstract class to local or community directory and Magento used it, when autoload load this class. Is there some solution to make to Magento loads my class instead vendor/...
goral's user avatar
  • 659

15 30 50 per page
2 3 4 5