WooCommerce

How to Add WooCommerce Quick View Without a Plugin

Quick view lets a shopper preview a product without leaving the shop page. They click a button, a popup opens with the product image, price, short description, and add to cart button, and they close it and keep browsing. It sounds like a small feature, but it removes a lot of friction from online shopping. Every extra page load is a chance for a shopper to lose interest, so anything that keeps them on the shop page can help sales.

WooCommerce itself has no built in quick view feature. If you look for a quick view setting in the WooCommerce settings pages, you will not find one. That is why most store owners reach for a plugin first. A plugin works, but it is not the only option. Many modern themes include quick view already, and a small code snippet can add a simple version of it too. This guide shows how to add WooCommerce quick view without a plugin, using a theme feature first and a code snippet second, so you can pick the method that fits your store.

What Is WooCommerce Quick View and Why Does It Help?

Quick view is a popup window that shows the key details of a product right on the shop, category, or related products page. A typical popup shows the main product image, the product title, the price, a short description, the variation dropdowns for variable products, the quantity field, and the add to cart button. It is a condensed version of the single product page, not a replacement for it. A link inside the popup usually takes the shopper to the full product page for more detail.

The main benefit is speed. A shopper comparing five similar products can open each one in a popup, check the price and the main options, and add the best one to the cart without five full page loads. On mobile this matters even more, because going back and forth between pages is slow and annoying on a small screen. Quick view also keeps the shopper in the browsing flow. They never lose their place in the product list, which is a common reason people abandon a shop page halfway through. If you sell a handful of complex products that need long explanations, quick view matters less, because shoppers will visit the full product page anyway.

Method 1: How Do You Enable Quick View in Your Theme?

Before writing any code, check whether your theme already has quick view built in. Many popular WooCommerce themes include it as a standard feature, because store owners ask for it so often. Themes such as Flatsome, Botiga, Astra with its WooCommerce module, WoodMart, and Storefront with extra customisation all offer some form of quick view, though the exact name and location of the setting differ from theme to theme.

Start in the WordPress Customizer. Go to Appearance, then Customize, then look for a WooCommerce or Shop section. In Flatsome, the setting sits under WooCommerce and then Product Catalog, where a quick view option can be turned on for the shop page. In Botiga, look under WooCommerce and then Shop Archive or Single Product settings for a quick view toggle. In Astra, check Appearance, Customize, WooCommerce, and then Shop, where the quick view option appears when the WooCommerce addon is active. If your theme has a dedicated theme options panel instead of Customizer settings, search that panel for the words quick view. The official WooCommerce theme development documentation explains how themes hook into the shop loop if you want to understand what is happening behind the setting.

Once you find the toggle, turn it on and visit your shop page. Hover over a product card and you should see a Quick View button appear, often as an eye icon or a small button under the product image. Click it and check that the popup shows the image, price, and add to cart button correctly. If the button appears but the popup is empty, the problem is usually a JavaScript conflict with another plugin, so try deactivating other shop related plugins one at a time to find the clash. The theme method is the best option when it is available, because the theme author has already tested the popup with their own product card layout. If your theme has no quick view setting, move on to the code method below. Do not switch themes just for this one feature unless you were already planning a redesign. Our web hosting guide also matters here, because a slow host makes even a fast popup feel sluggish, and quick view cannot fix a slow server.

Method 2: How Do You Add Quick View With a Small Code Snippet?

If your theme has no quick view feature, you can add a simple version with a small amount of code. This method adds a Quick View button to each product card, and clicking it opens a popup that loads the product content. It is not as polished as a purpose built plugin, but it covers the core use case, and you keep full control over the code. Always add the code to a child theme or through the Code Snippets plugin, never by editing the parent theme directly, because a theme update would wipe your changes. If you have not used code snippets before, read our guide to customize the WordPress login page without a plugin, which uses the same child theme and snippet workflow.

The snippet below does two things. First, it adds a Quick View button after the add to cart button on each product in the shop loop. Second, it registers a small AJAX handler that returns the product content when the button is clicked. The button carries the product ID in a data attribute, and a small JavaScript file reads that ID, asks the server for the product, and shows the result in a popup. Add the PHP part with the Code Snippets plugin, set it to run on the front end only, and save it.

add_action( 'woocommerce_after_shop_loop_item', 'vutg_quick_view_button', 15 );
function vutg_quick_view_button() {
    global $product;
    echo '<button class="vutg-quick-view" data-product-id="' . esc_attr( $product->get_id() ) . '">Quick View</button>';
}

