• Resolved VR Webs

    (@net4earning)


    we have product code as first word in product name like “code1234 product name”

    we have removed the code from product name using some code on shop, product, cart, checkout pages, now everywhere its showing only “product name”

    we are using fiboseaech and search bar is showing full name “code1234 product name”,

    is it possible to remove product code in fibo search? if yes then how?

    thanks in advance.

Viewing 1 replies (of 1 total)
  • Plugin Support Kris

    (@c0nst)

    Hi @net4earning!

    You can use this code snippet:

    add_filter( 'dgwt/wcas/product/name', function( $name ) {
    $name = str_replace( 'code1234', '', $name );

    return $name;
    }, 10 );

    You have two ways to add this code to your theme:

    1. Open the functions.php in your child theme and add the code at the end.
    2. or install the Code Snippets plugin and apply this code as a snippet.

    Regards,
    Kris

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.