Rename “Wishlist” to “Favourite” in the breadcrumb and title of the page

Breadcrumb:

_.extend(ProductListListsView.prototype,{
				
					getBreadcrumbPages: function() {
						const breadcrumb = [
							{
								text: 'Favourite',
								href: '/wishlist'
							},
							
							
						];
						if (this.application.ProductListModule.Utils.isSingleList()) {
							breadcrumb.splice(0, 1); // remove first
						}
						return breadcrumb;
					},
					 

					
			
			});

_.extend(ProductListDetailsView.prototype,{
				
				getBreadcrumbPages: function() {
					const breadcrumb = [
						{
							text: 'Favourite',
							href: '/wishlist'
						},
						
						
					];
					if (this.application.ProductListModule.Utils.isSingleList()) {
						breadcrumb.splice(0, 1); // remove first
					}
					return breadcrumb;
				},
				 
		});

Title of the page:

_.extend(ProductListListsView.prototype,{
			
			title:('Favourite'),

			attributes: {
				id: 'WishlistList',
				class: 'ProductListListsView'
			},
		
});
		

Leave a comment

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