- Beranda
- Komunitas
- Tech
- Website, Webmaster, Webdeveloper
Array multi dimensi
TS
peterpan1
Array multi dimensi
Sore, mau nanya dikit nih para masta2
salah dimana yah? kok ga muncul yah?
Code:
foreach($this->cart->contents() as $items) {
// Optional
$item = array(
'id' => $items['rowid'],
'price' => $items['price'],
'quantity' => $items['qty'],
'name' => $items['name']
);
$item_detail[] = $item;
$total_amount += $items['price'];
}
$item_token = array(
'id' => 'a2',
'price' => $token,
'quantity' => 1,
'name' => "Unique Code"
);
$ongkir = array(
'id' => 'a2',
'price' => $total_shipping,
'quantity' => 1,
'name' => "Biaya Pengiriman"
);
$item_details = array($item_detail)$item_token,$ongkir);
$total_harga = $total_amount+$token+$total_shipping;
salah dimana yah? kok ga muncul yah?
0
531
2
Guest
Tulis komentar menarik atau mention replykgpt untuk ngobrol seru
Urutan
Terbaru
Terlama
Guest
Tulis komentar menarik atau mention replykgpt untuk ngobrol seru
Komunitas Pilihan