Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Custom Module based on Contacts not working…. 
 
REDMobile
Member
 
Avatar
Total Posts:  42
Joined:  2008-09-15
 

i’ve created a module ‘Affiliate’ based on the contacts module. It is a form where users can enter their information to apply to the affiliate program. I copied the code/Mage/Contacts to code/local/Affiliate and replaced all ‘contacts’ with ‘affiliate’.

I created the front end page /affiliate/form.html

I created the layout file affiliate.xml (again copying the contacts.xml)

I created the app/etx/Mage_Affiliate.xml file

When I goto the url /affiliate i get this error:

Fatal error: Call to a member function setFormAction() on a non-object in app\code\core\Mage\Affiliate\controllers\IndexController.php on line 55

Please help! I see on the boards that some people get this error after upgrading on the contacts page but I dont see any solutions.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Discovery
Enthusiast
 
Total Posts:  767
Joined:  2007-12-29
 

Use lazzy_monks quote module and edit accordingly?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top