PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, August 23, 2022

[FIXED] How to remove "My Wish List" and "Compare Products" blocks from Magento 2.0 Luma template?

 August 23, 2022     magento-2.0, magento2     No comments   

Issue

I have spent a lot of hours trying to remove "My Wish List" and "Compare Products" blocks from Luma template. Besides, I need to change and remove some of the bottom links.

I cannot find where to modify. Can you help me, please?

Thanks


Solution

I've tried following step it worked for me.

1. My Wish List

For wish List you need to remove it via Admin > Stores > Configuration > Customers > Wish list > General Options make to enabled to no and then save it.

2. Compare Product

Here you need to do some coding level changes. follow me

Go to vendor > magento > theme-frontend-luma > Magento_Catalog > layout > default.xml

Open this file find this tag "" and before body end tag put the following code

<referenceBlock name="catalog.compare.sidebar" remove="true"/>

Make sure this will remove compare product from category product listing however you can uses this to any layout.

Once you done with this don't forget to clearing cache if enable otherwise you will not get desirable output.

Let me know if you have still any query



Answered By - samumaretiya
Answer Checked By - Cary Denson (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing