rapidez / wishlist
Rapidez Wishlist
Installs: 1 302
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 5
Open Issues: 0
Language:Blade
Requires
- php: ^8.0|^8.1
- illuminate/database: ^9.0|^10.0
- illuminate/support: ^9.0|^10.0
- illuminate/view: ^9.0|^10.0
- rapidez/account: >=0.13.3
- rapidez/core: ~0.77|^1.0
README
Installation
composer require rapidez/wishlist
If you haven't published the Rapidez views yet, publish them with:
php artisan vendor:publish --provider="Rapidez\Wishlist\WishlistServiceProvider" --tag=views
Product page
Include the wishlist button on the product page, for example in resources/views/vendor/rapidez/product/partials/addtocart.blade.php
:
@include('rapidez::wishlist.button')
Product listing
Include the wishlist button on the listing items, for example in resources/views/vendor/rapidez/listing/partials/item/addtocart.blade.php
:
@include('rapidez::wishlist.button')
Account wishlist page
The wishlist account page can be found on /account/wishlist
and will be added to the menu automatically
Wishlist items count
You can get the count of the customer's wishlist items by using the wishlist component. For example:
<wishlist v-cloak> <span slot-scope="{ itemsCount }"> @{{ itemsCount }} </span> </wishlist>