定制 rapidez/guest-wishlist 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rapidez/guest-wishlist

最新稳定版本:4.0.0

Composer 安装命令:

composer require rapidez/guest-wishlist

包简介

Rapidez Guest Wishlist

关键字:

README 文档

README

Wishlist for guests where product SKU's will be stored in local storage. There is no cart merging when logging in!

Installation

composer require rapidez/guest-wishlist

The wishlist can be found at /wishlist

Product page

To add a wishlist toggle button on the product page just include the button view and specify where the sku can be found as Javascript variable in: resources/views/vendor/rapidez/product/overview.blade.php

@include('rapidez-guestwishlist::button', ['sku' => 'config.product.sku'])

Product listing

The same for the product listing resources/views/vendor/rapidez/listing/partials/item.blade.php

@include('rapidez-guestwishlist::button', ['sku' => 'item.sku'])

Wishlist count

If you'd like to display a wishlist button with a count (for example in the header) you can use this:

<wishlist v-slot="{ wishlist }">
    <a href="/wishlist">
        <span v-cloak v-if="wishlist.length">@{{ wishlist.length }}</span>
        <span v-else>0</span>
    </a>
</wishlist>

Views

You can publish the views with:

php artisan vendor:publish --provider="Rapidez\GuestWishlist\GuestWishlistServiceProvider" --tag=views

License

GNU General Public License v3. Please see License File for more information.

统计信息

  • 总下载量: 261
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 2
  • 开发语言: Blade

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-05-02