• Hi can you please let me know how we can add add more details button in quick view and link to the single product page

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Giuseppe Madaudo

    (@askmagic)

    Hi there,
    could you send me the link of your website please, so I can chek?
    Thank you.

    looking for same like other quickview plugins have this feature

    Plugin Support Leanza Francesco

    (@leanzafrancesco)

    Hi,
    and thank you for writing in!

    You can easily print a button in Quick View content by using the yith_wcqv_product_summary action.
    So, for example, you can print a button to link to the single product page by adding the following code snippet to your theme functions.php

    if ( ! function_exists( 'yith_wcqv_customization_see_more_details' ) ) {
    	add_action( 'yith_wcqv_product_summary', 'yith_wcqv_customization_see_more_details', 22 );
    	function yith_wcqv_customization_see_more_details() {
    		global $product;
    		if ( $product ) {
    			$url = get_permalink( $product->get_id() );
    			echo '<a class="button" href="' . esc_url( $url ) . '">' . __( 'See more details' ) . '</a>';
    		}
    	}
    }

    Please try this solution and let us know if everything works fine!

    great thanks now the more details button is enabled

    please may I know how to show it as a link instead button

    also need to have it under or after add to cart

    thanks

    Plugin Support Leanza Francesco

    (@leanzafrancesco)

    Hi,
    you are welcome!
    to show it as a normal link, you should simply remove the “button” CSS class in the link.

    great! now I can see it as link

    please may I know how to show it under after add to cart [with some blank space on top]

    kindly refer https://imgur.com/oCemU0e

    regards

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    just change the priority of the code we sent previously.
    With this version you should achieve your goal.

    if ( ! function_exists( 'yith_wcqv_customization_see_more_details' ) ) {
    	add_action( 'yith_wcqv_product_summary', 'yith_wcqv_customization_see_more_details', 26 );
    	function yith_wcqv_customization_see_more_details() {
    		global $product;
    		if ( $product ) {
    			$url = get_permalink( $product->get_id() );
    			echo '<a class="button" href="' . esc_url( $url ) . '">' . __( 'See more details' ) . '</a>';
    		}
    	}
    }

    Exactly is what I was looking for thank you very much Alessio & Leanza

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘See more button’ is closed to new replies.