Jump to content

Add column product category in back-office order view


aguiu

Recommended Posts

i want to add the column "category" (default product category) next to the product column in the products list of order view in back-office. I think that i have to modify:

 

\Backoffice\themes\default\template\controllers\orders\_product_line.tpl

 

and maybe AdminOrdersController.php

 

What code i need for that?

 

Prestashop 1.6.1.15 default bootstrap

 

Link to comment
Share on other sites

I have seen in another post something similar but with column condition, how i can do it with category default column?

 

to _product_line.tpl i added new column in table with products list

    <td>
    {assign var=condition value=Db::getInstance()->getRow("SELECT `condition` FROM ps_product WHERE id_product={$product['product_id']}")}
    {$condition.condition}
    </td>

to view.tpl i added new column heading

<th><span class="title_box ">{l s='Condition'}</span></th>
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...