coopersita
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Capability to be able to purchase private productThanks. I think that’s what I’ll do.
I have a custom role because we want some users to have a custom dashboard (only access to certain things).
Thank you
Forum: Plugins
In reply to: [Meow Gallery] Galleries showing only codeSomething very strange happened. I installed another plugin (Photoswipe Masonry), and although that plugin doesn’t work either, it fixes our galleries.
Forum: Plugins
In reply to: [Bambora Online ePay] The plugin does not have a valid header.For some reason, it didn’t let me activate from the plugin installation screen, but it did from the plugin list page.
Forum: Plugins
In reply to: [Basic User Avatars] Filter for resizingThanks for the reply. I’ll give that a try. The problem is that the generated square images are cropped, and most of them are cropped so that half the head is missing. My guess is that it’s cropping from the top and bottom, when it should crop from the bottom (crop off the chest, but not the head).
In case someone else has this issue. Our site was hacked.
I cleaned it, and now it works fine.
Forum: Plugins
In reply to: [Payment Plugins for PayPal WooCommerce] Cross-Origin Request Blocked:I found the issue. We got hacked.
I was able to clean everything, and it’s working now.
Thanks
Forum: Plugins
In reply to: [Payment Plugins for PayPal WooCommerce] Cross-Origin Request Blocked:It’s https://scruplesgame.com/product/scruples-diy-pdf/
Thanks for checking.
Strange, I just went to the site to set up manually, and it showed as already connected.
Maybe it was a glitch with PayPal.
Thanks for the reply. No, that’s the only error (it is repeated a few times in the logs).
I’ll try the manual method.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Hooks not workingI got it working! There were two things causing the issue:
- FacetWP Relevanssi plugin. I had to disable it. Maybe I don’t understand its purpose, but I don’t think I need it since I don’t have any search facets.
- I added ‘only-products’ as a query var (it wasn’t before).
Thanks so much for all your help!
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Hooks not workingI think it’s the theme. I moved the form to outside the container after the footer (I want it in a modal), and now it works… go figure.
Just one last question. Sorry for being a pest, but I added a checkbox so if checked it only searches products, and it’s working for the ajax version, but not if you click enter or the search button.
This is what I have:
/** * @snippet Only display products if the products checkbox is checked */ add_filter( 'relevanssi_modify_wp_query', 'by_force_post_product' ); function by_force_post_product( $query ) { if (isset($query->query_vars['only-products']) && "yes" == $query->query_vars['only-products']){ $query->set('post_type', 'product'); error_log(print_r($query, true)); // this does get called and the output is below } return $query; } /** * @snippet Only display products if the products checkbox is checked */ add_filter('relevanssi_live_search_query_args', 'by_ajax_query'); function by_ajax_query($query){ if (isset($query['only-products']) && "yes" == $query['only-products']){ $query['post_types'] = 'product'; } return $query; }
This is the log from query:
WP_Query Object ( [query] => Array ( [only-products] => yes [s] => canola [action] => relevanssi_live_search [rlvquery] => canola [origin_id] => 0 [posts_per_page] => 7 [post_types] => product [relevanssi] => 1 ) [query_vars] => Array ( [only-products] => yes [s] => canola [action] => relevanssi_live_search [rlvquery] => canola [origin_id] => 0 [posts_per_page] => 7 [post_types] => product [relevanssi] => 1 [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [post_type] => product [nopaging] => [comments_per_page] => 50 [no_found_rows] => [search_terms_count] => 1 [search_terms] => Array ( [0] => canola ) [search_orderby_title] => Array ( [0] => wp_posts.post_title LIKE '{1525bd8c93b2b489ae9d40d703038cd1c9bc1b0bcdfbd7900cb9bc8ae329ec55}canola{1525bd8c93b2b489ae9d40d703038cd1c9bc1b0bcdfbd7900cb9bc8ae329ec55}' ) [order] => DESC ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( ) [relation] => AND [table_aliases:protected] => Array ( ) [queried_terms] => Array ( ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( ) [relation] => [meta_table] => [meta_id_column] => [primary_table] => [primary_id_column] => [table_aliases:protected] => Array ( ) [clauses:protected] => Array ( ) [has_or_relation:protected] => ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts WHERE 1=1 AND (((wp_posts.post_title LIKE '{1525bd8c93b2b489ae9d40d703038cd1c9bc1b0bcdfbd7900cb9bc8ae329ec55}canola{1525bd8c93b2b489ae9d40d703038cd1c9bc1b0bcdfbd7900cb9bc8ae329ec55}') OR (wp_posts.post_excerpt LIKE '{1525bd8c93b2b489ae9d40d703038cd1c9bc1b0bcdfbd7900cb9bc8ae329ec55}canola{1525bd8c93b2b489ae9d40d703038cd1c9bc1b0bcdfbd7900cb9bc8ae329ec55}') OR (wp_posts.post_content LIKE '{1525bd8c93b2b489ae9d40d703038cd1c9bc1b0bcdfbd7900cb9bc8ae329ec55}canola{1525bd8c93b2b489ae9d40d703038cd1c9bc1b0bcdfbd7900cb9bc8ae329ec55}'))) AND ((wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'future' OR wp_posts.post_status = 'draft' OR wp_posts.post_status = 'pending' OR wp_posts.post_status = 'private')) OR (wp_posts.post_type = 'page' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'future' OR wp_posts.post_status = 'draft' OR wp_posts.post_status = 'pending' OR wp_posts.post_status = 'private')) OR (wp_posts.post_type = 'attachment' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'future' OR wp_posts.post_status = 'draft' OR wp_posts.post_status = 'pending' OR wp_posts.post_status = 'private')) OR (wp_posts.post_type = 'product' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'future' OR wp_posts.post_status = 'draft' OR wp_posts.post_status = 'pending' OR wp_posts.post_status = 'private')) OR (wp_posts.post_type = 'product_guides' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'future' OR wp_posts.post_status = 'draft' OR wp_posts.post_status = 'pending' OR wp_posts.post_status = 'private'))) ORDER BY wp_posts.post_title LIKE '{1525bd8c93b2b489ae9d40d703038cd1c9bc1b0bcdfbd7900cb9bc8ae329ec55}canola{1525bd8c93b2b489ae9d40d703038cd1c9bc1b0bcdfbd7900cb9bc8ae329ec55}' DESC, wp_posts.post_date DESC LIMIT 0, 7 [post_count] => 0 [current_post] => -1 [in_the_loop] => [comment_count] => 0 [current_comment] => -1 [found_posts] => 0 [max_num_pages] => 0 [max_num_comment_pages] => 0 [is_single] => [is_preview] => [is_page] => [is_archive] => [is_date] => [is_year] => [is_month] => [is_day] => [is_time] => [is_author] => [is_category] => [is_tag] => [is_tax] => [is_search] => 1 [is_feed] => [is_comment_feed] => [is_trackback] => [is_home] => [is_privacy_policy] => [is_404] => [is_embed] => [is_paged] => [is_admin] => 1 [is_attachment] => [is_singular] => [is_robots] => [is_favicon] => [is_posts_page] => [is_post_type_archive] => [query_vars_hash:WP_Query:private] => 0ebbc72d84713b9855b911fc842d2f54 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => Array ( [0] => about [1] => an [2] => are [3] => as [4] => at [5] => be [6] => by [7] => com [8] => for [9] => from [10] => how [11] => in [12] => is [13] => it [14] => of [15] => on [16] => or [17] => that [18] => the [19] => this [20] => to [21] => was [22] => what [23] => when [24] => where [25] => who [26] => will [27] => with [28] => www ) [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) )
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Hooks not workingThe Live Ajax Search works fine. It’s when you click enter on it, or the search button that things go awry.
Could it be that the form gets rewritten to this?:
<form class="search-form">
The action and method get removed.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Hooks not workingThat was it. I switched from SearchWP Live Ajax Search to Relevanssi Live Ajax Search and that did it.
Now the problem is that if I click on the search button, it doesn’t go to the results page, it just reload the current page.
It seems my theme (customify) does something to the form so the Ajax doesn’t work, so I added the following as my form, but it just refreshes the page:
<form role="search" method="get" class="search-form" action="/"> <label> <span class="screen-reader-text">Search for:</span> <input type="search" class="search-field" placeholder="Search …" name="s" data-rlvlive="true" data-rlvparentel="#rlvlive" data-rlvconfig="default"> </label> <input type="submit" class="search-submit" value="Search"> <div id="rlvlive"></div> </form>
The code seems to be rendered into this:
<form class="search-form"> <label><br> <span class="screen-reader-text">Search for:</span><br> <input type="search" class="search-field" placeholder="Search …" name="s" data-rlvlive="true" data-rlvparentel="#rlvlive" data-rlvconfig="default" autocomplete="off" aria-owns="relevanssi_live_search_results_6482443b22489" aria-autocomplete="both"><br> </label><br> <input type="submit" class="search-submit"><p></p> <div id="rlvlive"><div aria-expanded="false" aria-live="polite" class="relevanssi-live-search-results" id="relevanssi_live_search_results_6482443b22489" role="listbox" tabindex="0" style="left: 264.5px; top: 2965.48px; width: 187.35px;"><div class="live-ajax-messages"> <div id="relevanssi-live-ajax-search-spinner"></div> </div> <div class="ajax-results"></div></div></div> </form>
PS: is there a way to add a short excerpt to the ajax results?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Hooks not workingWhat I did was disable and enable the plugin, and the search results changed. I also have a page that shouldn’t be indexed, and the setting does make a difference (without it, the page shows in results).
I am using in conjunction SearchWP (so it’s in a modal with Ajax).