Search by

silvershop / comparison

wilr

There is no license information available for the latest version (4.0.0) of this package.

Submodule for SilverShop which allows you to compare products in a table.

Package info

github.com/silvershop/silvershop-comparison

Type:silverstripe-vendormodule

pkg:composer/silvershop/comparison

Statistics

Installs: 2 609

Dependents: 1

Suggesters: 0

Stars: 2

Open Issues: 0

4.0.0 2026-09-13 18:50 UTC

README

Detail specific features of each product, and then compare them in a dedicated interface.

Features

  • Define product features, eg: weight, wifi
  • Define values for features, eg: 100gm, yes
  • Assign values to products
  • Add / remove products from comparison page view
  • Display a table showing product features side-by-side
  • Group features together for displaying in groups (a feature can belong to several groups)

Installation

Require the submodule via composer, from site root:

composer require silvershop/comparison

This module's `main` branch targets Silverstripe 6 and SilverShop `dev-main`.

Running tests

vendor/bin/phpunit

Static analysis

composer phpstan

Include in Product template:

<% include ProductSpecifications %>

With grouping enabled:

<% include ProductSpecifications Grouping=1 %>

Upgrading from single-group features

Features previously belonged to one group (Feature.GroupID). They can now belong to many groups, and their order is stored per group. Running dev/build copies existing group assignments and their sort order onto the new relation and retires the old GroupID and Sort columns (renamed to _obsolete_*). It's safe to run more than once.

License

See LICENCE