Download the PHP package basketin/cart without Composer
On this page you can find all versions of the php package basketin/cart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download basketin/cart
More information about basketin/cart
Files in basketin/cart
Informations about the package cart
Basketin Cart
Cart module for eCommerce system based on Laravel.
Documentation
Installation
Install via composer.
You need to migrate the package tables.
If you need to auth migrate without set path you can set true
to basketin.cart.setup.auto_migrate
at config.
Publish config
How to use
Create New Cart
You can open the cart if it exists or create a new cart if not exist.
Open Exist Cart
Get Ulid
Get Currency
Get Count Products
Get Count items
Open the existing cart only
Add QuoteYou need to prepare a Product
model to use like this.
Add Quote
Increase Quote
Decrease Quote
Has Quote
Remove Quote
Get Cart
Get Quotes
Get Totals
If you need to add a global discount to the cart you can use it.
Coupon
Coupon model
You need to prepare a coupon model to inject into cart services
The discount type:
fixed
=CouponCalculate::FIXED
|percent
=CouponCalculate::PERCENT
To apply coupon code on cart:-
And you can use
$this->couponInfo()
to get coupon info
Fields
You can create fields that contain a key and values for each shopping cart.
Set Field
Get Field
Remove
Has Field
Contributing
Thank you for considering contributing to this package! Be one of the Store team.
License
This package is an open-sourced software licensed under the MIT license.
All versions of cart with dependencies
laravel/framework Version ^10.0||^11.0
filament/filament Version ^3.2