Download the PHP package rapidez/multiple-wishlists without Composer
On this page you can find all versions of the php package rapidez/multiple-wishlists. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rapidez/multiple-wishlists
More information about rapidez/multiple-wishlists
Files in rapidez/multiple-wishlists
Package multiple-wishlists
Short Description Rapidez Multiple Wishlist
License
Homepage https://rapidez.io
Informations about the package multiple-wishlists
Rapidez Multiple Wishlist
Installation
Then you should run the migrations as this will add the rapidez_wishlist and rapidez_wishlist_item table in order to save multiple wishlists.
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:
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:
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/ |
|
Creates a new wishlist with the given title |
| PATCH /wishlists/{id} |
|
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 |
|
Adds a new item to the given wishlist |
| PATCH /wishlists/item/{id} |
|
Updates the data of an item |
| DELETE /wishlists/item/{id} | None | Deletes an item |