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
11
votes
1answer
254 views

Choose which file to install via Composer based on Magento version

It would be very convenient to include multiple versions of code in a composer'd module and have composer work out which version to deploy, based on the Magento version of the installation target. ...
10
votes
3answers
7k views

How to enable symlinks after SUPEE-9767 V2 install?

Its seems SUPEE-9767v2 has disabled and removed the option in "Advanced -> Developer -> Template settings", that would allow us to enable/disable symlinks. What is the other way to enable symlinks ...
10
votes
4answers
17k views

How to filter products NOT IN categories?

Here is my code: $catIds = array(7,8,9); $collection = Mage::getModel('catalog/product')->getCollection() ->addAttributeToSelect("*"); ->addAttributeToFilter('category_ids', array('...
10
votes
5answers
23k views

How to add Jquery in Magento?

In my current project in about us page I need to add tabs to switch between different section I know this can be done by Jquery tabs but I don't know how to do this when integrating with magento.
10
votes
5answers
11k views

Reindex single product

I would like to reindex a single product after an update. Now I use: $product = Mage::getModel('catalog/product')->loadByAttribute('sku', 'foobar'); // edit something $product->save(); $...
10
votes
3answers
1k views

ECG compliance: How to do?

There is something like a coding standard for Magento 1, called ECG where numerous things should be avoided or methods that should not be used. Let's try to create a list that covers all cases that ...
10
votes
2answers
18k views

How to overwrite core template files from a custom module?

I want to overwrite two files. Namely the view.phtml and print.phtml of sales orders. (path: app/design/frontend/base/default/template/sales/order/) I am creating a module in which I want to create a ...
10
votes
1answer
962 views

Admin config: show field depending on selected multiselect values

I want to display fields based on selected multiselect input ... following code just works, if only one value is selected. If I select more then one value it shows only one field (first selected from ...
10
votes
5answers
28k views

Store code in URL for every store view except for default

I've enabled System > Config > Web > Add Store Code to URLs and I've setup a new Store View for Canada (/ca/). I'd like to ideally have example.com/ca/ load the Canada Store View, but still have ...
10
votes
1answer
10k views

sort products by newest, discount, most sold, reviews" in products list page

On the products list page, we can see sort by "Position, name, price" as in default Magento. How to sort by newest products (uploaded recently) Discount (highest discount products first) Best ...
10
votes
1answer
1k views

how can change magento calendar?

As you know Gregorian is default calendar in Magento, but in some countries like China, Japan, India, Iran and Arabian countries there are different calendars. I searched Magento backend and I didn’t ...
10
votes
3answers
2k views

Magento 1: Performance optimizations to delete entities

I'm currently trying to improve a couple of modules regarding performance. Some of you may know the usage of the walk() method on collection which is very useful to avoid looping through products ...
9
votes
10answers
5k views

SUPEE-11219 Potential issues?

Magento just sent out an email about a new security patch (SUPEE-11219). https://magento.com/security/patches/supee-11219 Affected versions: Magento Commerce 1.9.0.0-1.14.4.1 Magento Open Source 1....
9
votes
8answers
31k views

Error 404 - Can't access backend after moving to new server

I have moved my website on a new server (domain name is the same). Frontend is working properly but the admin login page gives a 404 Not Found error. Most posts about this issue suggest the solutions ...
9
votes
4answers
13k views

Magento Indexer Not Adding Attribute to flat table in custom attribute

Magento Not adding custom Attribute to flat table..... I have a market place extension...which have some attribute but some attributes not adding to flat table...due to my extension not working.... ...
9
votes
5answers
20k views

Magento : send file attachements in Emails

in a custom module, I use this function to send Emails: public function sendMail($errorCod, $errorMsg) { $mail = Mage::getModel('core/email'); $recipients = array( Mage::...
9
votes
5answers
16k views

How to log SQL query of the collection?

I want to log the SQL query for a custom collection. I tried the following code. But did not work. Any suggestions will be appreciated. Mage::log($collection->getSelect(),null,'test.log',true);
9
votes
3answers
17k views

Best Practise to Add Custom Tab in Product Details (backend)

I would like to add an extra tab to the product details ( backend ) and I don't want to perform any override, if possible. What is the best way to accomplish this ?
9
votes
1answer
8k views

Find out how many times a product was ordered

I am trying to find out how many times a product was ordered over the last two weeks. So far I have a loop getting the products. foreach($productCollection as $product){ } I assume I ...
9
votes
4answers
708 views

What interesting modules should I develop for Magento for learning?

For a while now I have been studying Magento. I did quite a few modules, but I still think that I need a bit more training, but I can't think of an interesting module to do strictly for working with ...
9
votes
8answers
28k views

How do I find out what user used what coupon code?

I have a few coupon codes in my store, and I’d like to be able to track what code a user may have utilised. Inversely, is there a way to see how many times a particular code was used?
9
votes
2answers
18k views

Magento Filter collection by create times (today, yesterday, week, hour etc)

I have a custom collection that I wish to filter by created date and het entries created "yesterday" Collection Entries //dates are set in controller using setCreatedTime(Mage::getModel('core/date')...
9
votes
2answers
12k views

When does Magento use sessions and when cookies?

I know Magento has following core functions for session and cookie handling: Mage::getSingleton('core/cookie'); Mage::getSingleton('core/session'); When does Magento set Cookies and when PHP ...
9
votes
7answers
6k views

Website start redirecting to another url

Maybe it's infected by some virus. My website starts redirecting to these infected URL. http://mon.setsu.xyz and some time https://tiphainemollard.us/index/?1371499155545 Infected links what I did ...
9
votes
1answer
685 views

Magento Certified Developer Plus: are EE questions eliminatory?

I'm planning to book my Developer Plus certification this year. However, I haven't worked a lot with EE. I already got my Developer certification and I was wondering if the EE questions in the ...
9
votes
1answer
3k views

What does the Customer is_active flag do?

During a discussion today I was informed that the Customer is_active flag doesn't actually do anything. This is a unique flag, like the customer email address, in that it's not an EAV attribute. ...
9
votes
1answer
3k views

What is the use of addExpressionFieldToSelect over addFieldToSelect?

I'm studying Magento and I don't really understand what is the use of addExpressionFieldToSelect over addFieldToSelect? I haven't found the answer anywhere in my reading. As far as I can tell, it ...
9
votes
2answers
12k views

How to let user choose delivery date?

My website is gifting website so I need to let users select the date of delivery. I want that selection (textbox with calendar popup) on shipping details step. I can google for a free extension but I ...
8
votes
3answers
10k views

ReferenceError: Uploader is not defined in magento 1.9.3

after update to new version 1.9.3. the Uploader is not working anymore. given below error.i upldate my code but still the same. var uploader = new Uploader({"uploaderConfig":{"chunkSize":...
8
votes
4answers
8k views

How prevent a model data save using _save_before event

I have create a model which has its own database table. For a customization I need to trigger save_before event of this model. If one field value is not matched, then the data should not be saved. ...
8
votes
3answers
2k views

Magento 1: why some observer method call getEvent() and some don't?

Something I noticed recently and I'm curious about it. Example 1: the use of getEvent() In Mage_Core_Model_Locale in the setLocale() method, an event is dispatched: Mage::dispatchEvent('...
8
votes
7answers
813 views

Magento learning Resources

I am new to magento and have no concept of MVC, but i been given a job to work on it, that mean to understand it and implement the specification, now i feel too stressed as i really want to understand ...
8
votes
3answers
1k views

Cannot edit widgets in WYSIWYG editor anymore

Recently, editing widgets in the WYSIWYG editor does not work anymore. The browser console shows the following error when I click on a widget: Uncaught DOMException: Failed to execute '...
8
votes
5answers
15k views

Reasons for Magento redirecting to an install page

I have cloned a git repository containing a magento site in the same way as I normally do when joining a project. I went through the usual process of setting up database and setting everything up on ...
8
votes
3answers
2k views

How to keep clients on Magento 1 given that end of life is in 11/2018

Magento will not release any new security patches from 11/2018 for Magento 1. Of course, there are a lot of small and not so small websites out there that are on Magento 1 that can't afford to move ...
8
votes
1answer
5k views

Insert image at the side of payment label on checkout

How could I insert an image at the side of the payment method on checkout. In example, at the side of credit cards payment method I want to display the Visa and Master Cards logo.
8
votes
1answer
11k views

How to set a page to display sub-categories and not products?

How to set a page to display sub-categories and not products?
8
votes
2answers
15k views

Does Magento 1 log transactional mails that were sent? [closed]

Can you view the automated transactional emails that have been sent by the system like order confirmations, password forgotten-mails and more? Is there some kind of a mail log which you can view ...
8
votes
2answers
1k views

Magento Connect vs Magento Marketplace

So the official Magento marketplace is out. I was wondering what does that imply for developers ? do developers have to move all their extensions to Magento marketplace (when will Magento Connect be ...
8
votes
1answer
2k views

Configuration 'depends' with front and backend model

I'm having difficulties with the 'depends' functionality in the configuration. Normally, adding <depends> to some configuration option, it's hidden unless the given option's value matches. For ...
8
votes
1answer
9k views

Magento 1: Relationship Between `qty` in Stock Item, and Stock Status Tables

In Magento 1, Inventory information is stored in a Stock Item object. Each Stock Item object is associated with a product object. Magento persists Stock Item objects to the ...
8
votes
4answers
4k views

Do not cache footer

I added this code in local.xml <default> <reference name="footer"> <action method="unsetData"><key>cache_lifetime</key></action> <action ...
8
votes
3answers
2k views

Magento Google sitemap Generation

I have generate google sitemap through Magento adminpanel. I have set Product URL Suffix(html) and Category URL Suffix(html) in the configuration. This suffix are not showing in sitemap.xml. It ...
8
votes
4answers
6k views

How to know which translation csv file(s) are used in the current phtml file

Is there a method to know which translation CSV file(s) are used in the current phtml template file?
8
votes
1answer
2k views

What is the difference between `joinField` and `joinTable` in collections?

In the file app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php, there is a function named joinField and there is another joinTable. If fields are actually columns in the flat tables, what ...
8
votes
1answer
71 views

Extension supported on multiple versions

When creating an extension for commercial use it would be nice if it works on multiple Magento versions, maybe CE and EE also. But sometimes this doesn't work as planned because the core changes from ...
8
votes
1answer
466 views

Is there a reason hyphen/dash is not allowed in store codes?

Both M1 and M2 don't allow hyphens or dashes in its store codes. There is backend validation against it. However, it is not clear why. Any idea?
8
votes
1answer
627 views

How to alter catalog_product_flat column types

A website I manage requires prices to have 5 decimals. I went ahead and modified at least a dozen file/tables altogether to be able to achieve this. But ('cause there's always a but) there seems to be ...
7
votes
5answers
1k views

Magento 1: model rewrite vs event dispatching, best strategy?

I'm working on a module where I need to modify the behavior of the getTracking() method in a shipping method carrier model. For example let's take this default one: ...
7
votes
5answers
35k views

Filter product collection by multiple categories?

I have this snippet of code that gets the most recently added products: $_productCollection = Mage::getResourceModel('catalog/product_collection') ->addAttributeToSelect('*') ...