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

Extending magento coupon codes capabilities
 
poulpillusion
Member
 
Avatar
Total Posts:  34
Joined:  2008-08-11
 

Hello,

I would like to extend magento coupon codes capabilities by adding more rules and actions. I guess I should create a module, so I followed the new module tutorial ( http://www.magentocommerce.com/wiki/how-to/create-payment-method-module ).

Now I have my new module, but I can’t manage to make Magento aware of it during the checkout process.

Where should I tell it so ?

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
poulpillusion
Member
 
Avatar
Total Posts:  34
Joined:  2008-08-11
 

Ok, I am not already done with this, but I think I understand things better now that I have read these 2 How-to :

http://www.magentocommerce.com/wiki/groups/174/changing_and_customizing_magento_code#custom_modules

http://www.magentocommerce.com/wiki/how_to_overload_a_controller

Now that I know how to customize Magento’s code, I have to understand this : what classes should I overload now ? I think Rules is the place, but where are rules conditions and actions defined ?

It seems there is some dead code in /app/code/core/Mage/Rule/Model/Rule.php : I couldn’t find where the function getStartAt() is defined…

Hope this helps, and hope some help too wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
poulpillusion
Member
 
Avatar
Total Posts:  34
Joined:  2008-08-11
 

If anyone falls here and look for getStartAt() function’s definition, take a look here : http://www.magentocommerce.com/boards/viewthread/15733/

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