Home Forums WoodMart support forum Ajax search not working

Ajax search not working

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #107454

    Global
    Participant

    Hi, have got problem with ajax search its stop to work, and we dont find what is the problem. We try to turn off all plugin whats not come with the theme but not help.

    Please help us what is the problem.

    Kind Regards
    Tem

    #107487

    Hello,

    Please confirm the permit to deactivate all the plugins not related to the theme for checking. It may take 15-20 minutes.

    Best Regards

    #107495

    Global
    Participant

    Yes please, thanks!

    #107542

    Hello,

    Please update your theme https://xtemos.com/docs/woodmart/update-theme-2/

    Let us know, I will check again.

    Best Regards

    #108080

    Global
    Participant

    We update it but still not working:

    Uncaught SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at Function.n.parseJSON (jquery-1.12.4.js:4)
    at Function.a.parseJSON (jquery-migrate.min-1.4.1.js:2)
    at Object.transformResult (theme.min-3.4.0.js:13)
    at Object.<anonymous> (theme.min-3.4.0.js:13)
    at i (jquery-1.12.4.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.12.4.js:2)
    at y (jquery-1.12.4.js:4)
    at XMLHttpRequest.c (jquery-1.12.4.js:4)

    #108152

    Hello,

    I have deactivated all the plugins not related to the theme and switched to the parent theme and it works http://prntscr.com/mmnuny

    I get back to the child theme and it does not work.

    Now all the plugins which were active are enabled but I switched to the parent theme, please check.

    Best Regards

    #108344

    Global
    Participant

    Thanks for your assistance. We try to add some code that show net+gross prices at the same time, it looks thats the problem. Can you help us what is the problem with this code?

    add_filter( ‘woocommerce_get_price_html’, ‘custom_price_html’, 150, 2 );
    function custom_price_html( $price, $product ){

    if(is_product()) { echo ‘<p class=”price”>’; } else { echo ‘<span class=”price”>’; };
    echo $price;
    $grossprice = ‘<br>(‘ . wc_price( wc_get_price_including_tax( $product ) ) . ‘)’;
    echo $grossprice;
    if(is_product()) { echo ‘</p>’; } else { echo ‘</span>’; };

    }

    #108388

    Artem Temos
    Keymaster

    Sorry, but additional code customizations are out of our theme support scope. This code is not a part of our theme and we don’t know why it doesn’t work.

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