tags:

views:

157

answers:

2

I know that setCouponCode is catch inside __call in Varien_Object but I can't figure out where it is defined.

I need it because I want to show the coupon code even if the discount equal zero. I believed it's done inside this function.

So if anybody know where the function is defined or where I can modify the code to get the coupon code displayed all the time, please let me know.

+1  A: 

Most text editors have a 'search in files/folders' option. Open the source folder and search for function __setCouponCode.

adam
it's not that easy. it use the magic function __call to compute the real function name in the calling tree.
stunti
+1  A: 

Ok I figured it out. the SetCouponCode is setting the value for coupon_code in the magic function.

stunti