lateralus821
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Issue with UPCsI disabled the SKU search in the Flatsome settings and that fixed the issue, now the AJAX search works perfectly for both simple and variable product SKUs and UPCs.
One other thing that seems a bit odd though is that if I search a SKU and hit enter before the AJAX search loads it will take me to the correct product page but if I search a UPC and hit enter before the AJAX search loads it just takes me to the shop page and shows all products – is there any way to get it to function like SKUs and bring me to the correct product page for the UPC?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Issue with UPCsThat worked perfectly, below is the emailed error log.
{"s":"","orderby":"relevance","post_type":["product","product_variation"],"post_status":"publish","posts_per_page":100,"ignore_sticky_posts":1,"post_password":"","suppress_filters":false,"order":"DESC","meta_query":[{"key":"_sku","value":"850002123159"}],"tax_query":[{"taxonomy":"product_visibility","field":"term_taxonomy_id","terms":6,"operator":"NOT IN"}]}
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Issue with UPCsThat line is there but I had forgot to copy/paste it in my earlier message.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Issue with UPCsI tried that and ran a few searches but it didn’t output any errors.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Issue with UPCsThat worked perfectly, thank you!
Another issue I ran into in the process of getting this working however is tied to the below code. In order to use Flatsome’s AJAX search with SKUs or UPCs I had to add the following code but it made the search results a bit odd. The top of the list will be the product that is searched for but it will also add about 50 completely unrelated products below it. Before this snippet it would only pull the actual product or anything relevant to the search terms, do you have any ideas on how I might be able to stop all of the extra products from loading?
function rlv_flatsome_search_function( $query, $args, $defaults ) { $_wp_query = new WP_Query(); $_wp_query->parse_query( $args ); relevanssi_do_query( $_wp_query ); return $_wp_query->posts; }
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Issue with UPCsI am using the Product GTIN (EAN, UPC, ISBN) for WooCommerce plugin and it stores the UPC meta as _wpm_gtin_code.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Issue with UPCsHey Mikko,
I tried disabling S&FP and that didn’t help, I’m still unable to search for variable product UPCs. Simple and variable SKUs work as well as simple UPCs but no variable UPCs.
I did notice that my second issue regarding SKUs is straightened out both with SF&P enabled and disabled though – if I punch a SKU into search and hit enter before the Flatsome AJAX search loads it takes me right to the product page.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Issue with UPCsThanks for getting back to me so quickly! I forgot to mention that I already tried both of those snippets. They help to get the AJAX search to pull UPCs for simple products but it doesn’t work for variable products.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Partial searches not workingMikko,
That worked perfectly, thank you so much for the help!
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Partial searches not workingHey Mikko,
Thanks for taking the time to help out and for getting back to me so quickly, I really appreciate it.
I tried throwing that in my functions but it didn’t work, the search still functioned the same. I tried swapping out the ‘flatsome_ajax_search_function’ for ‘flatsome_ajax_search_query’ and ‘flatsome_ajax_search_products_by_sku_search_query’ to see if either of those might work but then it just gave a continuous loading icon.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Partial searches not workingMikko,
I checked with the dev team and they said yes there are a few filters available in the theme then provided this link that lists them: https://docs.uxthemes.com/article/385-hooks#flatsome_ajax_search_function
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Partial searches not workingHey Mikko,
Thanks for getting back to me so quickly!
I checked the admin search as well as my shop page and Relevanssi is working perfectly there – for example if I search for the first few letters of a SKU it pulls up all products that match.
The issue I noticed is with the theme’s (Flatsome) built in ajax live search. Do you know of any way that I can link Relevanssi in with my theme’s search function?
Thanks for getting back to me, I appreciate it.
Updating the plugin did indeed fix the first issue but the second issue is still there.
Forum: Plugins
In reply to: [WooCommerce Cart Stock Reducer] WooCommerce Waitlist issueHas there been a fix for this? I’m having the same conflict with the waitlist plugin.
Does the premium version of the plugin have this feature built in?