add_action( 'wp_ajax_vutg_quick_view', 'vutg_quick_view_ajax' );
add_action( 'wp_ajax_nopriv_vutg_quick_view', 'vutg_quick_view_ajax' );
function vutg_quick_view_ajax() {
    $product_id = absint( $_POST['product_id'] );
    $product = wc_get_product( $product_id );
    if ( ! $product ) {
        wp_die();
    }
    echo '<h3>' . esc_html( $product->get_name() ) . '</h3>';
    echo '<p>' . esc_html( $product->get_price_html() ) . '</p>';
    echo '<p>' . esc_html( $product->get_short_description() ) . '</p>';
    wp_die();
}

You still need the JavaScript that listens for the button click and the popup container that displays the result. The simplest approach is a small script enqueued from your child theme, which sends the product ID to the AJAX endpoint above and places the returned HTML inside a modal element on the page. A basic modal needs only a fixed position div with a dark background overlay and a close button. Test it with a simple product first, then test with a variable product, because variations need extra handling. If the variation dropdowns do not work inside the popup, that is a known limit of this simple approach, and you may need a theme with native support instead. For variable products, our guide to WooCommerce product variations explains how variations work on the normal product page, which helps you understand what the popup must reproduce.

Method 3: Can You Use a Shortcode for Quick View?

There is no built in WooCommerce shortcode for quick view, so a shortcode approach means building your own. Some store owners create a shortcode that outputs a button linked to a specific product, then use a lightbox plugin or a page builder popup to display that product. This works for a featured product on the homepage, but it does not scale to a whole shop page, because you would need a shortcode on every product card. It is worth knowing about, but for most stores the theme method or the snippet method is the better choice. If you only want quick view on one or two featured products, a page builder popup that loads a product template is a reasonable shortcut, and it avoids touching code at all.

How Do You Style the Quick View Button?

A quick view button that looks out of place will be ignored, so style it to match your store. The button added by the snippet above uses the class vutg-quick-view, which you can target in the Customizer under Additional CSS or in your child theme stylesheet. Give it the same background colour, border radius, and font as your add to cart button, but make it slightly less prominent, so the add to cart button stays the main action. Many stores show the quick view button only when the shopper hovers over the product image on desktop, which keeps the product grid clean. On touch devices there is no hover, so the button should always be visible there, or shoppers will never find it.

Style the popup the same way. It should use your theme fonts and colours, have a clear close button in the top corner, and leave enough padding that text never touches the edges. Keep the popup around 800 pixels wide on desktop, with the product image on the left and the details on the right, mirroring the normal product page. If you add a product filter without a plugin, check that the quick view button still appears after filtering, because filtered lists reload the product grid and can drop buttons added by JavaScript.

How Should Quick View Behave on Mobile?

Test the popup on a real phone, not only in a narrow desktop browser window, because touch scrolling behaves differently. The popup must fit the screen width, scroll if the content is long, and close easily with a large close button or by tapping outside it. The add to cart button must be big enough to tap, and the popup must not trap the page scroll behind it, which makes shoppers close the whole tab instead. If the popup feels cramped, show a simpler mobile version with just the image, price, and add to cart button, plus a link to the full product page.

Why Is the Quick View Button Not Showing?

If the button does not appear, check the usual causes in order. First, confirm the theme setting is saved, then clear your cache plugin and browser cache, because a cached shop page will not show the new button. Second, check that you are looking at a real shop archive page and not a page builder layout that replaces the product loop with its own widgets. Third, look for a JavaScript error in the browser console, which usually points to a plugin conflict, so deactivate shop related plugins one at a time to find it. Fourth, check that your WooCommerce templates are up to date, because an outdated overridden template can remove the hook the button relies on. If the button shows but the popup is empty, the AJAX request is usually failing, so check that no security plugin is blocking admin-ajax.php.

Frequently Asked Questions

Does WooCommerce have a built in quick view feature?

No. WooCommerce has no native quick view setting. Quick view comes from your theme, from a plugin, or from custom code. Check your theme first, because many WooCommerce themes include it and it only needs to be switched on.

Does quick view work with variable products?

It depends on the implementation. Theme based quick view usually handles variations well, because the theme author built it for that. A simple custom code snippet may show the price and description but not working variation dropdowns, so test variable products before you rely on the popup for them.

Will quick view slow down my shop page?

A well built quick view should not slow the shop page, because the product details load only when a shopper clicks the button. A poor implementation that preloads every product popup on page load will slow things down, so avoid that approach and prefer AJAX loading on click.

Is quick view good for SEO?

Quick view itself has no direct SEO effect, because the popup content is loaded on demand and is not a separate page. Your product pages still carry the SEO value, so keep them complete and well written. Quick view helps conversions and user experience, which can support SEO indirectly through better engagement.

Last updated: December 2026.

Hostinger - Get 20% OFF

Habib ur Rehman

Hello! I'm the founder of VU Tech Geek. As a BSCS graduate and experienced WordPress professional, I'm passionate about technology and education. My Virtual University journey has given me valuable insights and knowledge, which I love to share with fellow students.… More »

Related Articles

Leave a Reply

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

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker