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 );

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.