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