Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
1answer
721 views

Promotions and Discounts are not applied in custom shipping method (module)

I created a module that calculates the delivery price according to the price of the item and it works well. However promotions (Example: Free Shipping by categories or number of items) and discounts ...
0
votes
2answers
2k views

Modify customer activation module for customer group

I'm trying to modify Netzarbeiter's Customer Activation module so the extension only flags a certain customer group for admin approval. The following is the block of code I have been modifying. /** *...
6
votes
1answer
1k views

Install/Upgrade Scripts - Can they run multiple times when multiple users are hitting the site before they are done?

We have a couple of updates that we'd like to run by way of a module's upgrade script. One of them takes about 5 minutes to complete. The problem here that we are not sure about is that the site ...
0
votes
1answer
3k views

Magento XML RPC Error

I have created an XML-RPC User and I've assigned a role (with all resources) from admin panel: System/Web Services/XML-Rpc Users and Roles. Now I want to dump all cart products and send them to an ...
2
votes
2answers
754 views

Upgrading from EE 1.12 to EE 1.13

With the new release of Magento, a lot of questions have been flying around the office. My one biggest concern is third party integrations and compatibility with the latest version. A couple of ...
7
votes
4answers
11k views

Call action after “Save Config” was clicked in the admin

How can I call an action of my controller in a custom module after "Save Config" was clicked in System --> Configuration --> Catalog? (image) Settings of my module are inside that section, and I need ...
0
votes
1answer
2k views

How to get Discount Percent

I am looking for a way to get the discount percent of an order, possibly from the order class or the invoice class, it would be amazing if $order->getDiscountPercent(); worked, but it doesn't, ...
0
votes
3answers
1k views

Extension for photo gallery and slider

I've looked at a few extensions out there but most are overkill or don't quite fit. Keen to create a simple extension instead if someone wants to point the way. Admin interface to easily add photos ...
0
votes
2answers
6k views

Magento Module Not Loading

I have created a very simple module for Magento. All that I have done so far is declared a module and created its config.xml file. I am trying to read the xpath from the file, however nothing is ...
2
votes
1answer
1k views

Need help passing form values from checkout to a redirect page that goes to an external payment gateway

I need help in developing an external payment method module. I have so far already managed to get the method to appear correctly on the admin, and on the checkout page. The next step is to send some ...
2
votes
1answer
635 views

add block to Authorize.net payment template

in the app/design/frontend/base/default/template/payment/form/cc.phtml template, around line 76, there is a spot to echo out child html. how do I reference that block to add a child into it? I'm ...
0
votes
1answer
1k views

Vendor Management modules

Are there any good modules that facilitate vendor management? looking for the ability to: Allow vendors to submit new pricing, description information, key attribute information, etc.. Admin needs ...
0
votes
1answer
3k views

Magento admin not displaying fully after module installation

Ok So I've had some issues with removing modules from Magento recently, so I decided to scrap what i had before and start again with a slight name change to the module. So i created the module, set ...
0
votes
2answers
6k views

completely remove admin module from Magento

Ok, so several times now I've had magento be a utter b**** when it comes to updating my custom modules and it would save me an awful amount of time if i could just remove them completely. Important to ...
0
votes
1answer
723 views

Update Admin module to add fields problem

REWRITE: Ok rewriting this to make it clearer. I have created a custom module using this (http://www.silksoftware.com/magento-module-creator/). It works fine however I needed to expand the module ...
0
votes
1answer
1k views

ezmage migration tool for oscommerce to magento

I am trying to migrate data (categories, products, customers, and orders) from an osCommerce installation (ver 2.2rc2) to Magento (ver 1.7.0.2) using the migration tool offered at http://ezmage.com/...
1
vote
3answers
1k views

Magento - Custom Delivery Price with respect to Place and Amount

I am a newbie in Magento. I am using Magento 1.7. My Client want me to add different Delivery Prices according to the Country, Amount and Weight. This is what he wants. 1. STANDARD DELIVERY in UK ...
2
votes
3answers
129 views

Can Module Version Numbers be only Numeric?

Is it a problem if I use module versions like 1.1.2-devmaster or 1.1.2-branch-foobar
2
votes
1answer
166 views

Magento same page URL on different stores

I've installed Magento Fishpig module for Wordpress integration. I have two stores and a common blog. The only problem is that every time I accessed the blog page, the first store's layout is ...
2
votes
1answer
67 views

Admin module with as many image slots as user needs?

Something I use a fair deal in wordpress is allowing users to duplicate a field, so i provide one image slot and they can click a [+] button and get another image slot. I'm trying to make a quick ...
0
votes
1answer
189 views

Admin module custom select not saveing

Ok so I've created a custom module that has a single table model with a active select (no, yes) and a title and image. Now when I save the title saves and updates fine, the image is deleted or updated ...
0
votes
1answer
1k views

Init Resource Model Not Working - Returning Non Object

I am attempting to extend the Crawler portion of the Enterprise PageCache module, however, I am getting the following error, I believe it has to do with the line $this->_init('vmr_crawler/crawler'); ...
0
votes
3answers
1k views

How do I retrieve an ajax friendly phtml file?

I have created a custom front end module that allows a user to go through a wizard like process. I would like to make this AJAX. I am loading my layout block with the following <batch_index_index&...
0
votes
1answer
73 views

Multiple Where Statements

I have the following line of code $select = $read->select() ->from($batchTable,array('id','batch','strength','flavor','brand')) ->where('status', 1) ->...
2
votes
1answer
445 views

Admin Area Custom Configuration

I followed the tutorial on this page http://www.johannreinke.com/en/2012/01/30/add-custom-settings-in-magento-admin-panel/ While I was able to get the source code provided to work without a problem,...
1
vote
1answer
449 views

CRUD Module - Add Preview Link to Edit View of Uploaded Media

I have created a module to upload PDFs, its a basic CRUD module. My question is, how can I add a link to the Edit view so that the user can preview the media that is attached to the row being edited?...
0
votes
1answer
483 views

Make File Upload Not Required On Edit

I have created a module that is more or less a CRUD app. One of the fields is for a file to be uploaded. When I edit one of the rows, it is requiring me to re-upload the file to save the edit. Is ...
24
votes
2answers
31k views

Creating a custom helper class in module

I've made a new module called test_helper and I want to create a helper class in this module so that I can add custom functions to be called all over my site. I can't however seem to find any ...
1
vote
1answer
1k views

Can't get my module layout to work

I'm just trying to test my module by adding some text to the homepage and I can't seem to get this to work. I'm on Magento 1.7.0.2. Magento is aware of my module, I already checked that. Here is my ...
5
votes
3answers
4k views

Get new empty item on model method

Collections provide a handy means of getting a blank model - e.g.: $quote->getItemsCollection()->getNewEmptyItem(); Is there any means of doing this from an existing model without having to ...
14
votes
2answers
32k views

Adding custom layouts for CMS and Category use with custom module trouble

I have a category in my store that requires a totally different layout to the standard Magento layouts. So I created a new copy of the 1column.phtml and renamed it and made one small change to test. ...
11
votes
3answers
20k views

Setting a default value for a config defined value?

How can I assign a default value to a config value, which i am defining in a system.xml file? Currently it defaults to 'no', but i want it to default to 'yes'. Here is my current definition code: &...
1
vote
3answers
82 views

Limiting javascript includes by store within a module

I have a payment module that requires a bit of javascript on the checkout page for stores where it is enabled. The good news is that it is correctly including the link on the checkout page. ...
4
votes
1answer
8k views

Hook into “order shipped” event and get order id for order shipped

I have created a module that hooks into the sales_order_shipment_save_after event. I have tested the hook is working with Mage::log, My question is, how do I get the order id for the shipment that ...
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 ...
4
votes
2answers
7k views

Custom Shipping Carrier Not Showing Up For getCarriers Method

I have created a custom shipping module with a custom carrier, however, the custom carrier is not showing up when grabbing the carriers... To Grab the carriers I am using the following snippet $...
4
votes
1answer
4k views

Can't Save Role Resource for Custom Module

I've created a custom module and my adminhtml.xml is as follows... <config> <menu> <web translate="title" module="adminhtml"> <title>Custom</title> &...
2
votes
1answer
625 views

Product searcher on backend

I'm developing a backend module, which displays a table with all the products. I'm trying to make a searcher in order to search an specific product from the table. It's like making an order from the ...
0
votes
1answer
3k views

Module Forms - Store Value of addField to a Variable

I have something like in my custom module: $fieldset->addField('orderinfo', 'link', array( 'label' => Mage::helper('web')->__('Order Info'), 'style' => "", 'href' =...
2
votes
1answer
219 views

Magento Link to Another Module

$fieldset->addField('orderinfo', 'link', array( 'label' => Mage::helper('web')->__('Order Info'), 'style' => "", 'href' => "*/".$url, 'value' => '...
4
votes
2answers
11k views

