Home Forums WoodMart support forum Show summary on hover design issue

Show summary on hover design issue

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #75098

    amaury_santillan
    Participant

    Hi guys.

    Im not using “quick view”. Instead Ima using compare plugin. So, in some product widgets designs, the compare product is floating appart from the main action area.

    Could you please help me to place the compare button on the right side form the add to cart botton where was placed the quick view button instead?

    Thanks

    #75110

    Artem Temos
    Keymaster

    Hi,

    Try to create a file woodmart-child/woocommerce/content-product-base.php in your child theme with the following code

    <?php 
    global $product;
    
    do_action( 'woocommerce_before_shop_loop_item' ); ?>
    
    <div class="content-product-imagin"></div>
    <div class="product-element-top">
    	<a href="<?php echo esc_url( get_permalink() ); ?>" class="product-image-link">
    		<?php
    			/**
    			 * woocommerce_before_shop_loop_item_title hook
    			 *
    			 * @hooked woocommerce_show_product_loop_sale_flash - 10
    			 * @hooked woodmart_template_loop_product_thumbnail - 10
    			 */
    			do_action( 'woocommerce_before_shop_loop_item_title' );
    		?>
    	</a>
    	<?php woodmart_hover_image(); ?>
    	<div class="wrapp-swatches"><?php echo woodmart_swatches_list();?></div>
    	<?php woodmart_quick_shop_wrapper(); ?>
    </div>
    
    <div class="product-information">
    	<?php
    		/**
    		 * woocommerce_shop_loop_item_title hook
    		 *
    		 * @hooked woocommerce_template_loop_product_title - 10
    		 */
    		
    		do_action( 'woocommerce_shop_loop_item_title' );
    	?>
    	<?php
    		woodmart_product_categories();
    		woodmart_product_brands_links();
    	?>
    	<div class="product-rating-price">
    		<div class="wrapp-product-price">
    			<?php
    				/**
    				 * woocommerce_after_shop_loop_item_title hook
    				 *
    				 * @hooked woocommerce_template_loop_rating - 5
    				 * @hooked woocommerce_template_loop_price - 10
    				 */
    				do_action( 'woocommerce_after_shop_loop_item_title' );
    			?>
    		</div>
    	</div>
    	<div class="fade-in-block">
    		<div class="hover-content">
    			<div class="hover-content-inner">
    				<?php 
    					if ( woodmart_get_opt( 'base_hover_content' ) == 'excerpt' ) {
    						echo do_shortcode( get_the_excerpt() );
    					}else if ( woodmart_get_opt( 'base_hover_content' ) == 'additional_info' ){
    						wc_display_product_attributes( $product );
    					}
    				?>
    			</div>
    		</div>
    		<div class="woodmart-buttons">
    			<div class="wrap-wishlist-button"><?php if( class_exists('YITH_WCWL_Shortcode')) woodmart_wishlist_btn(); ?></div>
    			<div class="woodmart-add-btn"><?php do_action( 'woocommerce_after_shop_loop_item' ); ?></div>
    			<div class="wrap-quickview-button"><?php woodmart_compare_btn(); ?></div>
    		</div>
    		<?php if ( woodmart_loop_prop( 'timer' ) ): ?>
    			<?php woodmart_product_sale_countdown(); ?>
    		<?php endif ?>
    	</div>
    </div>

    Regards

    #75398

    amaury_santillan
    Participant

    That worked just fine.

    Thanks

    #75411

    Artem Temos
    Keymaster

    Great, you are welcome.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Show summary on hover design issue’ is closed to new replies.