<?php
include 'dcart.php';
dCart::getInstance('cart')->Remove();
dCart::getInstance('cart')->Add(array(
'id' => 1,
'name' => 'Pen',
'price' => 10,
'quantity' => 1
)
)->Add(array(
'id' => 1,
'name' => 'Pen',
'price' => 10,
'quantity' => 5
)
);
dCart::getInstance('cart')->Show();
|