All Questions
10,782
questions
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 ...
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 ...
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 ...
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 ...
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
//...
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 ...
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?
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 ...
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 ...
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 ...
39
votes
24
answers
207k
views
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 ...
45
votes
6
answers
49k
views
How to add fee to order totals in Magento 2
The following link will describe
http://excellencemagentoblog.com/blog/2012/01/27/magento-add-fee-discount-order-total/
to add fee to order totals in Magento 1.
Now this functionality is moved to ...
45
votes
3
answers
14k
views
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
{{...
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.
...
40
votes
9
answers
85k
views
Magento 2 404 error for scripts and css
I have downloaded and installed Magento 2 from https://github.com/magento/magento2
But I am getting 404 error for scripts and cs located in http://localhost/magento2/pub/static/
I have checked, ...
142
votes
22
answers
306k
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 ...
50
votes
6
answers
31k
views
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 ...
43
votes
18
answers
80k
views
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 ...
52
votes
8
answers
45k
views
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. ...
43
votes
6
answers
72k
views
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.
35
votes
10
answers
35k
views
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 ...
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/...
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 ...
55
votes
3
answers
30k
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 ...
44
votes
2
answers
26k
views
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 ...
35
votes
4
answers
87k
views
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?
37
votes
9
answers
16k
views
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: https://magento.com/security/patches/supee-10415
...
30
votes
4
answers
20k
views
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 ...
29
votes
3
answers
32k
views
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 ...
24
votes
6
answers
13k
views
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 ...
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 ...
41
votes
3
answers
87k
views
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 ...
8
votes
2
answers
5k
views
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\...
8
votes
6
answers
44k
views
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 ...
29
votes
1
answer
35k
views
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 ...
14
votes
4
answers
24k
views
Remove Shipping steps in Onepage Checkout
I'm using CE 1.9.1.0.
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 ...
8
votes
10
answers
9k
views
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?
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 ...
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 ...
36
votes
11
answers
12k
views
Security Patch SUPEE-10266 - Possible issues?
A new security patch is out for Magento 1, addressing 13 APPSEC issues
https://magento.com/security/patches/supee-10266
What common issues do you have to watch out for when applying this patch?
...
31
votes
6
answers
65k
views
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 ...
27
votes
3
answers
20k
views
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 ...
22
votes
5
answers
36k
views
Magento 2: How to create a customer custom attribute? [duplicate]
What are steps to create a custom attribute for Customer entity in Magento 2?
17
votes
3
answers
33k
views
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
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 ...
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....
43
votes
12
answers
62k
views
Customer Login Doesn't Work in Magento 1.9
I just did a fresh installation of Magento 1.9.0.1 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 ...
33
votes
15
answers
98k
views
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:
26
votes
13
answers
74k
views
Remove /index.php from the Magento URL gives 404 error
I am using Magento ver. 1.7.0.2.
Here it is the link to my website: http://dev.blokeundees.com.au/
I have to remove the /index.php folder from URLs so I edited the .htaccess file and backend too (...
16
votes
4
answers
25k
views
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/...