laravelshoppingcart
laravelshoppingcart copied to clipboard
Shopping Cart Implementation for Laravel Framework
Laravel 8 is returning everything in the session.. \Cart::session($data['key'])->getContent($data['product_id']); [2021-07-30 17:51:28] local.INFO: 1 [2021-07-30 17:51:28] local.INFO: {"1":{"id":"1","name":"testing","price":10,"quantity":2,"attributes":[],"conditions":[]},"2":{"id":"2","name":"testing","price":10,"quantity":"1","attributes":[],"conditions":[]}} [2021-07-30 17:51:29] local.INFO: all [2021-07-30 17:51:30] local.INFO: {"1":{"id":"1","name":"testing","price":10,"quantity":2,"attributes":[],"conditions":[]},"2":{"id":"2","name":"testing","price":10,"quantity":"1","attributes":[],"conditions":[]}}
For example, we have a coupon discount delivery fee of xx amnt and instead of applying this discount to subtotal, we need to apply the discount only when shipping fee...
Hi, Using the methods that formatting the prices i get this error: "Trying to access array offset on value of type null" this is the line: [..] return Helpers::formatValue($this->price *...
I just updated getTotal() method. I have a problem while added two percentage conditions. Ex. One for tax ``` $condition1 = new \Darryldecode\Cart\CartCondition(array( 'name' => 'GST', 'type' => 'GST', 'target'...
If i use session user to identify cart, i'm unable to make cart for non user ( guest ) how to make cart worked for guest and user at same...
I have tried to apply the setDecimals function and I can't get the number of decimal places that I require to apply
A class import is missing You have a missing class import. Try importing this class: App\Models\Product.
I want to add quantities for attributes just like products. I have added an index of price in attributes and it is saving, but how can I sum the quantity...
How to add same item id with different attributes? Suppose an item has attributes black and blue.
Hi, I'm experiencing an issue on the getTotal value. When the cart tries to sum the product with a value of 427.67 + 35.4 it returns 462.66999999999996 See the image...