Home › Forums › WoodMart support forum › Ajax search not working
Ajax search not working
- This topic has 7 replies, 3 voices, and was last updated 6 years, 5 months ago by
Artem Temos.
-
AuthorPosts
-
February 14, 2019 at 12:14 pm #107454
GlobalParticipantHi, 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
TemFebruary 14, 2019 at 1:54 pm #107487
Elise NoromitMemberHello,
Please confirm the permit to deactivate all the plugins not related to the theme for checking. It may take 15-20 minutes.
Best Regards
February 14, 2019 at 2:44 pm #107495
GlobalParticipantYes please, thanks!
February 14, 2019 at 4:49 pm #107542
Elise NoromitMemberHello,
Please update your theme https://xtemos.com/docs/woodmart/update-theme-2/
Let us know, I will check again.
Best Regards
February 18, 2019 at 7:46 am #108080
GlobalParticipantWe 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)February 18, 2019 at 12:37 pm #108152
Elise NoromitMemberHello,
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
February 19, 2019 at 10:54 am #108344
GlobalParticipantThanks 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>’; };}
February 19, 2019 at 2:21 pm #108388
Artem TemosKeymasterSorry, 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.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register