Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
1answer
2k views

Multiple images are not uploading in the custom module

Hi I am following the solution provided here but the multiple images are not uploading in the form. I click on the browse button in the form, new window opens for selecting the images and when I ...
3
votes
1answer
79 views

Is there a way to add a wiki in Magento?

I was wondering if there was already a module or built-in way that I'm missing to add a wiki to a Magento site? I tried looking through modules, the Magento forums/wiki, and didn't find an answer. I ...
2
votes
1answer
4k views

Passing multiselect via form with getRequest()->getParam in admin module

I have an admin module and cannot get the multiselect to pass properly to the observer $fieldset->addField('hidden_field', 'hidden', array( 'name' => 'hidden_field', ...
1
vote
2answers
3k views

How to show images on frontend for custom module?

I have a form in my custom module with all the fields saved in the database table, now I have a created an image upload form in the next section of the tab which saves the data in the different table ...
0
votes
1answer
68 views

Forcing HTTPS for logged in users

What would be the best practice way to redirect all logged in users to HTTPS? The login persists the site that's concerned. So if you login, come back to www.foobar.com a week later, you are still ...
1
vote
1answer
32 views

Need help in creating a section for each product as new attribute section

I am trying to create a new attribute section as Q & A for each "configurable product". This Section will have a table which will have the following columns: Question ID Created On Question ...
0
votes
1answer
2k views

model class for add custom totals

This is my class for add some custom totals to invoice: class Devpassion_Rowtotal_Model_Order_Invoice_Total_Totalpopust extends Mage_Sales_Model_Order_Invoice_Total_Abstract{ public function collect(...
2
votes
1answer
3k views

How can I get the selected value in the multiselect dropdown?

I have a three table in my database, article category and art_cat article has the id,name,status of the article category has id,name,status of the category art_cat has id,art_id and cat_id in the ...
4
votes
1answer
7k views

“Save and Continue Edit” button is not working properly

I have a form in my module, and now I want to add the new button to it i.e. Save and Continue Edit button. I added this button but it is working partially, means it is saving the values in the ...
0
votes
1answer
4k views

Why Mage::getStoreConfig always return NULL

I create a system.xml: <?xml version="1.0"?> <config> <sections> <checkout translate="label" module="checkoutext"> <groups> <...
0
votes
1answer
744 views

Magento 1.7.0.2 custom module

I'm trying to make a few amends to the core code, so I copied the relevant classes and placed them in the app/code/local/mage folder, which works a treat. However, as this is bad practice, I'm trying ...
0
votes
1answer
60 views

Rewrite Mage_Catalog_Block_Product_Compare_List

I wish to rewrite some methods in Mage_Catalog_Block_Product_Compare_List. What do I need to add to config.xml and what should my classname be?
2
votes
1answer
2k views

Modman: symlink module from home directory

If i have a module in my home directory: /home/users/me/mymodule and I have my web root in var/www /var/www/mysite/public_html How can i use modman to link the two?
0
votes
2answers
843 views

redirect customer to associated website on successful registration

I'd been working on a module where customer choose at the time of registration for which website he need to register. So far I'd done it working. A quick reference to that. On successful registration ...
1
vote
1answer
512 views

How to get saved data in two different forms on edit action

I have custom module with two database tables table 1 : Showroom table 2: Showroomdetails and two forms one for showroom and another for showroomdetails. This model saves data in both tables but ...
1
vote
1answer
216 views

Standard module version numbers

Is there any convention for version numbers and community modules? I see a varied combination of the following as starting numbers: 1.0.0 0.1.0 0.0.1 I always tend to use the last one: 0.0.1 but ...
3
votes
2answers
14k views

Referencing a helper class

I am trying to write a helper class for my module. The helper class will provide two methods with various functionality. Can I put this helper class beside the other helper class in my .../Helper/Data....
3
votes
1answer
2k views

How to hide a admin menu based on config value for enable or disable for custom module in magento?

Is there any possibility to hide a menu related to a custom module in the admin side when the custom module is deactivated using the system config options written in the system.xml of the magento. ...
2
votes
1answer
1k views

why delete() function is not deleting the value after filtering the collection in magento?

I am trying to delete a data from the table. I am using this code snippet $categoryModel= Mage::getModel('blog/category') ->getCollection() foreach ($categoryModel as $cat) { ...
1
vote
2answers
4k views

How can I get values from a database according to some fieldname?

I have a custom table in my database with three fields ie id a_id and cat_id I have an entry like this in the table. id a_id c_id 2 7 7 3 7 8 4 7 8 5 7 8 6 ...
3
votes
1answer
255 views

Admin field type with arbitrary number of subfields

I'm making some custom module for magento and need backend settings for my custom entity. So far all was ok, I made a section through xml, made general CRUD actions and some settings that are ...
2
votes
1answer
376 views

File Name for custom helper

I am trying to replace the helper that provides the compare box with the list of products added to it. My helper is going to get the product ids from a cookie instead of from Magentos session. As I ...
1
vote
1answer
323 views

n98-magerun extension:list

I am new to working on the command line and have tried to venture in to using n98-magerun. So far I have downloaded it placed it in the folder that holds all my sites sym-linked it to the folder i ...
-2
votes
1answer
629 views

Not loading module config.xml

So I've done this probably 20 or 30 times, but this time round something isn't loading right and I've no idea why - and to be honest its driving me mental! Basic module, declaration file, config file ...
0
votes
1answer
721 views

Custom module mysql4 model _beforeSave function throw error

I am creating custom module ,whose resource model is mysql4.In mysql4 file i am trying to call _beforeSave but it show error beforeSave() should be compatible with that of ...
2
votes
1answer
123 views

Module dependencies in lib/

In order to ease future Magento upgrades, I am working to extract custom modules and put each in the its own tidy git repository. However, many of these modules depend on Magento-agnostic code that ...
4
votes
2answers
4k views

Correct usage of jstranslator.xml

I'm attempting to translate the error messages returned by the Postcode Anywhere module. They're displayed in browser alerts, so are created in JavaScript. I managed to translate one using the inline ...
2
votes
1answer
165 views

Best practice on Local/Mage module

I have a developer who is saying we don't need to bother to convert a local/Mage module that does not override core to a local/Module namespace. I was under the assumption we should never user local/...
0
votes
1answer
889 views

Best method to filter out an item from custom model

I have a custom module using which we can add banner images in admin. I have implemented this module in the admin successfully. Now I want to display banner in the front end. My custom table is ...
0
votes
2answers
108 views

Where inside module to save single for of single field?

I need to save a date of last imported data. This is one single row of single field. Is there any other way or do I need only for this single row and field create new table?
0
votes
3answers
690 views

Extending A Single Method Using Depends

I am trying to extend the admin order grid by adding a single column. I don't want to add all the logic again in my code, so the only method I'm calling is _prepareColumns(): protected function ...
2
votes
1answer
4k views

Rewrite core classes or override?

I have made a bunch of changes in my local folder to override core classes. But I'd like to group some of them into modules so i can turn them on and off. I am new to the module creation process. I'...
2
votes
2answers
1k views

Assign configurable product images to its associated products in magento

My store have around 20000 products and now i want to generate google feed with simple products but associated products don't have images, only configurable products have images. Now what i want is to ...
3
votes
1answer
940 views

Update customer attributes of old module

I have an old module and I need to update it so it will work with a newer Magento version. Basically the module adds some customer fields. So there a config.xml like this: <config> <...
1
vote
0answers
1k views

Get a quote(Shipping methods estimation) not working in first time [closed]

I am using aheadworks iphone theme in Magento 1.7.0.0. But the get a quote or calculate shipping section is not working in first time. I have invested the issues and found that when I add product to ...
1
vote
1answer
619 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> ...
1
vote
1answer
2k views

Export order info to .txt file once order is placed

I have researched and tried all possible ideas I could come up with but not having any luck with the below...what am I missing? The idea is to export a text file once an order has been placed on my ...
3
votes
1answer
3k views

Is it safe to modify database table column datatype directly?

I am able to change Catalog Price Rules' from_date and to_date from "date" datatype into "datetime", by overriding the classes: Mage_Adminhtml_Block_Promo_Catalog_Edit_Tab_Main ...
2
votes
1answer
2k views

Magento media uploader

I am straggling making a module for a site that needs something like photo gallery.My problem is that i am trying to do the same media uploader that magento uses for products.I can't understand how it ...
1
vote
1answer
98 views

Where is getShippingRateGroups() defined?

We've got several extensions installed but with a recent update, we're getting an obscure error. In certain cases, no shipping quotes are available for the customer. We've narrowed it doen to this ...
2
votes
0answers
555 views

Add custom customer privacy checkbox in Onepage (billing.phtml) [closed]

How can i add 3 custom fields (checkbox) only in billing.phtml using a separate module? I'm trying to add 3 checkbox into the onepage/billing.phtml page, without modifying the core of magento. I've ...
1
vote
1answer
1k views

How to add custom text to price or How to display EMI prices in order review?

As my site uses EMI options for payment the prices in Order review section should be shown in Rs.xxx per month format. I've made changes to phtml files only [to do this], because it should only ...
0
votes
1answer
378 views

Role resorce not getting updated for the custom module

When I tried to add resource to a role, its not getting saved. The checkbox seems to uncheck after saving the role. The resource which I am giving is a custom module. I saw a thread with the same ...
1
vote
1answer
2k views

Set order of multiselect attribute options within setup script

In one of the modules we are developing we require to create a multi-select attribute with several options. It's highly important that these options are given a certain order by default. This is the ...
0
votes
1answer
815 views

How to remove manufacturer list from Advanced Search?

I want to remove manufacturer list from advanced search section. Is there any section available in magento backend end to disable or any way other way to disable it. Can anyone tell how to disable it ?...
0
votes
0answers
67 views

What is the best way to edit your Magento site's toplinks block in the top right hand corner, WITHOUT editing core files? [duplicate]

This is the block which contains "My Account", "Log In/Log Out" etc by default. I've seen a few suggestions on how to do this, but I haven't seen anything complete that doesn't involve editing core ...
2
votes
1answer
4k views

Check If JQuery Is Already Included In Head

I want to check if jQuery is already included on the page. I have seen several methods and finally settled on the following: if ( (typeof jQuery === 'undefined') || !window.jQuery ) { document....
2
votes
1answer
107 views

Examples of well written modules

Can anyone point me in the direction (github or magento connect) of any well written modules in terms of code/architecture and not functionality? Preferably also using unit tests or magespec. It ...
0
votes
1answer
96 views

Shipping and Payment Filters does not appear

I have installed Shipping and Payment Filters using Magento Connect's installer. According to last reviews the module works with 1.7.0.2 CE but it does not appear on "Promotions" > "Checkout Rules" ...
2
votes
2answers
167 views

model name in obsever - use full or alias

When creating an observer, in config is there a preference over the two following styles and if so which and why? <observers> <me_mymodule> ...