How to 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 are 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 );

WooCommerce Quickview
Quickly view any product from the catalog, without reloading the page. Encourage sales with easy and efficient product browsing.
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.