Download the PHP package thelia/wishlist-module without Composer

On this page you can find all versions of the php package thelia/wishlist-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wishlist-module

Module Wish List Thelia 2

This module allows you to create multiple wish list containing your favorite products.

How to install

Next, go to your Thelia admin panel for module activation.

How to use

This module is very easy to use. It provides you new loops "wish_list" and "wish_list_product" type, which will list all the products added to your wish list.

This module provides API routes to create and manipulates wish lists, you can check them on the OpenApi documentation page, on /open_api/doc in the WishList section.

Two Smarty functions are availables :

Here is an example of using the "wishlist" loop :

The customer_id argument in wishlist loop is allowed only if backend_context is 1, otherwise the current user ID is considered.

Live components

To use the new live component system provided by symfony, add this code to your product card :

It's display whislist button and manage wishlist modal.

To provide feedback to the user after each wishlist update, you must add this component to the bottom of base.html.twig

Business rules enforced by WishListService

Unique title per owner

createUpdateWishList() and duplicateWishList() refuse a title already used by another wish list of the same owner, be it a customer or an anonymous session, and throw a WishList\Exception\DuplicateWishListTitleException. The front controllers turn it into a form error, and the WishList:WishListButton modal shows it next to the name field.

cloneWishList() is left out on purpose: it duplicates a list under the very same title to build a wish list type.

A quantity of zero removes the line

addProduct() with a quantity of 0 (or null) removes the product from the list instead of storing a line with an empty quantity, so a quantity input can drive both operations.

Stock guards when a wish list goes to the cart

addWishListToCart() and createCartFromWishlist() return the lines that could not reach the cart as requested, as an array of WishList\Dto\RejectedWishListProduct:

Reason Effect
product_sale_element_missing line skipped
product_not_visible line skipped
out_of_stock line skipped
stock_limited quantity reduced to acceptedQuantity

Stock is only looked at when the shop checks availability (check-available-stock configuration) and the product is not virtual, which mirrors what the core does on cart quantity updates. A shop that does not track stock keeps every line.

Both API endpoints return that list under a rejectedProducts key.


All versions of wishlist-module with dependencies

PHP Build Version
Package Version
Requires thelia/installer Version ^1.6
cocur/slugify Version ~4.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package thelia/wishlist-module contains the following files

Loading the files please wait ...