Add Wishlist on PLP page in SCA

Need to create an extension and extend the view ‘Cart.QuickAddToCart.View‘. Also import the module “ProductDetails.AddToProductList.View”.

_.extend(CartAddToCartButtonView.prototype, {
						childViews: {
							AddToProductList: function () {

								return new ProductDetailsAddToProductListView({
									model: this.model,
									application: this.options.application
								});


							},

						},
});

Then add the view in Modules/Cart/Templates/cart_add_to_cart_button.tpl

<div data-view="AddToProductList" class="{{#if wishlistplp}}wishlistplphide{{/if}}"></div>

Leave a comment

Your email address will not be published. Required fields are marked *