NBlack Posted December 7, 2014 Share Posted December 7, 2014 Hi, Im trying to import $VouchezAllowed to order-carrier.tpl, in order-payment.tpl you can add use of this variable but not in order-carrier.tpl I saw .php of orderCarrier and orderPayment but cant find a solution. The propose of this is that client can see a box of warning in the carrier-step. Anybody know how can import this Variable or define in the tpl to use {if $VouchezAllowed}? <div class="order_carrier_content_warning box"> <img src="../themes/default-bootstrap/img/warning-icon.png" width="26" height="26"> Did you forget to add your discount? - PRESS HERE </div> Thanks! (Sorry for my poor English) Link to comment Share on other sites More sharing options...
NemoPS Posted December 9, 2014 Share Posted December 9, 2014 You need to assign it like this in the controller$this->context->smarty->assign('voucherAllowed', (int)CartRule::isFeatureActive()); 1 Link to comment Share on other sites More sharing options...
NBlack Posted December 9, 2014 Author Share Posted December 9, 2014 Will tri the solution this night =) Thanks! Link to comment Share on other sites More sharing options...
NBlack Posted December 10, 2014 Author Share Posted December 10, 2014 Nemo1, not work. Inserted in ParenOrderController: protected function _assignWrappingAndTOS(){ $this->context->smarty->assign(array( ... ... 'coupon_not_used' => $this->context->smarty->assign('voucherAllowed', (int)CartRule::isFeatureActive()), ... ...) } But stopped in coupon_not_used when turn on {DEBUG}. Thanks for your help Link to comment Share on other sites More sharing options...
NemoPS Posted December 11, 2014 Share Posted December 11, 2014 that's not the right syntax, use this 'coupon_not_used' => (int)CartRule::isFeatureActive(), Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now