I'm trying to add a negative price in Codeingiter Cart but cannot.
$coupon = array(
'id' => $result->id,
'name' => $result->name,
'qty' => '1',
'price' => $result->discount,
'options' => array(
'info' => 'coupon',
'qty_description' => '')
);
$this->cart->insert($coupon);
Where $result->discount
is taken from a DB and is a Decimal number -20
.
When I use this code I get the item in the cart but it turns it into (+)20 and not -20. Any reason and help on this?