Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [magento-1]

General questions about Magento 1 not specific to a minor version. You can use it to distinguish from Magento 2, but if you have issues with a specific installation, use the appropriate magento-1.x tag instead.

165
votes
8answers
24k 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 which I can answer, however, the problem is I don't really know what ...
137
votes
5answers
10k 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 ...
136
votes
15answers
53k 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 ...
104
votes
30answers
49k 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
23answers
34k 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 ...
100
votes
13answers
66k 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 ...
91
votes
15answers
22k 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?
63
votes
3answers
62k 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. ...
58
votes
15answers
40k 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 ...
52
votes
6answers
16k views

Modern Magento 1.X Workflow and Development Tools

I am new to Magento Development ( CE 1.6 ) and am still trying to define my workflow. I currently develop on Mac OSX 10.8 with Netbeans 7.3, but I find that Netbeans is slow and freezes on me. I tend ...
44
votes
16answers
11k views

Security Patch SUPEE-10570 - Possible issues?

Magento has released a new security patch for M1, and updates for M1 and M2. What issues should I look out for when upgrading or applying this patch? SUPEE-10570 SUPEE-10570, Magento Commerce 1....
44
votes
2answers
5k views

Magento Event Observers: Singleton versus Model

So Magento offers 2 ways of declaring an observer. Singleton and Model (new instance) by specifying the <type> tag in Magento 1.x and by specifying the shared attribute in Magento 2. Magento 1 ...
42
votes
4answers
47k views

How to check the latest patch version applied to magento?

I just applied the security patch PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh Since I have no SSH access to the web server, the provider did the work for me. How can I check by myself if ...
42
votes
6answers
69k 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.
41
votes
5answers
2k views

What do I do when an extension overwrites a class globally and I want to use the original?

We're using an extension which globally overwrites the Mage_Catalog_Block_Product_List_Toolbar block. <global> <blocks> <catalog> <rewrite> ...
40
votes
5answers
6k views

Magento coding standards

I recently started working extensively with Magento and Code sniffer, and I would like to know which standards I should follow. I tried Zend coding standards, but I don't want to use the 80 line ...
37
votes
9answers
15k 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 ...
35
votes
6answers
40k views

Debugging layout XML loading

TL;DR: is there a way I can debug the loading of the layout? As I believe one module's layout is conflicting with another. Related to a previous question I made: How to make a module layout to be ...
35
votes
5answers
9k views

Are Symlinks on templates a security problem, and if yes, why?

Magento recommends to not use templates via symlinks: Advanced > Developer > Template Settings > Allow Symlinks Warning! Enabling this feature is not recommended on production ...
35
votes
7answers
34k views

Move all Javascript includes to before </body>

Does anyone know how to have all of Magento's JS script tags e.g. <script type="text/javascript" src="http://sitename.com/js/prototype/prototype.js"></script> render out before the closing ...
35
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? ...
33
votes
5answers
18k views

How to set a store ID on Mage_Catalog_Model_Resource_Product_Collection?

