Hide the ‘Wishlist “ tab in my account section.

Describtion:

Hide the Wishlist tab in my account section. We need to hide it from the left menu .

Code which is used for the following :

_.extend(MenuTreeView.prototype, {
					getContext: _.wrap(MenuTreeView.prototype.getContext, function (fn) {
					var original_Ret = fn.apply(this, _.toArray(arguments).slice(1));
					_.each( original_Ret, function (params) {
						//delete params[2];
						for (let i = 2; i < (params.length - 1); i++) {
							params[i] = params[i+1]
							
						}
						
					})	
					console.log(original_Ret);		  
					
				  
					return original_Ret;
								  })
							  });

Screenshot:

Leave a comment

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