• Resolved huusoku

    (@huusoku)


    Hello and thank you very much for this plug-in, it’s really great. We’d like to request the ability to enable or disable the product image’s link from an archive or category page to either load the Quick View (default/existing functionality) or resume default WooCommerce functionality which is that when you click on the product image from a category view that it then loads the product.

    As it is currently, once this Smart Quick View plug-in is Activated, users now have to click on the product Title in order to view the full product page. This is not how most websites function, so what we did to prevent this — modifying plug-in files is NOT recommended — is we modified the plug-in file ‘wpc-smart-quick-view.php’ and commented out lines 228-230 as follows:

                function loop_product_link( $link, $product ) {
    //              if ( ! empty( $link ) && ( ! str_contains( $link, '#woosq-' ) ) ) {
    //                  return $link . '#woosq-' . $product->get_id();
    //              }
                    return $link;
                }

    Now when we click on the image itself it will load the normal full view page. We still have either the Text Link with icon or the Button to use for if people would like to see the Quick View.

    It would be great to have this as an option on the settings page (/wp-admin/admin.php?page=wpclever-woosq&tab=settings) or as a hook to modify from within a child-theme’s functions.php

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter huusoku

    (@huusoku)

    Actually, I just noticed from line 134 that there is a filter for this. Looking into getting this safely into our functions.php now…

    Plugin Support Janilyn T

    (@janilyn409)

    Hi @huusoku ,

    We have made some options for users to enable or disable the Quick View on certain places. Please check under WPClever >> Smart Quick View >> https://prnt.sc/QcuH8kgvQVc_.

    If what you want is different from these, kindly customize the plugin file for your needs.

    Best regards.

    Thread Starter huusoku

    (@huusoku)

    Thank you for the reply. Yes, we see those options, however, we are looking to not have the product thumbnail image itself link to the Quick View.

    For example, on one of your demo pages, https://demo.wpclever.net/woosq/, the Quick View feature is only activated if the user clicks on the Quick View eyeball image. Clicking on the product thumbnail image DOES NOT load Quick View, it loads the actual product page. This is the functionality we are looking to have.

    We are new to WPClever and to your plugins (and we are quite impressed thus far!), and when we installed the free version of the Smart Quick View plugin, we have two options: (1) Have a button or (2) Have a link. Upon clicking on either the button of the link will load the Quick View. This is great, very nice and intuitive for the user.

    BUT, our product image itself will ALSO load the Quick View as dictated by the loop_product_link() function I mentioned above. This function adds “#woosq-<prod_id>” to the URL of each Product Image. This causes the Quick View to load instead of the product page being loaded.

    On all major online retailers that I have shopped at, including Amazon, Walmart, and Target, product thumbnail images link to the Product page. They do not have product thumbnail images linking to any sort of pop-up.

    So for our site, we are using the Link function with the eyeball icon placed below each product thumbnail image on our category pages.
    — If a visitor wants to see a quick view, they will click “Quick view <eyeball>”.
    — If a visitor wants to view the actual product, they will click on either (1) the product thumbnail image itself or (2) the product title.

    We believe that based on the majority of e-commerce sites out there that this should be the expected functionality and so we are requesting to have an option that disables the loop_product_link() function.

    Respectfully submitted,
    Huusoku

    This is how I did it on my shop, working perfectly.

    add_action('init', 'remove_custom_loop_product_link', 100);
    function remove_custom_loop_product_link() {
        $instance = WPCleverWoosq::instance();
    
        if (isset($instance) && has_filter('woocommerce_loop_product_link', [$instance, 'loop_product_link'])) {
            remove_filter('woocommerce_loop_product_link', [$instance, 'loop_product_link'], 99);
        } else {
        }
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.