This plugin for Shopware adds data table to the available product layouts of categories. The table columns can be configured through a backend app. You may add and remove columns, edit their labels and contents, either by key of the $sArticles array and/or through a JavaScript return value.

To render and update the tables content the popular jQuery plugin datatables is used.

The plugin comes pre-configured with a few columns. You can use these entries as a reference on how to customize the table to your needs.

You can find a working demo here.

Features


Customize

The backend app used to customize the table can be found in the "Content" menu. You can add, remove, edit columns and rearrange their order by drag and drop. When editing/creating columns you will find three input fields:


Example

To display a thumbnail of the article in column:

Property: image.thumbnails.0.sourceSet
Render Script:
    return '<img style="margin:0 auto;max-height:30px" title="' + row.articleName + '" srcset="' + data + '">';
    

This plugin is part of the Github Organization  FriendsOfShopware .  Maintainer of the plugin is: David Neustadt
You can find the Github repository here
For questions or bugs please create a Github Issue