Jump to content

COMO PONER LA CANTIDAD TOTAL DE LOS PRODUCTOS EN LA PAGINA DE PEDIDOS DEL BACK OFFICE PS 1.7.8?


yls96

Recommended Posts

Para las versiones anteriorres este era la solucion:

 

/httpdocs/controllers/admin

controllers\admin\AdminOrdersController.php

 

linea 1950, se añade código resaltado

 

$productsUnits = array_sum(array_column($products, 'product_quantity'));

// Smarty assign

$this->tpl_view_vars = array(

'order' => $order,

'cart' => new Cart($order->id_cart),

'customer' => $customer,

'total_units' =>$productsUnits,

'gender' => $gender,

 

/httpdocs/admin/themes/default/template/controllers/orders/helpers/view

admin1234/themes/default/template/controllers/orders/helpers/view/view.tpl

 

línea 1950, se añade código resaltado

 

 <div class="panel">

<div class="panel-heading">

<i class="icon-shopping-cart"></i>

 {l s='Products' d='Admin.Global'} <span class="badge">{$products|@count}</span>

  <span style="margin-left:20px"> <i class="icon-inbox"></i> {l s='Units' d='Admin.Global'} <span class="badge">{$total_units}</span></span>

  </div>

 

, pero en cambio para PS 1.7.8 no existe la carpeta de AdminOrdersController.php, como se haria en este caso. @ventura

 

 

Edited by yls96 (see edit history)
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...