Forum Replies Created
-
AuthorPosts
-
If sombody is looking for the hooks enfold provides, here is an unfiltered list of all ive found:
do_action(‘ava_after_main_title’ );
do_action (‘ava_add_custom_default_sidebars’);
do_action(‘ava_after_content’, ”, ‘error404’);
do_action(‘ava_after_content’, $the_id, ‘loop-author’);
do_action(‘ava_after_content’, $the_id, ‘loop-search’);
do_action(‘ava_after_content’, $the_id, ‘post’);
do_action(‘ava_after_content’, get_the_ID(), ‘page’);
do_action(‘ava_after_content’, get_the_ID(), ‘single-portfolio’);
do_action(‘ava_after_import_demo_settings’ );
do_action(‘ava_after_main_container’);
do_action(‘ava_after_main_menu’);
do_action(‘ava_after_main_title’ );
do_action(‘ava_after_theme_update’ );
do_action(‘ava_before_bottom_main_menu’);
do_action(‘ava_before_footer’ );
do_action(‘ava_frontend_search_form’);
do_action(‘ava_generate_styles’, $options, $color_set, $styles);
do_action(‘ava_inside_main_menu’);
do_action(‘ava_main_header_sidebar’);
do_action(‘ava_main_header’);
do_action(‘ava_search_after_get_header’ );
do_action(‘ava_trigger_updates’, $this->db_version, $this->theme_version);
do_action(‘avia_404_extra’);
do_action(‘avia_action_before_framework_init’ );
do_action(‘avia_add_to_cart’, $post, $product );
do_action(‘avia_after_custom_import_hook’);
do_action(‘avia_after_footer_columns’);
do_action(‘avia_after_import_hook’);
do_action(‘avia_ajax_after_save_options_page’, $current_options );
do_action(‘avia_ajax_reset_options_page’);
do_action(‘avia_ajax_save_options_page’, $current_options );
do_action(‘avia_backend_theme_activation’);
do_action(‘avia_before_footer_columns’);
do_action(‘avia_import_hook’);
do_action(‘avia_mega_menu_option_fields’, $output, $item, $depth, $args);
do_action(‘avia_meta_box_save_post’, $post_id, $result);
do_action(‘avia_meta_header’);
do_action(‘avia_save_post_meta_box’);
do_action(‘avia_shortcode_dialog’);
do_action(‘avia_shortcode_prev’);
do_action(‘avia_wpml_backend_language_switch’);
do_action(‘aviw_after_widget’, $instance );
do_action(‘aviw_before_widget’, $instance );
do_action(‘import_end’ );
do_action(‘import_post_meta’, $post_id, $key, $value );
do_action(‘import_start’ );
do_action(‘layerslider_activated’);
do_action(‘layerslider_after_slider_content’);
do_action(‘layerslider_before_slider_content’);
do_action(‘layerslider_deactivated’);
do_action(‘layerslider_installed’);
do_action(‘layerslider_ready’);
do_action(‘layerslider_uninstalled’);
do_action(‘layerslider_updated’);
do_action(‘tgmpa_register’ );
do_action(‘tribe_events_after_template’ )
do_action(‘tribe_events_before_template’ );
do_action(‘tribe_events_single_event_after_the_content’ )
do_action(‘tribe_events_single_event_after_the_meta’ )
do_action(‘tribe_events_single_event_before_the_content’ )
do_action(‘tribe_events_single_event_before_the_meta’ )
do_action(‘wp_import_insert_comment’, $inserted_comments[$key], $comment, $comment_post_ID, $post );
do_action(‘wp_import_insert_post’, $post_id, $original_post_ID, $postdata, $post );
do_action(‘wp_import_insert_term_failed’, $t, $term, $post_id, $post );
do_action(‘wp_import_insert_term’, $t, $term, $post_id, $post );
do_action(‘wp_import_post_exists’, $post );
do_action(‘wp_import_set_post_terms’, $tt_ids, $ids, $tax, $post_id, $post );
do_action(‘wp_nav_menu_item_custom_fields’, $item_id, $item, $depth, $args );Hey, this is not available in the latest version (4.1.2). How do you disable search now?
May 20, 2017 at 8:06 pm in reply to: Avia custom woo page, incompatible with woocommerce search widget #797093This is clearly a bug. Now the big question is… will you be implementing a fix for this problem?
May 4, 2017 at 10:06 pm in reply to: Avia custom woo page, incompatible with woocommerce search widget #788080I guess i call it dirty because i havent studied all the options and posibilities of the code to maybe find the optimal solution. Do you think this is a good solution?
May 2, 2017 at 3:34 pm in reply to: Avia custom woo page, incompatible with woocommerce search widget #786436Hi, any luck on this?
Below is is at least my temporary dirty fix. Hopefully you guys have an another more sustainable solution, now that you know this framework a bit better than i. :)
/* * OVERRIDE A FUNCTION IN enfold/woocommerce/config.php * This fixes an error in the search results when searched from the woocommerce search widget * Support ticket: https://kriesi.at/support/topic/avia-custom-woo-page-incompatible-with-woocommerce-search-widget/ */ add_filter( 'pre_get_posts', 'avia_woocommerce_default_page', 100 ); function avia_woocommerce_default_page($query) { if(current_theme_supports('avia_custom_shop_page')) { if(!$query->is_admin && $query->is_main_query() && !$query->is_tax && $query->is_archive && $query->is_post_type_archive) { $vars = $query->query_vars; if(isset($vars['post_type']) && 'product' == $vars['post_type'] ) { $shop_page_id = wc_get_page_id( 'shop' ); $builder_active = AviaHelper::builder_status($shop_page_id); if($builder_active == "active" && !$query->is_search) { $query->set( 'post_type', 'page' ); $query->set( 'p', $shop_page_id ); $query->set( 'meta_query', array() ); $query->is_singular = true; $query->is_page = true; $query->is_archive = false; $query->is_post_type_archive = false; $query->query = array('p'=>$shop_page_id, 'post_type' => 'page'); }elseif ($query->is_search){ $query->is_singular = false; $query->is_page = false; $query->is_archive = false; $query->is_shop = false; $query->is_post_type_archive = false; add_filter( 'template_include', function() { return locate_template( 'search.php' ); }, 100 ); } } } } return $query; }
April 30, 2017 at 12:17 pm in reply to: Avia custom woo page, incompatible with woocommerce search widget #785224Thanks, but whether you should or should not, Kriesi has added a feature for this to be overridden.. Ref from woocommerce/config.php:
/* Function that is able to overwrite the default "shop" page used by woocommerce so the template builder can be used Will only be executed if the user has switched the "shop" page to advanced layout builder. Default products are no longer displayed and the user needs to add a product grid element Can be activated by adding add_theme_support( 'avia_custom_shop_page' ); to your functions.php file */
But that is not what im asking advice for. I want to know how i can fix the issue of the code that breaks the woocommerce search results, when using the woocomerce search widget. This happens when add_theme_support( ‘avia_custom_shop_page’ ) is activated.
As i stated i my initial request it seems something happens when the search query contains post_type=product as an additional parameter. Search works fine without this url parameter.
WORKS: /?s=searchstring
DOESENT WORK: /?s=searchstring&post_type=product- This reply was modified 7 years, 6 months ago by ithagen.
January 27, 2017 at 3:01 pm in reply to: Link input fields not showing in Advanced Layout Builder #739395Thanks a lot Yigit!
I downgraded to PHP 7.0 and now it is working. -
AuthorPosts