Skip to content

Instantly share code, notes, and snippets.

@drewgillson
Created December 31, 2011 04:24
Show Gist options
  • Save drewgillson/1542866 to your computer and use it in GitHub Desktop.
Save drewgillson/1542866 to your computer and use it in GitHub Desktop.
Magento - apply coupon code automatically config.xml
<frontend>
<events>
<checkout_cart_product_add_after>
<observers>
<ApplyCoupon_apply>
<type>singleton</type>
<class>ApplyCoupon/Observer</class>
<method>applyCouponEvent</method>
</ApplyCoupon_apply>
</observers>
</checkout_cart_product_add_after>
</events>
<routers>
<applycoupon>
<use>standard</use>
<args>
<module>You_ApplyCoupon</module>
<frontName>applycoupon</frontName>
</args>
</applycoupon>
</routers>
</frontend>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment