rapidez / wishlist
Rapidez Wishlist
Installs: 1 673
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 5
Open Issues: 0
Language:Blade
Requires
- php: ^8.0|^8.1|^8.2
- illuminate/database: ^9.0|^10.0|^11.0
- illuminate/support: ^9.0|^10.0|^11.0
- illuminate/view: ^9.0|^10.0|^11.0
- rapidez/account: >=0.13.3
- rapidez/core: ^2.8|^3.0
README
Installation
composer require rapidez/wishlist
After that you'll get:
- Wishlist button on a product item in listings
- Button on product pages on top of the image
- Wishlist account page
You can see here how that's implemented in various packages:
Optionally you could publish and change the views with
php artisan vendor:publish --provider="Rapidez\Wishlist\WishlistServiceProvider" --tag=views
Showing the button somewhere else
Just include the button where you'd like it:
@include('rapidez::wishlist.button')
And make sure the required information is available, see the button view.
Wishlist items count
You can get the count of the customer's wishlist items by using the wishlist component. This could be used somewhere in the header, example:
<wishlist v-cloak> <span slot-scope="{ itemsCount }"> @{{ itemsCount }} </span> </wishlist>