Laravelshoppingcart: How to update an option ?

Created on 21 Mar 2017  路  1Comment  路  Source: Crinsane/LaravelShoppingcart

Is it possible to update the options chosen by the customer?

for example, when using:

Cart::add('293ad', 'Product 1', 1, 9.99, ['size' => 'large']);

How can change 'size' using Cart::update() ?

Most helpful comment

Cart::update($rowId, ['options'  => ['size' => 'medium']]);

>All comments

Cart::update($rowId, ['options'  => ['size' => 'medium']]);
Was this page helpful?
0 / 5 - 0 ratings

Related issues

rubelkhan447 picture rubelkhan447  路  6Comments

gauravojha picture gauravojha  路  8Comments

yansentan picture yansentan  路  6Comments

mbijker picture mbijker  路  4Comments

nasirkhan picture nasirkhan  路  8Comments