Post by orientcart » Sat Feb 22, 2014 1:42 pm

Hello, everyone
I am new to opencart and I just set up my opencart store. I want have the total quantity of items displayed on the buyer's shopping cart page and admin's "Orders"-"products" page and "Totals" page. Please view the red words below. Anyone can help? I will very much appreciate your help!
Product quantity Unit Price Total
cellphone 10 100 1000
monitor 5 200 1000

Total quantity: 15 Sub-total: 2000


Cordially
orientcart

Newbie

Posts

Joined
Sat Feb 22, 2014 10:12 am

Post by mash0028 » Sat Dec 26, 2015 2:49 am

hello

just try this to add in admin/view/template/sale/order_info.tpl

to show thw quantity of orders in product tab of sale-customer order

add this before
<?php foreach ($vouchers as $voucher) { ?>


Code: Select all

               <?php $int=0;foreach ($products as $product)  {$int = $int + (int)$product['quantity']; ?>    <?php  } ?>
                  <td class="text-left"></td>
                  <td class="text-left"></td>
                  <td class="text-right"><b><?php echo $int;?></b> Item(s)</span></span></td>
                  <td class="text-left"></td>
                  <td class="text-left"></td>
                </tr>

New member

Posts

Joined
Fri Jul 24, 2015 3:36 pm
Who is online

Users browsing this forum: No registered users and 67 guests