Skip to main content

All Questions

Filter by
Sorted by
Tagged with
148 votes
5 answers
12k 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 ...
Marius's user avatar
  • 199k
14 votes
3 answers
2k 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 ...
Raphael at Digital Pianism's user avatar
16 votes
2 answers
9k views

How should I licence my module?

I have a module which I have written for my company. It takes data from our back office solution and imports it into Magento. It also takes orders from Magento and imports them into the back office ...
webnoob's user avatar
  • 987
14 votes
4 answers
3k 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 ...
Raphael at Digital Pianism's user avatar
1 vote
2 answers
6k views

Create a custom category attribute and add it to the menu

I want to add a custom attribute to categories in menu. If, in Mage_Catalog_Block_Navigation.php in function _renderCategoryMenuItemHtml I transform $html[] = '<span>'.$this->escapeHtml($...
Claudiu Creanga's user avatar
1 vote
4 answers
486 views

Can't override Mage_Review_Block_Product_View class

I'm trying to extend Mage_Review_Block_Product_View but my new class is not called... I think it could be a typo, but I can't find it. It is not a issue related to the code inside my class, but to ...
danipen's user avatar
  • 221
2 votes
3 answers
3k views

Programmatically installing a module

I need to install modules so that the database changes happen. I can't just let it be an install on logging to admin type of approach as I have a bash script that I am using to provision my test ...
Quantum's user avatar
  • 553
1 vote
2 answers
713 views

How to determine if custom extension has frontend page/controller

I'm working with a custom extension that was developed for our site by our previous developer some time ago. The extension was fully built out and met the company's needs at the time however there is ...
sparecycle's user avatar
  • 1,479
2 votes
3 answers
276 views

Unable to display "Hello World" from custom module

I am following the book: Getting Started with Magento Extension Development. And I'm unable to make my extension echoing "Hello World". I believed there are 3 area I need to take care: active the ...
Yeo's user avatar
  • 345
1 vote
1 answer
656 views

How to override Magento model in a subdirectory?

I'm trying to override a function in Mage_CatalogRule_Model_Rule but I can't get it to work. config.xml <config> <global> <models> <rule> ...
Obay's user avatar
  • 357
1 vote
1 answer
1k views

totals sort of custom added row in my account order view

I have problem with sort custom added row in totals. I successfully sort new row in cart and checkout page with this in my moduele config.xml <default> <sales> &...
srdan's user avatar
  • 348
1 vote
2 answers
108 views

module still works and making troubles after disabling it

I have disabled the module Inchoo_Notes in the app/etc/modules: <?xml version="1.0"?> <config> <modules> <Inchoo_Notes> <active>false</active&...
Nickool's user avatar
  • 1,069
2 votes
1 answer
92 views

Extending another modules form fields using addfield but values will not saving

I am using the block rewrite below to add two fields to module Amasty_Shopby. <?php class Etre_Amshopby_Block_Rewrite_Shopby_Adminhtml_Filter_Edit_Tab_General extends ...
tylersDisplayName's user avatar
2 votes
4 answers
744 views

ACL working but checkboxes not selected in role edit form

I have coded a module with 3 features (and 3 menupoints). Then i copied the menu-section and edited it so it is useable as ACL resource. It looks like this (adminhtml.xml): <config> <...
Sebastian L's user avatar
3 votes
1 answer
212 views

Magento 1: how to make an extension EE compatible?

So here's the thing I never had the chance to get my hands on a Magento EE. That said I still would like to make my extensions EE compatible. Let's say we're dealing here with a normal CRUD module. ...
Raphael at Digital Pianism's user avatar
7 votes
1 answer
221 views

Good practice regarding core tables relations with modules tables

This a question regarding Magento development, it can apply for both M1 and M2. For the last weeks, I've been working on several modules that are directly related to native Magento entities/database ...
Raphael at Digital Pianism's user avatar
3 votes
3 answers
68 views

Understanding the "module" (or extension)

I've been able to study 5 Magento shops in the last weeks. And I've noticed a mess in module management. I've seen 2 places where the modules/extensions appear: MagentoConnect page: where you can ...
FlamingMoe's user avatar
2 votes
1 answer
43 views

only absolute definition (instead of relative) of path to Models in custom module is working for me. Why?

I know that definition of path to Models and other stuff in Magento config.xml must be in absolute way. But in my case that didn't worked. Magento did not found my models. When I change definition in ...
srdan's user avatar
  • 348
1 vote
1 answer
57 views

Magento 1: guide to pixel tracking module development

I was wondering if someone could write a generic guide to develop a pixel tracking module.
Raphael at Digital Pianism's user avatar
2 votes
0 answers
29 views

Magento 1: how to configure the first configuration which will be opened? [duplicate]

I noticed this behavior several times on several websites I've worked on. When clicking System > Configuration the first configuration section that opens is not the first one of the list of tabs. I'...
Raphael at Digital Pianism's user avatar