Skip to content

Roene-JustBetter/wishlist

 
 

Repository files navigation

Rapidez Wishlist

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>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Blade 32.4%
  • Vue 31.8%
  • JavaScript 27.7%
  • PHP 8.1%