Questions tagged [best-practice]

Denotes questions related to best-practices in Magento.

Filter by
Sorted by
Tagged with
5 votes
4 answers
384 views

What is the proper way to add theme-specific translations of new strings?

We are creating a new template and have some new text which are not yet defined anywhere. If they would be defined before we would add some "Mage_TheModule::Foo";"Fuh" to the translate.csv in the ...
Alex's user avatar
  • 13.7k
53 votes
6 answers
17k 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 ...
ryanF's user avatar
  • 2,269
4 votes
5 answers
7k views

Selling Products By Weight: Multiple Options & Accurate Stock Management

I'm fairly new to Magento - I have no idea how to achieve what I am about to propose, nor what would be the best way to go about it. (Note: This is not a question about the Weight attribute) My ...
Synchronium's user avatar
8 votes
2 answers
3k views

How to handle deprecated "Mysql4" classes when rewriting resource models

I have to rewrite Mage_Catalog_Model_Resource_Category_Flat. The old resource class Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Flat is still there in Magento 1.7 for backwards compatibility and ...
Fabian Schmengler's user avatar
3 votes
2 answers
1k views

Best Practices Magento css files

I have a few questions about the css files delivered with magento and the best practices to do changes in them. First of all I was not able to find a basic description for all the css files coming ...
Darokthar's user avatar
  • 299
7 votes
1 answer
1k views

Attrbributes Sets & Attributes: Non-Technical Overview/Logic

I work on the 'business' side of Magento (i.e. I'm not a developer). I'm looking to get a better understanding of the theory behind Attributes & Attribute Sets. My goal: Come up with a few rules ...
user700's user avatar
  • 71
27 votes
4 answers
4k views

Returning $this after observer

I see some conflicting information on the internet and in 3rd party modules alike - is it a requirement or best practice to return $this at the end of an observer method? E.g.: ...
philwinkle's user avatar
  • 35.8k
14 votes
4 answers
2k views

Is it good to instantiate a getModel class on phtml templates?

This is a question regarding a good programming practices in Magento. I need to show (in the category product list) the product with its related products in thumbnails. So I edited mypackage/mytheme/...
user604's user avatar
  • 141

1 2 3 4
5