vanilophp / cart

Cart Module for Vanilo (or any Laravel app)
https://vanilo.io
MIT License
50 stars 17 forks source link

Request: addItem > always save extra attributes #15

Closed preliot closed 4 years ago

preliot commented 4 years ago

For each product i've got a seperate 'product_remarks' field which can be filled before adding the buyable product to the cart. This field can contain 'custom information' about the product and it should be possible to edit this field.

The first time i add a product to the cart this attribute is saved properly. However the second time it is ignored. This can be traced to the if in: src\Models\Cart.php > addItem()

To be clear, i'm not using this attribute to copy existing buyable model attributes, but to add a custom attribute. Is it possible to implement something like this?

preliot commented 4 years ago

Moved away from Vanilo, so no longer an issue.