How to disable fancybox quick view magento

How to disable fancybox quick view magento

October 5, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How to disable fancybox quick view magento

Disabling Fancybox Quick View in Magento: A Step-by-Step Guide

If you’re looking to disable the fancybox quick view feature for “add to cart” functionality in your Magento store, you’ve come to the right place. In this article, we’ll guide you through the process of identifying and removing the relevant code snippet.

Understanding the Code Snippet

The provided code is a part of the product listing template responsible for displaying the “quick view” button.

<div class="product_icons">
  <button type="button" title="add to cart" class="button btn-cart" onclick="showOptions('6')">
    <span>
    </span>
  </button>
  <a href="http://xxx.xx/ajax/index/options/product_id/6/" class="fancybox quick_view quick_box6" id="fancybox6">quick view</a>
</div>

This snippet contains the “add to cart” button and the “quick view” link, which opens a fancybox overlay with product details when clicked.

Where to Find the Code

The code you’re seeing is likely located in one of your theme’s template files. In most cases, it can be found within the app/design/frontend/[VENDOR]/[THEME]/template/catalog/product/list.phtml file or a similar layout file for product lists.

If you’re unsure about the exact location, you can use Magento’s built-in template hint feature to quickly identify the relevant file:

  1. Log in to your Magento admin panel.
  2. Navigate to Stores > Configuration > Advanced > Developer.
  3. Set “Template Path Hints” to “Yes.”
  4. Refresh the front-end product list page.

The template hints will display the path of each loaded template on the page, making it easier for you to find the specific file containing your code snippet.

Disabling the Fancybox Quick View

To disable the fancybox quick view feature:

  1. Locate and open the list.phtml or relevant layout file in a text editor.
  2. Find the provided code snippet within the file.
  3. Comment out or remove the entire section containing the “quick view” link (<a href="...">quick view</a>).

Here’s how you can comment it out:

<div class="product_icons">
  <button type="button" title="add to cart" class="button btn-cart" onclick="showOptions('6')">
    <span>
    </span>
  </button>
  <!-- <a href="http://xxx.xx/ajax/index/options/product_id/6/" class="fancybox quick_view quick_box6" id="fancybox6">quick view</a> -->
</div>
  1. Save the file and refresh your front-end product list page.

The “quick view” button should now be removed from your product listings, disabling the fancybox functionality for the “add to cart” feature.

Conclusion

Disabling the fancybox quick view in Magento involves identifying the relevant code snippet within your theme’s template files and removing or commenting it out. By following this step-by-step guide, you can easily customize your store’s frontend appearance according to your requirements.

Remember, always backup your files before making any changes to prevent potential data loss. If you encounter any issues or need further assistance with Magento development, feel free to reach out to our team at Laravel Company. We’re here to help!

Checkout Catalog Themes Admin

Our network