The task is trivial. I need to get list of products for particular store view with a flat catalog enabled. The most obvious solution is the following: $collection = Mage::getResourceModel('catalog/...
32
votes
2answers
67k views

How to check whether user has logged in or not in magento?

I am doing mobile apps and I would like to know how to check whether user is already logged in or not. Is there any observer event to track? If it is detected that the account is logged in, the user ...
32
votes
2answers
101k views

How do I fix my Base URLs so I can access my Magento site?

I changed Base Urls and now my website is inaccessible I moved everything to a new server, didn't change the base_url and my website is inaccessible How do I change or restore base_url my BaseURL ...
30
votes
5answers
7k views

Learning Magento Plugin Development

I have been a PHP developer for 13+ years, have extensive knowledge of PHP itself as long as some other popular projects like WordPress. I have no experience with Magento. I now have a full time job ...
30
votes
3answers
36k views

How can I disable cache for particular section or block

I have developed a top bar cart functionality for store front that displays latest three products added to the cart this works great when cache is disabled but when i enable the cache it showing weird ...
29
votes
5answers
21k views

Different storeviews or websites in subfolders

A client wants his multistore shop to be set up like this: http://www.domain1.org/de/ -> website 1, store view 1 http://www.domain1.org/en/ -> website 1, store view 2 http://www.domain1.ch/de/ -> ...
27
votes
4answers
31k views

Efficient get product url from id

What is the most efficient way of getting a product url given just it's ID? In a few places in our code we have things such as Mage::getModel('catalog/product')->load($id)->getProductUrl() in ...
27
votes
4answers
26k views

How to escape output data?

Is there a built-in Magento helper to escape outputted template data to prevent XSS? Or should I just use the PHP htmlspecialchars or htmlentities functions?
27
votes
2answers
67k views

Left join a table on a collection query

I am doing the following to get some orders out of the system for export: $orders = Mage::getModel('sales/order')->getCollection() ->addFieldToFilter('status', $statusToExport) ->...
27
votes
4answers
41k views

Upgrade script - Create new select attribute with options

I would like to create a new product attribute with some predefined options using an upgrade script. I have an upgrade script working, so the only thing i dont know how to do is to add the drop down ...
25
votes
3answers
5k views

When to use 'name' and when to use 'as'

I've found that when trying to use the unsetChild method, sometimes I have to use the 'name' attribute and others 'as'. It seems that if a block is added normally, you use 'as' but if it is added to ...
24
votes
4answers
28k views

What are the definitions of the order statuses? OR: Where should I integrate my order state?

I want to define some order states like "credit card payment received", the question is to which statuses they belong. Is there a definition for each of the built-in statuses? Edit: Seems like I ...
23
votes
17answers
4k views

Security Patch SUPEE-11086 - Possible issues?

Magento has released a new security patch for M1, and updates for M1 and M2. These releases include critical security fixes. "We strongly recommend that all merchants upgrade as soon as possible." ...
23
votes
1answer
624 views

How do I report Magento bugs and submit bugfixes so that they are likely to be closed?

I found a bug in Magento 1.x and I also found a bugfix for it. Where do I report it? Where do I have a chance that a Magento core developer has a look at it? The Magento bug tracker seems to be ...
22
votes
5answers
8k views

How do I get a list of all class rewrites?

Is there a way to list all rewrites and maybe other potential conflicts besides reviewing all configuration files? I have to analyse some projects with lots of extensions and custom modifications and ...
22
votes
4answers
20k views

How to log all Magento SQL?

Is there any easy way to log all query executed by Magento ? The goal is to print all the SQL executed, for example during page load
22
votes
5answers
9k views

What is the difference between magento 1.9.2.4 and magento 1.9.3.0?

Magento has released it's new community edition version 1.9.3.0. I am very curious to know what are the differences with previous Magento edition? I want to know full details about the what is the ...
21
votes
6answers
26k views

Determine Magento version without access to code base

Is there a way to find the version of Magento being used without having access to server sided code? For instance, how does this plugin work https://chrome.google.com/webstore/detail/magento-...
21
votes
7answers
24k views

I am starting out learning Magento with no PHP experience, what are my options?

I have programming experience and HTML experience and am struggling to find a good guide for beginners. The Magento website seems pitched at experts but I could be looking in all the wrong places. ...
21
votes
5answers
31k views

Send data from the controller to phtml

I have this controller: ... public function insertAction() { $something = 'testcase'; $this->loadLayout(); $this->_title($this->__("the title")); $this->renderLayout(); } ....
21
votes
2answers
7k views

Attribute backend_type = static?

Can someone explain the importance/relevance of the backend_type static for an attribute? I am having some problems with an attribute not being loaded and I'm wondering whether this backend_type has ...
21
votes
5answers
2k views

How to get information about Magento security patches?

Today a friend alerted me about a critical security update for Magento - SUPEE-5344. I didn't see any articles about this patch on major IT websites. Even if I google for this update, I see SE pages ...
21
votes
2answers
2k views

Orders editing feature

Right now Magento supports altering an order only in form of a reorder, which is may be due to complex ordering process and the database structure. But often reorder is not an option in case of ...
20
votes
4answers
19k views

How to use setup scripts for your module?

I realize, you can use setup scripts for your own module by declaring them in the etc/config.xml file of your module within the <global> space like this: <resources> <catalog_setup&...
20
votes
16answers
6k views

Security Patch SUPEE-10888 - Possible issues?

SUPEE-10888 is a new security patch for Magento 1 which addresses 12 security issues. https://magento.com/security/patches/supee-10888 SUPEE-10888, Magento Commerce 1.14.3.10 and Open Source 1.9.3....
20
votes
2answers
885 views

Magento Developer Certification for Magento 1 or 2

I am a Magento 1.x developer and preparing for Magento certification. I may appear in exam for certification in next 5 to 6 months. If Magento 2.x is released before my exam then will i have to ...
19
votes
12answers
13k views

What is the most common process for importing the products?

What is the most common process for importing products? Does everyone use the product import/export tool? The CSV file format is not something that the client is likely to fill in and if they try it ...
18
votes
7answers
97k views

Get product collection from a category id

I am trying to get a collection of products from a category id. A few things I have tried are in the block : $category = Mage::getModel('catalog/category')->load(123) ->...
18
votes
4answers
52k views

How to enable Developer Mode in Magento 1.7

I am trying to enable Developer Mode on a site using Magento 1.7. So far I've added : SetEnv MAGE_IS_DEVELOPER_MODE "true" to the .htaccess file and : ... if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'...