Ritter Posted May 7, 2020 Share Posted May 7, 2020 I would like to have the customer's discount group displayed in the BO when placing an order. I inserted this code fragment from the .tpl-file in admin/themes/default/template/controllers/orders/helpers/view/view.tpl: <div class="col-lg-6"> <div class="panel"> <h3><i class="icon-dollar"></i> {l s='Current category discount'}</h3> {if !$categorieReductions} <div class="alert alert-warning">{l s='None'}</div> {else} <table class="table"> <thead> <tr> <th><span class="title_box">{l s='Category'}</span></th> <th><span class="title_box">{l s='Discount'}</span></th> </tr> </thead> <tbody> {foreach $categorieReductions key=key item=category } <tr class="alt_row"> <td>{$category.path}</td> <td>{l s='Discount: %.2f%%' sprintf=$category.reduction}</td> </tr> {/foreach} <tbody> </table> {/if} </div> </div> </div> Only the blank panel is shown, not the customer's discount group. The assignment to the customer ID is probably missing. Can someone explain how I can display the discount group assigned to the customer? Link to comment Share on other sites More sharing options...
NemoPS Posted May 8, 2020 Share Posted May 8, 2020 Did you also edit AdminOrdersController, to assign all those variables? Link to comment Share on other sites More sharing options...
Ritter Posted May 8, 2020 Author Share Posted May 8, 2020 That's my problem, I don't know how to assign the variables. 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