定制 rapidez/multiple-wishlists 二次开发

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

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

rapidez/multiple-wishlists

Composer 安装命令:

composer require rapidez/multiple-wishlists

包简介

Rapidez Multiple Wishlist

关键字:

README 文档

README

Installation

composer require rapidez/multiple-wishlists

Then you should run the migrations as this will add the rapidez_wishlist and rapidez_wishlist_item table in order to save multiple wishlists.

php artisan migrate

It's not recommended to publish every view, rather you should overwrite only the files necessary. However, you can still publish all of the views with the following command:

php artisan vendor:publish --provider="Rapidez\MultipleWishlist\MultipleWishlistServiceProvider" --tag=views

You also should probably add a new "wishlists" button to the Rapidez account menu, if you use it in your project (which is in rapidez/account/resources/views/partials/menu.blade.php)

Usage

You can add a wishlist button to the product pages by adding:

<x-rapidez-mw::button.wishlist product-id="item.entity_id"/>
{{-- Or: --}}
<x-rapidez-mw::button.wishlist product-id="{{ $product->entity_id }}"/>

depending on if it's in a listing or the current product on the PDP.

/account/wishlists will show your wishlists.

API endpoints

The API uses mostly Laravel apiResource endpoints. All of the exposed endpoints can be found below. Note that every request except for GET /wishlists/shared/{token} requires a bearer token header for authorization. This is the magento oauth token of the customer.

Endpoint Parameters Description
GET /wishlists/ None Gets a list of all the customer's wishlists
POST /wishlists/
  • title
Creates a new wishlist with the given title
PATCH /wishlists/{id}
  • title(str, max 255)
  • description(str, max 65535)
  • share(bool)
Updates the data of a wishlist
DELETE /wishlists/{id} None Deletes a wishlist
GET /wishlists/shared/{token} None Gets a shared wishlist
Endpoint Parameters Description
POST /wishlists/item
  • wishlist_id(int)
  • product_id(int)
  • qty(int)
Adds a new item to the given wishlist
PATCH /wishlists/item/{id}
  • description(str, max 255)
  • qty(int)
Updates the data of an item
DELETE /wishlists/item/{id} None Deletes an item

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-02-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固