• Hi,

    We working on develop with you plugin, and looking to create custom display content when user see pop-up window.

    This part of code generate full body in file yith-quick-view.php.

    <div id="yith-quick-view-modal">
    	<div class="yith-quick-view-overlay"></div>
    	<div class="yith-wcqv-wrapper">
    		<div class="yith-wcqv-main">
    			<div class="yith-wcqv-head">
    				<a href="#" id="yith-quick-view-close" class="yith-wcqv-close">X</a>
    			</div>
    			<div id="yith-quick-view-content" class="woocommerce single-product"></div>
    		</div>
    	</div>
    </div>
    

    This part of code generate product in file yith-quick-view-content.php.

    <div class="product">
    
    		<div id="product-<?php the_ID(); ?>" <?php post_class( 'product' ); ?>>
    
    			<?php do_action( 'yith_wcqv_product_image' ); ?>
    
    			<div class="summary entry-summary">
    				<div class="summary-content">
    					<?php do_action( 'yith_wcqv_product_summary' ); ?>
    				</div>
    			</div>
    		</div>
    	</div>

    Our idea is to create custom content display, when user click to see quick view window.

    Can you help us, how can do that.

    Thank you in advance.

    • This topic was modified 2 years, 5 months ago by NewfieSoft.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    the content of the quick view modal is printed through the template you find at following path:
    wp-content/plugins/yith-woocommerce-quick-view/templates/yith-quick-view-content.php

    To the hook “yith_wcqv_product_summary” we attach lot of functions to add different elements like title, image, price, etc.
    We do it at following path: wp-content/plugins/yith-woocommerce-quick-view/includes/class.yith-wcqv-frontend.php

    If you want customize the popup content you can override the template yith-quick-view-content.php making a copy at following path: wp-content/themes/your-theme-name/woocommerce

    Thread Starter NewfieSoft

    (@newfiesoft)

    Hi Alessio,

    Can you share, some example?

    Thank you,

    Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    here is an example for the hook to add a message, you should add it to the functions.php of your theme:

    add_action( 'yith_wcqv_product_summary', 'yith_wcqv_show_custom_message_after_the_price',16 );
    
    if( !function_exists( 'yith_wcqv_show_custom_message_after_the_price' ) ){
    
        function yith_wcqv_show_custom_message_after_the_price(){
            echo 'Here your message';
        }
    
    }

    Have a nice day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom display when open quick view’ is closed to new replies.