Change the name of page in breadcrumb and website

Create a new extension

Extend and wrap .js file

Extend the view of file need to be changed

_.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;
	}

	,

});

This is to change name of website on all section

_.extend(ProductListListsView.prototype, {

	title:('Favourite'),

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

	,

});

Leave a comment

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