Home Forums WoodMart support forum Quick View Pro not working with woodmart widgets

Quick View Pro not working with woodmart widgets

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #519078

    boti
    Participant

    Hello,

    We use XTemos elements to display our products on landing page.

    We have a quick view pro plugin that is customizable, and is compatible with your theme.

    Issue: on shop page, the quick view works, it targets elements with CSS on the shop page. However, it does not work when adding your XTemos elements. What CSS we need to target to make it work and make quick view work instead of redirecting users to single product page?

    case 'woodmart':
     add_filter(
         'wc_quick_view_pro_product_link_selector',
         function() {
             return '.product .product-image-link, .product .wd-entities-title a, .owl-item .product .product-image-link, .owl-item .product .wd-entities-title a;'
         }
     );
    #519086

    Artem Temos
    Keymaster

    Hello,

    Do you mean that you need a specific selector? Please, send us a screenshot highlighting an element you are asking for and we will send you its selector.

    Kind Regards

    #519120

    boti
    Participant

    Please see the attached files. These two should work with the quick view, like it works on the shop page.

    Attachments:
    You must be logged in to view attached files.
    #519126

    Artem Temos
    Keymaster

    Selectors for these items are .product-grid-item .wd-entities-title a and .product-grid-item .product-image-link

    Kind Regards

    #519476

    boti
    Participant

    Are you sure these are the link selectors? Added these, but it does not work sadly.

    #519521

    Artem Temos
    Keymaster

    Yes, these selectors are for the title and image link tags. You need to consult with the plugin developer for further assistance.

    Kind Regards

    #520085

    boti
    Participant

    Temporary fix for anyone who needs it:

    <?php
    namespace Barn2\Plugin\WC_Quick_View_Pro\Integration;
    
    use Barn2\Plugin\WC_Quick_View_Pro\Dependencies\Lib\Registerable,
      Barn2\Plugin\WC_Quick_View_Pro\Frontend_Scripts,
    	Barn2\Plugin\WC_Quick_View_Pro\Util\Util;
    
    /**
     * Handles integration with Elementor.
     *
     * @package   Barn2\woocommerce-quick-view-pro
     * @author    Barn2 Plugins <[email protected]>
     * @license   GPL-3.0
     * @copyright Barn2 Media Ltd
     */
    class Elementor_Integration implements Registerable {
    
    	private $scripts;
    
    	public function __construct( Frontend_Scripts $scripts ) {
    		$this->scripts        = $scripts;
    	}
    
    	public function register() {
    		add_action( 'wp', [ $this, 'maybe_load_wqv_scripts' ] );
    	}
    
    	public function maybe_load_wqv_scripts() {
    		if ( ! Util::is_elementor_page() ) {
    			return;
    		}
    		
    		$widgets = Util::get_elementor_widgets_list( get_the_ID() );
    		$products_elements = [ 
    		'products', 
    		'wc-archive-products', 
    		'woocommerce-products',
    		'wd_products', 
    		'wd_products_tabs'
    	];
    
    		$should_load = false;
    
    		foreach( $products_elements as $element ) {
    			if( in_array( $element, $widgets ) ) {
    				$should_load = true;
    				break;
    			}
    		}
    		if( $should_load ) {
    			add_action( 'wp_enqueue_scripts', [ $this, 'load_wqv_scripts' ] );
    		}
    	}
    
    	public function load_wqv_scripts() {
        add_filter( 'wc_quick_view_pro_scripts_enabled_on_page', '__return_true', 99 );
    		$this->scripts->load_scripts();
    	}
    
    }

    You can close the ticket, thanks!

    #520086

    boti
    Participant

    edit this file:
    wp-content\plugins\woocommerce-quick-view-pro\src\Integration\Elementor_Integration.php

    #520279

    Artem Temos
    Keymaster

    We are glad that you sorted it out! And thank you for sharing your solution with others.

    Kind Regards

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

The topic ‘Quick View Pro not working with woodmart widgets’ is closed to new replies.