pixelandtonic / CategorySources

View your entries by their category-based taxonomies in Craft
MIT License
47 stars 7 forks source link

CategorySources for Commerce products #8

Closed Floriskoch closed 7 years ago

Floriskoch commented 7 years ago

Just a heads up for people who want this functionality for products in Craft Commerce. Change the following line in CategorySourcesPlugin.php:

public function modifyEntrySources(&$sources, $context)

to:

public function commerce_modifyProductSources(&$sources, $context)

That's the only change you need to make. Maybe this helps someone =)