Please add option to disable #woosq- from Product Loop Links
-
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!
- You must be logged in to reply to this topic.