Questions tagged [module]
Questions about developing custom modules
3,160
questions
2
votes
1
answer
446
views
Maximum Order Amount Limit Periodical
How can I limit the maximum order amount every 3 months ? I tried using this one (https://inchoo.net/ecommerce/magento/magento-maximum-allowed-order-amount/) but its for every order, and I wanted to ...
1
vote
1
answer
9k
views
Fatal error: Call to a member function getData() on a non-object
I have custom module lenses which is working well, but when I try to access data of lenses model it gives me an error. This is my code
$Lenses= Mage::getModel('lenses/lenses');
foreach($Lenses as $...
0
votes
1
answer
2k
views
Magento get unique values from custom database table
I created a custom module with a database table with the help of this article.
I have a program which syncs stock from my physical store to online store. Every time I sync the stock, I add the sku,...
1
vote
2
answers
410
views
Quick start for magento customization part 2, Blank cart with Magento 1.9.1 RWD
I am Currently following the free video guides on magento training website. Part 2 Has you create a new module and define the views for it. creating your own theme, block, template, js in the design ...
1
vote
2
answers
304
views
magento existing method rewrite with module
I have few core files modifications in my app/code/local/Mage folder, but I wan't to make them work as magento module.
My example: I did few small modifications in method getValueHtml in file Mage/...
0
votes
1
answer
693
views
Issue with Custom Select Options [Magento System Configurations]
I am working on an extension. On setting up the configuration options, I am getting error while trying to fetch options for my select variable.
My System.xml
<?xml version="1.0"?>
<...
1
vote
1
answer
2k
views
Use observer to update custom attribute
I have created a custom attribute called price_incvat and, following the basic instructions here mashed up with some answers found elsewhere on this site, I have tried to create a module that uses an ...
0
votes
2
answers
770
views
How to connect my custom block to the layout
So there's one piece of the custom block puzzle I'm not really getting.
What I'm trying to do:
I want to use $this->getChildHtml('customBlock') inside my header.phtml file and have it just print '...
0
votes
0
answers
606
views
Magento overwrite payment information block
I'm writing custom checkout section and I'm trying to overwrite payment information section of Magento and use existing methods defined in Mage_Payment_Block_Form_Container.
What I'm doing?
config....
1
vote
1
answer
843
views
Default search result listing to categories only, no product to display
Hi i want to create a custom module for search functionality, where it should search only from the list of categories provided by its custom location attribute,
for example
i have a list of categories ...
0
votes
1
answer
166
views
observer work even don't use extension!
I used an observer in my extension called checkout_type_onepage_save_order_after but I don't know why this observer work even customers do not use my extension!
My extension is custom shipping ...
2
votes
1
answer
1k
views
Module integration with custom theme [closed]
so I am trying to integrate a custom module we purchased into a theme (free one) that we downloaded, but I really am hitting it hard here. Let me provide URL's before I continue explaining:
[Theme] ...
0
votes
1
answer
607
views
Layout of module for Admin is not loaded
my config.xml is
<?xml version="1.0"?>
<config>
<modules>
<Octane_SMTP>
<version>1.0.0</version>
</Octane_SMTP>
</...
0
votes
2
answers
738
views
Magento 1.9.1: Getting problem in work with layout in module development
I am not so familer with magento so i am trying to develop a simple module on magento 1.9.1 with help of this tutorial http://magentotutorial.net/magento-tutorial-how-to-create-a-simple-module/
but i ...
0
votes
1
answer
44
views
What magento version is it best to develop a module for?
I'd like to ask what magento version is it better to develop a module for so that it would be compatible with most versions.
Any professional opinion?
Thanks!
4
votes
1
answer
8k
views
Magento: add button on order view page with custom module
I want to add a button on the Order View page of the Admin.
I created a custom module in app\code\community\CPT\TCS and added subfolders Block, controllers, etc, Helper, Model, sql
This is my ...
2
votes
1
answer
862
views
validating is_unique property for custom attribute in customer registration form
I've followed this answer@stackexchange to create a new attribute (called mobile) for the customer entity.
I was able to create an input field in the registration form(customer_account_create) and ...
1
vote
0
answers
702
views
Magento add tabs to custom module show content in left side
Like you can see in the picture, in my custom module I am trying to create edit action with tabs, but I cannot make it right.
Here is my code :
**Form : **
class .._Block_Adminhtml_Slide_Edit_Form
...
1
vote
3
answers
262
views
Syntax error in Magento module
I have created a new page in Magento as
http://istockphp.com/magento/adding-custom-page-to-the-customer-account-dashboard/
It is working fine in my local machine,But it returns an error in my live ...
0
votes
1
answer
896
views
My Module install script isn't running
I'm fairly sure I'm missing something obvious here, but I can't see it.
I've added an install script to a module I've built, I've double checked it against Alan Storm's excellent tutorial, and I'm ...
2
votes
2
answers
4k
views
New Custom Module Page Layout not Showing in CMS Drop Down
I have created a new custom-module for unique page layouts to be used for certain cms-pages within magento-1.9.0.1. The module appears and is enabled in admin > configuration > advanced menu.
...
1
vote
3
answers
1k
views
How to identify login user with Social Connect Magento Extension
I am using Inchoo Social Connect Magento extension
which is working fine but my concern is that how can i identify user is login by which account? if email address are same for Google and Facebook ...
0
votes
1
answer
373
views
Magento 1.6 fails to extract .tgz module
I created a module in 1.9 and when files are moved across it works fine but when I use the package extension and try to install it from the generated .tgz file it fails.
I've done some debugging and ...
2
votes
1
answer
137
views
Developing Module for 1.5-1.9 on Single Code Base
I've developed a module for Magento and it's supposed to support the versions 1.5+. I've developed it in 1.9 and it works with 1.6+. 1.5 crashes when trying to install with this error.
PHP Fatal ...
1
vote
1
answer
3k
views
Magento custom adminhtml template gets overwritten by default template
I want to add a custom field to the order info page in the admin section. Based on all the tutorials I read this should be a simple task. However I found out that my custom template gets overwritten ...
0
votes
3
answers
59
views
Magento Module Installation
When I write a module and refresh Magento it begins to install it. What happens if I refresh Magento before installation is over? Does it start the installation process again while the other one ...
0
votes
1
answer
97
views
What's the relationship between vendor, package, module and namespaces?
Let's take the Contacts module inside my Magento 1.7 installation.
$ pwd
/var/www/vhosts/myproject/magento-1.7.0.2/app/code/core/Mage/Contacts
I know Contacts is the module, but is Mage the package, ...
0
votes
1
answer
3k
views
Account Controller Overriding/Extending not working
I'm trying to create two separate registration pages. They need to be in their own model because one of the design requirements is having separate .phtml files.
I have Magento 1.9 CE.
I started by ...
0
votes
1
answer
203
views
Having problems extending product view / addtocart class's (php and phtm)
I need to preset the product quantity on the product page.
NB1: my products have new yes/no attribute defined in backend called formula_price-active.
NB2: for formula_price_active product, I pass ...
4
votes
2
answers
296
views
Mandatory Helper class for module admin panel settings
Why its mandatory to define a helper class for adding configuration to the admin panel ?
i.e: I want to add some admin panel configuration to my module, So that when a user installed my module he/she ...
2
votes
1
answer
1k
views
Send an Email with Button Click in cms page magento?
I was confused how to do it. Need to send all the details on the admin's email from a custom cms page where the form fields can be added/edited. After clicking submit button the form details will be ...
9
votes
4
answers
8k
views
Helper vs Model? Which should I use?
I am working with the Instagram API in magento. I am giving coupons to my instagram followers if they follow our store on Instagram.
I am making the API calls to instagram in PHP using curl. ...
0
votes
1
answer
2k
views
Create custom module to modify sales/order/shipment/api.php
I need help please!
My client is working with a third party that updates programatically the status of orders with the SOAP API. When they do, Magento sends an email to inform customer that order has ...
1
vote
1
answer
1k
views
Display custom billing address checkout fields in admin sales order grid
In my custom module, I have modified the checkout process a bit and added some custom fields in billing address section following the below tutorial:
http://excellencemagentoblog.com/blog/2011/10/06/...
2
votes
4
answers
292
views
Trying to override Mage_Core_Model_Domainpolicy
I'm trying to override the model Mage_Core_Model_Domainpolicy. Everything should work by now, but, obviously, it doesn't. This is my config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<...
0
votes
3
answers
359
views
Extending admin order data
I would like to know the best method for adding additional data to the sales order screen.
I would like to add an additional line below 'Purchased From'
Not sure if I should be editing the templates,...
5
votes
2
answers
8k
views
custom module + cron
I have a little problem (which should be easy to solve), with a custom module I try to execute through crontab. For now, the only thing it is supposed to do is to print a log entry in dev.log file. ...
0
votes
1
answer
488
views
How to add section to admin tag edit form
I'm writing my custom module, and i'me searching the possibility to add a custom grid to admin tag edit form to handle my_entity-to-tag relation. Anyone knows how to implement that?
1
vote
1
answer
1k
views
Magento get products from orders where attribute set equals value
I have the following code
<?php
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
/* Get the customer data */
$customer = Mage::getSingleton('customer/...
0
votes
1
answer
414
views
How to rewrite model in config.xml only for frontend?
without any problems I'm able to rewrite a model.
But when it comes to rewrite a model that is used in backend/admin panel and I want that functionality also in the frontend but a little bit different ...
0
votes
1
answer
401
views
Rewrite for third party module's model not working
By using the third party module, There is a option in admin configuration side to select the number of columns for the catalog page. I want to add an additional column option in the admin ...
0
votes
1
answer
120
views
Best Magento Shipping Module
I was wondering if anyone out there could lead me to a good Magento shipping module that would allow the shop owner to use FedEx, UPS, and/or USPS, and more specifically use there FedEx account number ...
0
votes
2
answers
727
views
Change "add to cart" button depending on customer group and attribute [closed]
A while ago, I asked this question and the code is working fine. I can change the "add to cart" button depending on the value of a yes/no attribute.
What I'm trying to achieve now is to create an if/...
2
votes
1
answer
59
views
Graceful degradation of module dependance
Short background: We're using a third party extension so send mail with Mandrill. This extension accomplishes this by overriding the method core/email_template::send(). I have to implement an e-mail ...
0
votes
1
answer
994
views
Fetching order details and display it in module
I am a novice at Magento development. I am more experienced in Joomla and wordpress and have realized magento isn't as easy as i though, so i now have to request help!
I need help in achieving the ...
0
votes
2
answers
1k
views
Creating an Observer with selectable event?
I am looking for a way to list in a dropdown all events between when order is created and an order is finished (ie sales_order_shipment_save_after or sales_order_invoice_register) in the Admin panel. ...
0
votes
2
answers
865
views
custom module cannot find index action
I am creating my first custom module for magento and I already have some issues.
What I am trying to do is to create new section under catalog tab in admin panel (this I already made) but when I ...
0
votes
1
answer
334
views
Why do my modules not work after transferring my magento site to another server?
I'm trying to move my magento site to another server.
I do this transfer multiple archives: theme files (app.tar skin.tar), images (media.tar), module` s files (local.tar, community.tar) and local....
0
votes
1
answer
839
views
find all files/directories belonging to a specified module
Is there a standard method or has anyone found a way to somehow parse the directories of a magento install with a script of some sort to find all files and directories belonging to a module?
I'm ...
0
votes
1
answer
2k
views
Bug Mage_Adminhtml_Controller_Action::_addContent() [closed]
I try to create a module in the administration of my site.I have a mistake I can not seem to solve for many hours:
Recoverable Error: Argument 1 passed to Mage_Adminhtml_Controller_Action::...