Jump to content

Edit History

Acxel

Acxel

Hello,

I found the solution in https://stackoverflow.com/questions/59275761/how-add-column-shipping-cost-to-order-list-in-prestashop-1-7 :

 in file: controllers/admin/AdminOrdersControler.php add under (line about 110): $this->fields_list = array_merge($this->fields_list, array(

add this code:

'total_shipping' => array( 'title' => $this->l('Shipping'), 'filter_key' => 'a!total_shipping', 'type' => 'price', 'currency' => true, 'callback' => 'setOrderCurrency' ),

and add above line 200: public static function setOrderCurrency($echo, $tr)

add this code:

public function displayTotal_shipping($value) { return Tools::ps_round($value, 0); }

Be cereful folks, this will work on 1.7 (and maybe 1.6) up to 1.7.6.5 but 1.7.7 may be different because i think they put the order management in symfony.

But for real i want to display the price tax excluded minus shipping price and i'm stuck...

 

Acxel

Acxel

Hello,

I have the same problem, anybody can help ?

I found a way to display the final price :

<td class="text-center"> <a href="{{ product.url|default('') }}#tab-step2">{{ product.price_final|default('N/A'|trans({}, 'Admin.Global')) }}</a> </td>

But I want to display the shipping price too. I'll try to dump in twig ({{ dump(product) }}

Thanks in advance.

 

×
×
  • Create New...