The coupon type is now passed to te template

This commit is contained in:
Franck Allimant
2014-06-10 15:59:02 +02:00
parent 6e7d54c0aa
commit a1eeddc51b

View File

@@ -197,6 +197,7 @@ class CouponController extends BaseAdminController
} }
$args['couponCode'] = $coupon->getCode(); $args['couponCode'] = $coupon->getCode();
$args['couponType'] = $coupon->getType();
$args['availableCoupons'] = $this->getAvailableCoupons(); $args['availableCoupons'] = $this->getAvailableCoupons();
$args['couponInputsHtml'] = $couponManager->drawBackOfficeInputs(); $args['couponInputsHtml'] = $couponManager->drawBackOfficeInputs();
$args['urlAjaxAdminCouponDrawInputs'] = $this->getRoute( $args['urlAjaxAdminCouponDrawInputs'] = $this->getRoute(