Create global variable for Magento

I'm looking for a right way to create global variables in Magento that I can use it on every view page. I have some solution in mind but I don't if it's good enough. Create a module which provides a ...
6
votes
4answers
244 views

How to manipulate templates without copying them, for example in an extension?

If I write extensions it is often unavoidable to install small pieces of code into core templates (if there are no appropriate layout templates). How do you handle this situation? How do to inject ...
7
votes
4answers
2k views

Keeping module compatible for different Magento versions

Today, I am running into the following problem: A module I developed works very well in a Magento 1.7 version store. Now, I need to adapt it to also work with a Magento 1.5 store. One point at which ...
6
votes
3answers
3k views

Magento CatalogSearch Model Problem - Unable to use loadByQueryText();

I am writing a custom module, and in this module I need to add a search query to the database if it's not there already. I figured out what I need to do: Load catalogsearch/query model Check if query ...
3
votes
3answers
1k views

AJAX validation form in custom backend module

I create custom module and would like to validate the input fields such date. I tried in Form.php public function _prepareForm() { $form = new Varien_Data_Form(array( 'id' =&...
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 ...
1
vote
2answers
3k views

Custom module with custom database table and per store settings

I am creating a custom module with a custom database table using the following tutorial. This module is a custom contact form, and I would like the settings for that custom contact form to be on a ...
0
votes
1answer
128 views

What type of concerns should I have when considering the full page cache in module development?

I'm creating a module with blocks that will be displayed on the category page in Enterprise 1.12. I'm trying to wrap my head around the full page cache and what needs to be done to implement my ...
36
votes
6answers
41k views

Debugging layout XML loading

TL;DR: is there a way I can debug the loading of the layout? As I believe one module's layout is conflicting with another. Related to a previous question I made: How to make a module layout to be ...