Home Forums WoodMart support forum After Ajax Product Search- Product Name can’t be copied

After Ajax Product Search- Product Name can’t be copied

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #683412

    sheponbiswas01
    Participant

    When I search by a name or word, the matching results are showing properly, but I can’t copy the title/product name (single or multiple)from the Desktop/Laptop/PC, but from mobile, that can be done. That wasn’t before like that. Previously, that was working fine.
    For reference, I added a screenshot. Please have a look to better understand.

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

    Artem Temos
    Keymaster

    Hello

    Thank you for your message. We have recently updated the Ajax Product Search to enable opening product links in a new tab directly from the search results. As a result, the clickable link currently overlays the product title, which prevents copying the text on desktop devices. This behavior is intentional to improve usability but does affect text selection.

    Regards

    #683562

    sheponbiswas01
    Participant

    Hello,
    Thank you for your response.
    I understand the new Ajax product search results.

    But, we need that functionality to select & copy, product name/title with price from both Mobile and Desktop.
    Could you please help us with this?

    Thanks.

    #683655

    Artem Temos
    Keymaster

    Hello,

    Unfortunately, we are not able to revert these changes in our theme. We will consider this as a feature request for our future updates.

    Kind Regards

    #683682

    sheponbiswas01
    Participant

    Hello,
    Alright, Thanks for considering my issue.

    But it’s totally unpredictable when the next update will be released. Actually, we can’t wait till then. Because we frequently use this, in a single day we had to copy hundreds of thousands of times.
    So, it’s really painful for us.

    Could you please send us a custom code to achieve this? And give us instructions to apply it.

    Please consider it.
    Thanks.

    #683695

    Artem Temos
    Keymaster

    Hello,

    We tested a custom solution but it may work only if we remove the link from the product and make it for the title only. Here is a video https://monosnap.com/file/IjYTa3bH7uDw6oRlCsrQQd0tjO1eqw

    Kind Regards

    #683797

    sheponbiswas01
    Participant

    Hello,
    I’ve seen the video. It’s okay for now.
    But, we need to copy with the “Price” as well along with the title.

    Please share the code according to this solution.
    Thanks

    #683894

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme’s functions.php file to do this. Also, put the following file in the child theme root directory https://limewire.com/d/JcgmX#g4xChLxPKH

    add_filter( 'script_loader_src', function ($src, $handle) {
    	if ($handle === 'wd-ajax-search') {
    		$src = get_stylesheet_directory_uri() . '/ajaxSearch.js';
    	}
    	return $src;
    }, 10, 2 );
    #683915

    sheponbiswas01
    Participant

    Alright.
    Thank You.
    Have a great day 🙂

    #683950

    Artem Temos
    Keymaster

    You are always welcome. Feel free to contact us if you have any further questions.

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

The topic ‘After Ajax Product Search- Product Name can’t be copied’ is closed to new replies.