Skip to content

Adding new tax to cart item

ángel edited this page Jan 23, 2017 · 2 revisions

First: To get the rowId, use the following code:

$id    = Input::get('id');
$rows  = Cart::content();
$rowId = $rows->where('id', $id)->first()->rowId;

Then:

Cart::setTax($rowId, 10);

¡Voilà!