Alternative Products: Wishlist Feature Integration
  • Updated on 22 Nov 2019
  • 1 minute to read
  • Print
  • Share
  • Dark

Alternative Products: Wishlist Feature Integration

  • Print
  • Share
  • Dark

Install Feature Frontend


To start feature integration, review and install the necessary features:

Name Version
Alternative Products 201903.0
Wishlist 201903.0

1) Add Translations

Append glossary according to your configuration:

product_alternative_widget.add_to_wishlist,Add to Wishlist,en_US
product_alternative_widget.add_to_wishlist,Zur Wunschliste hinzufügen,de_DE

Run the following console command to import data:

console data:import glossary
Make sure that in the database the configured data are added to the spy_glossary table.

2) Set up Widgets

Register the following plugins to enable widgets:

Plugin Description Prerequisites Namespace
WishlistProductAlternativeWidget Displays a list of alternative products on wishlist page. None SprykerShop\Yves\ProductAlternativeWidget\Widget
namespace Pyz\Yves\ShopApplication;
use SprykerShop\Yves\ProductAlternativeWidget\Widget\WishlistProductAlternativeWidget;
use SprykerShop\Yves\ShopApplication\ShopApplicationDependencyProvider as SprykerShopApplicationDependencyProvider;
class ShopApplicationDependencyProvider extends SprykerShopApplicationDependencyProvider
	 * @return string[]
	protected function getGlobalWidgets(): array
		return [

Run the following command to enable Javascript and CSS changes:

console frontend:yves:build
Make sure that the following widgets were registered:td>Test
WishlistProductAlternativeWidgetAssign some alternative products in Zed, and make sure that they are displayed on the wishlist page of the product to which they were assigned.
Was this article helpful?