Home Forums WoodMart support forum Ajax search Bar not showing items when writing

Ajax search Bar not showing items when writing

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #309625

    valio369
    Participant

    Hi, I am working on a dev site now and I have an issue with the search bar. It doesn’t seem to show the items when I type any product. If i press enter, it goes to a search page and shows the items there.

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

    Artem Temos
    Keymaster

    Hello,

    Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?

    Thank you in advance

    #309636

    valio369
    Participant

    Attached in private content.

    Realised that something is in conflict because now it is working.

    #309641

    valio369
    Participant

    Did some troubleshooting and apparently this snippet that i have added (the client wanted to have the VAT shown as well as the price without VAT on the pages. Is there any way that i could make that work and still show the search products?

    function edit_price_display() {
    global $product;
    $price = $product->price;
    $price_incl_tax = $price + round($price * ( 19 / 100 ), 2);
    $price_incl_tax = number_format($price_incl_tax, 2, “,”, “.”);
    $price = number_format($price, 2, “,”, “.”);
    $display_price = ‘<span class=”price”>’;
    $display_price .= ‘<span class=”amount”> ‘ . $price .'<small class=”woocommerce-price-suffix”> lei fără TVA</small></span> ‘;
    $display_price .= ‘<br>’;
    $display_price .= ‘</span>’;
    $display_price .= ‘<span class=”amount”> ‘ . $price_incl_tax .'<small class=”woocommerce-price-suffix”> lei cu TVA</small></span>’;
    $display_price .= ‘<br>’;

    echo $display_price;
    }
    add_filter(‘woocommerce_get_price_html’, ‘edit_price_display’, 10, 2);

    #309644

    Artem Temos
    Keymaster

    Sorry, but we don’t know why this code causes PHP errors with the AJAX request. Fixing additional customization codes is out of our theme support scope.

    #309654

    valio369
    Participant

    Ok then. Is there any way in which i can show on the product page price with VAT and Without VAT in the same time?

    #309687

    Artem Temos
    Keymaster

    Sorry, but we are not aware of such an option in WooCommerce.

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