Home › Forums › WoodMart support forum › Quick View Pro not working with woodmart widgets
Quick View Pro not working with woodmart widgets
- This topic has 8 replies, 2 voices, and was last updated 1 year, 5 months ago by
Artem Temos.
-
AuthorPosts
-
December 6, 2023 at 3:22 pm #519078
botiParticipantHello,
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;' } );
December 6, 2023 at 3:34 pm #519086
Artem TemosKeymasterHello,
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
December 6, 2023 at 4:15 pm #519120
botiParticipantPlease 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.December 6, 2023 at 4:33 pm #519126
Artem TemosKeymasterSelectors for these items are
.product-grid-item .wd-entities-title a
and.product-grid-item .product-image-link
Kind Regards
December 7, 2023 at 3:32 pm #519476
botiParticipantAre you sure these are the link selectors? Added these, but it does not work sadly.
December 7, 2023 at 5:27 pm #519521
Artem TemosKeymasterYes, these selectors are for the title and image link tags. You need to consult with the plugin developer for further assistance.
Kind Regards
December 9, 2023 at 9:05 pm #520085
botiParticipantTemporary 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!
December 9, 2023 at 9:05 pm #520086
botiParticipantedit this file:
wp-content\plugins\woocommerce-quick-view-pro\src\Integration\Elementor_Integration.phpDecember 11, 2023 at 10:53 am #520279
Artem TemosKeymasterWe are glad that you sorted it out! And thank you for sharing your solution with others.
Kind Regards
-
AuthorPosts
The topic ‘Quick View Pro not working with woodmart widgets’ is closed to new replies.
- You must be logged in to create new topics. Login / Register