Download the PHP package vldmr-k/sylius-viewed-products-plugin without Composer

On this page you can find all versions of the php package vldmr-k/sylius-viewed-products-plugin. 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 sylius-viewed-products-plugin

Last Viewed Products for Sylius CMS Plugin

It's plugin show customers last viewed products.

This simple plugins helps your customers compare and looking the best product for themself

How to install?

Import config file into _sylius.yml

Sylius 2 is required (the 1.x branch is for Sylius 1).

By default, this plugin renders the last viewed products on the product show page, as the Twig hook viewed_products of sylius_shop.product.show.content (priority 50: after the product info, before the associations). The products are shown as Sylius shop product cards (sylius_shop:product:card).

To move or replace the block, configure the hook in your app:

To show the list on another page, add a hook with that template to one of that page's hooks.

Storage

The ids of viewed products (the last viewed first) are kept in one of two storages:

The chosen storage is the service vldmrk.viewed_product.storage.product_viewed_storage, also autowired as Vldmrk\SyliusViewedProductsPlugin\Storage\ViewedProductsStorageInterface. To keep the list somewhere else, implement that interface and point the alias at your service.

That's all :)

Development

The plugin has no vendor of its own: its tests borrow the autoloader of a Sylius 2 app.


All versions of sylius-viewed-products-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
sylius/sylius Version ^2.0
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 vldmr-k/sylius-viewed-products-plugin contains the following files

Loading the files please wait ...