Jump to content

Import variable with discount to order-carrier.tpl


NBlack

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...