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
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) { ?>
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>
Who is online
Users browsing this forum: No registered users and 67 guests