Documentation

Add A Product Link To Quickview

You may want to add a “View Product” or “View Full Details” link after the product summary in Quickview. There’s plenty of hooks you can use. Simply add the following code to your website in your custom or using the Code Snippets plugin:

function iconic_quickview_summary( $product_id, $post, $product ) {
    if( ! empty( $_POST['variation_id'] ) ) {
        $product = wc_get_product( $_POST['variation_id'] );
    }
    printf( '<a href="%s" class="button">%s</a>', $product->get_permalink(), __( 'View Product', 'iconic' ) );
}
add_action( 'jck_qv_summary', 'iconic_quickview_summary', 100, 3 );
Add A Product Link To Quickview

Are you using WooCommerce Quickview yet?

Start your 14-day free trial right now and get instant access to the features described in this article.

or learn more

Was this helpful?

Please let us know if this article was useful. It is the best way to ensure our documentation is as helpful as possible.

WooCommerce Quickview by Iconic

WooCommerce Quickview

Not got the plugin yet? Get instant access right now, free for 14 days.

or learn more

Still need help?

If you haven't found what you're looking for in our documentation, please contact support.

Get Support