A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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.

Filter by
Sorted by
Tagged with
19
votes
2answers
53k views

addFilter vs addFieldToFilter

Magento collection has two methods for filtering: 1. Varien_Data_Collection_Db::addFieldToFilter 2. Varien_Data_Collection::addFilter Seems that both methods add where condition to Zend_Db_Select. ...
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
100k 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
3answers
2k views

Managing Magento/Composer/Deployment

So, I'm enjoying using the hackathon Magento Composer installer, but I'm struggling to understand how others use it in relation to a deployment service. Currently I'm using DeployHQ, and yes, I can ...
18
votes
6answers
20k views

How to set default value for form fields?

I have an admin form field(textbox), $fieldset->addField('ajax_time_interval', 'text', array( 'label' => Mage::helper('dealroom')->__('Page Refresh Time Interval'), '...
18
votes
4answers
4k views

Install Magento Base with Composer

I know there are nice ways to install Magento Modules (from Connect) and from GitHub (if composer.json is provided). (as described in http://magebase.com/magento-tutorials/composer-with-magento/) Is ...
18
votes
3answers
4k views

Magento running on Percona Server with XtraDB

Does anyone have any experience with Magento db running on Percona Server with XtraDB? Benchmarking, stres testing, numbers... anything
18
votes
4answers
21k views

Getting a “Please Specify a Shipping Method” exception during checkout

I've been getting exception logs for this error in production, but I'm unable to reproduce the issue in my local or staging environment, so it's been pretty hard to troubleshoot. The error originates ...
18
votes
3answers
12k views

Adding a Step to the One Page Checkout

Are there any extensions, open-source Magento modules, or tutorials that make adding a step to the one page checkout any easier? I've poked at the core code for this a few times and it seems like ...
17
votes
4answers
81k views

Current Skin Url

I want to get skin URL of my current theme. At present I am working in Magento "rwd" theme. And I am using below code to get skin URL: Mage::getDesign()->getSkinUrl(); This returns me URL http://...
17
votes
2answers
13k views

Set NOINDEX, NOFOLLOW on particular products

My magento store has the following to allow google/search engines to crawl the entire site. <meta name="robots" content="INDEX,FOLLOW" /> I am now in need for some particular products to have: ...
17
votes
5answers
6k views

Magento Displaying appropriate localisation based on Location

I'd like to configure the Magento site to be able to recognize the default language and location of the user and display the site in that language and with appropriate localization. For example: A ...
17
votes
5answers
3k views

Use of $installer v $this in install scripts

Ok, using install scripts there seems to be a weird convention to use the following: $installer = $this; I really don't understand this as it is completely redundant. Why not just use $this-> ...
17
votes
1answer
3k views

Long Running Admin Page Requests Blocking Other Requests

If I'm logged into Magento's backend and perform some task that takes a long time (global search on large catalogs, long running dataflow, etc), my web browser will refuse to load other admin pages in ...
16
votes
15answers
6k views

SUPEE-10975 Potential Issues

SUPEE-10975 has been released, it would be great to know if anyone runs into any issues while trying to apply this, will this conflict with the most recent patch that adds 7.2 support? So far these ...
16
votes
4answers
18k views

Add Column to a grid (observer) - Column ‘store_id’ in where clause is ambiguous issue

I'm adding a column to the order grid using observer approach: On the event -> sales_order_grid_collection_load_before I'm adding a join to the collection On the event -> ...
16
votes
4answers
4k views

SecurityPatch 9652: Possible problems after SUPEE-9652 applied

Magento has released its security patch SUPEE-9652, for Magento 1.x CE and EE I just want to know what are the possible problems after applying this security patch and What are the new changes in ...
15
votes
2answers
11k views

Creating Custom option and prize to just added product to cart using observer

I want to add custom option to quoteitem using observer which observer checkoutCartProductAddAfter event and fires after product added to cart. public function checkoutCartProductAddAfter(...
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 ...
15
votes
3answers
8k views

M1 - TLS 1.2 - PayPal Express NVP CURL connection error #35: SSL connect error

I have a dev environment on an old sever running curl 7.19.7. Recently I've noticed that Paypal Express no longer works and is returning an error "Unable to communicate with the PayPal gateway.". ...
15
votes
1answer
3k views

Incorrect loading order of Layout XML

When I create a layout file for the admin area (whether in the community or local code pool), sometimes Magento is loading that layout xml in before the Adminhtml module layout xml is loaded. The ...
14
votes
15answers
9k views

Security Patch SUPEE-10752 - Possible issues?

A new security patch is out for Magento 1, addressing 25 APPSEC issues https://magento.com/security/patches/supee-10752 What common issues do you have to watch out for when applying this patch? ...
14
votes
3answers
42k views

How to get top parent Category from current category object?

How can I get the top level parent category (just after Default Category) from current category object? I want the Category Name and Category URL of that parent category to show in the subcategories. ...
14
votes
5answers
1k views

When should I consider Magento2 instead of Magento1?

in Czech community we have a discussion whether Magento 2.x is worth to start using or it's better to stick with Magento version 1.x. I'm still not convinced to switch to M2 from M1 and throw away ...
14
votes
2answers
7k views

Required modifications for using Varnish on Magento CE

I'm struggling to find any good working examples of what modifications are required to allow Varnish to cache a Magento site. Ideally I'd like a list of tasks, such as things to disable/enable and ...
14
votes
4answers
2k views

When to dispatch events in a custom module?

This is a question regarding both Magento 1 and Magento 2. I understand that, as a good practice, 3rd party modules developers are encouraged to dispatch events in their custom module to make it ...
14
votes
4answers
6k views

Exclude certain products from Magento sitemap.xml generation

I need to make sure a handful of products are NOT in the generated Sitemap.xml file in Magento. I found a couple of example for things like CMS Pages but nothing for doing product pages, and more then ...
14
votes
3answers
1k views

Magento 1: improving my module development workflow (Modman, composer, git)

This is something I've had in mind for quite some time but I can't find the right method to do it. So basically, I'm working with 6 different websites, all running Magento CE 1.9.2+ On those ...
14
votes
2answers
15k views

Changing the layout of the layered navigation

I have a layered navigation, and the customer wants to have <select/> fields instead of a long list of links. I thought about just changing the template with a observer if the name/id of the ...
14
votes
3answers
1k views

Is there a local theme layout XML file other than local.xml?

I've built a theme by creating and editing the following file: frontend/mypackage/default/layout/local.xml I have a store view "site1", and wish to make exceptions on the default local.xml of "...
14
votes
2answers
304 views

Which one step checkout type extensions honour original layout handle? [closed]

One of my extensions uses the below layout xml instruction to add a common block for three payment methods to the checkout <checkout_onepage_paymentmethod> <reference name="root"> ...
13
votes
2answers
11k views

CMS XML Handles for Layout Updates

I've had a few scenarios where I've tried to use the cms handles to update a cms page's layout. For example I was trying to use the cms_index_index handle referencing root and setting the page ...
13
votes
1answer
26k views

How to use group by in magento collection with join query

In module's admin grid I am using this code to get collection and group them by customer id $collection = Mage::getModel('referafriend/statistics')->getCollection(); $collection->getSelect()-&...
13
votes
3answers
9k views

Read-Only Product Backend attribute

I would like to create an attribute read only however it look it is not possible. I have tried to pass to addAttribute() 'disabled' =>true or 'readonly' => true with out any success. I have ...
13
votes
3answers
8k views

Possible to change block type in layout XML?

Is it possible to change a block type in layout XML? I know how to change template using setTemplate method, but I am trying to change a block's type. Is this possible?
13
votes
5answers
6k views

Having multiple store views share the same order increment_id number range

Can Magento be configured in a way, that multiple store views of the same website can share the same order increment_id number range? And if so, how? For example, with a multistore setup like this in ...
13
votes
1answer
2k views

Multiple local.xml layout files in a package

Say there are two themes in a package: Base (Set as default) Child (Set as main theme) Both contain a local.xml in the layout folder - Only the local.xml from the Child theme will be loaded, so any ...
13
votes
1answer
238 views

Is there a good reason to put the same code in both try AND catch blocks?

In the file: app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Renderer/Datetime.php, within the render() method, it seems like the exact same code is being run in both the try and catch blocks. ...
13
votes
3answers
2k views

How to insert an <iframe> in an Admin Panel <field>?

I'm creating a custom module which displays Google Maps in the frontend of Magento. To get those maps the Admin would have to enter and save the URL of the map location in the Admin Panel. This all ...
13
votes
3answers
1k views

Creating customers programatically issue

I want to create some customers programatically and I have an issue when I want to save the website ID. I have multiple website IDs: 0 => admin 1 => germany 2 => hungary 3 => romania ...
12
votes
5answers
14k views

Auto update cart quantity when change quantity

In the default cart of Magento, when the customer edit the quantity, he/she needs to press the button to update the quantity. Is there a way that the cart update the quantity automatically when the ...
12
votes
4answers
15k views

Magento boilerplate / blank / skeleton / naked themes for theme development

Does anyone out there know of a good, clean boilerplate / blank / skeleton / naked theme (unsure of the proper term myself) besides the base/default? Not that it is bad, but sometimes another one may ...
12
votes
2answers
65k views

How to setup external SMTP emailing on a local Magento?

I am trying to test some email sending from my localhost. I'd like to use an external SMTP server for this matter. I am using Windows 7/XAMPP. I tried configuring sendmail.ini with no luck. Where/how ...
12
votes
5answers
4k views

Magento and HTTP/2 : what is the current status?

As some of you may know, HTTP/2 was recently born. From what I understood, it has been developed to just work with existing websites, which suggests that there is nothing to do to make Magento ...
12
votes
2answers
551 views

How to handle translations with translation bureaus?

I'm wondering what's the best way to realise translations with translation bureaus. Basically I see two ways of doing this: Send them the CSV files. Give them access to a Magento installation for ...
12
votes
3answers
4k views

Generating a sitemap for a custom model

I've developed a bespoke module which lists a series of people on the site. Each person has their own URL (a bespoke Magento controller, which does basic CRUD on Person models) and I need to feed ...
11
votes
3answers
14k views

How do I override/rewrite a block class in Magento 1?

Note: This is intended as a canonical question that fully explains how block rewrites work and can be used as duplicate target for more specific "How do I override block X" or "Why does my rewrite not ...
11
votes
3answers
11k views

Find out to which categories a product belongs to

I opened a product in the backend, but when I switch to the categories tab, the category tree is fully collapsed. I would have to expand all categories to see in which ones the product is in. How can ...
11
votes
2answers
14k views

Magento1: How to set a dependency in a system XML of new extension

I want to modify 3rd party extension and want to override its functionality with the new extension. But my main concern is what if 3rd party extension is not enabled or present in my Magento folder? I ...
11
votes
1answer
415 views

Should I go for M1 certification now or wait for M2 certification? [duplicate]

Should I go for Magento Developer Certification now or should I wait for the Magento2 certification?