yls96 Posted November 8, 2021 Share Posted November 8, 2021 Hi, i want to ask how can i add total product quantity in bo customer order page in PS 1.7.8. In previous versions 1.7.6 i do this: /httpdocs/controllers/admin controllers\admin\AdminOrdersController.php line 1950, add blacky $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 line 1950, add blacky <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> 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