All Questions

81
votes
4answers
25k 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 ...
97
votes
30answers
48k 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 ...
104
votes
7answers
63k views

Magento 2: 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 ...
48
votes
11answers
103k 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 ...
89
votes
15answers
170k 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 ...
96
votes
23answers
33k 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 ...
83
votes
11answers
20k 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 //...
128
votes
15answers
52k 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 ...
43
votes
15answers
47k views

How to check if customer is logged in or not in magento 2?

How to find if customer is logged in or not in Magento 2. If customer is logged in then how to get customer data from session?
43
votes
3answers
13k 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 {{...
89
votes
16answers
175k 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 login to the Magento admin panel and I typed username and password, clicked Login button and nothing ...
56
votes
3answers
59k 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
6answers
68k 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.
34
votes
4answers
19k 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 ...
46
votes
6answers
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 ...
34
votes
7answers
53k 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, ...
22
votes
14answers
92k views

Magento 2 CSS and JavaScript not loading from correct folder

I am hoping that someone on here can help. 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 ...
40
votes
8answers
35k views

How to Override Core Block, Model and controller in Magento2

I'm stuck in overriding core model Blocks and controllers in Magento2. 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. ...
36
votes
9answers
14k 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 ...
93
votes
13answers
61k 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 ...
75
votes
4answers
36k 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/...
29
votes
3answers
30k 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 ...
22
votes
4answers
16k 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 ...
42
votes
2answers
24k 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 ...
27
votes
1answer
30k 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 ...
84
votes
13answers
74k 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 equivalent in ...
71
votes
13answers
31k 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 ...
34
votes
11answers
11k 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? ...
21
votes
3answers
15k 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 ...
11
votes
6answers
3k 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 ...
12
votes
2answers
18k views

Magento 2: How to create a customer custom attribute?

What are steps to create a custom attribute for Customer entity in Magento 2?
39
votes
11answers
55k views

Customer Login Doesn't Work in 1.9

I just did a fresh installation of Magento 1.9.0.1 and I am seeing some very odd behavior with the customer login form. In Chrome (version 36) the login form does not work. I am just redirected to ...
28
votes
3answers
36k views

How to use Magento 1.9.1.0 Configurable Swatches in Default package theme (or a custom theme)?

UPDATE: My answer now supports automated change of the product base image after swatch. You can also find a more detailed tutorial on how to do this including more images here. Magento CE 1.9.1....
18
votes
3answers
11k views

Adding links to category menu

I know this is an old question with a lot of answers, most of them suggest editing the menu template but that does not work for me. There is no need to explain why, let's say I'm a bit OCD about doing ...
25
votes
12answers
62k views

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

I am using Magento ver. 1.7.0.2. Here is the link of my website: http://dev.blokeundees.com.au/ I have to remove /index.php from the URL so I have changed into the .htaccess file and backend (secure,...
11
votes
4answers
22k 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 ...
66
votes
9answers
142k 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 ...
47
votes
3answers
11k 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 ...
62
votes
5answers
13k 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 ...
31
votes
3answers
9k 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 ...
15
votes
2answers
10k views

What is the correct way/approach to modify a Magento template?

Please suggest me the right approach, I want to customize the "EMAIL to Friend" page into pop up window, when user click on the button (email this product). By enabling template hinting, I found out ...
8
votes
7answers
6k 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?
107
votes
4answers
48k views

What is the Best Magento 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 ...
67
votes
12answers
72k 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....
26
votes
10answers
27k views

Adding a non-category link to the navigation links in magento 2

I'm not sure what I'm doing wrong here. The block which holds the category links in is referenced to as navigation.sections. I thought by directing the following arguments toward the container I would ...
15
votes
2answers
13k views

How to create a Child Theme in Magento 2

I want to modify certain aspects of the out-of-the-box Luma theme but I would like to do it by preserving the original file(s) and also ensuring that whenever I update Magento I preserve my changes as ...
16
votes
5answers
21k views

No images or JS on new Magento 2 installation

I've just installed Magento 2 onto my production server under a development. subdomain. The install appeared to have been successful but I've noticed there are no images or working javascript in both ...
24
votes
3answers
43k 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?
17
votes
6answers
7k views

How to allow only one product in a cart?

We have a requirement, wherein a customer will be allowed to add only one product to the cart at a time. However he/she can add any quantity of that product. How can I prevent a product from adding ...
8
votes
1answer
758 views

keeping customers logged in after deleting var/session in magento

we are facing some problem in live site as below link. For my knowledge if we delete var/session folder, than we have to login to both frontend and backend . To solve this problem : Live site blank ...

15 30 50 per page