'; return $form; } add_filter( 'get_product_search_form' , 'buzzstore_product_searchform' ); } /** ** WooCommerce Advance Search Here **/ if(!function_exists ('buzzstore_adc_product_search_form')){ function buzzstore_adc_product_search_form(){ $bs_search_placeholder = esc_attr(get_theme_mod('buzzstore_search_options_placeholder','Product Search...')); $args = array( 'number' => '', 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => true, 'include' => array() ); $product_categories = get_terms( 'product_cat', $args ); $categories_show = ''; $check = ''; if(is_search()){ if(isset($_GET['term']) && $_GET['term']!=''){ $check = $_GET['term']; } } $checked = ''; foreach($product_categories as $category){ if(isset($category->slug)){ if(trim($category->slug) == trim($check)){ $checked = 'selected="selected"'; } $categories_show .= ''; $checked = ''; } } $form = ''; echo $form; } } /** ** WooCommerce Section Start Here **/ if ( ! function_exists( 'is_woocommerce_activated' ) ) { function is_woocommerce_activated() { if ( class_exists( 'woocommerce' ) ) { return true; } else { return false; } } } /** ** WooCommerce Section Start Here **/ if (is_woocommerce_activated()) { if ( ! function_exists( 'buzzstore_quick_view_cart_item' ) ) { function buzzstore_quick_view_cart_item() { //Check if WooCommerce is active and add a new item to a menu assigned to Primary Navigation Menu location if ( !in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) )) ob_start(); global $woocommerce; $viewing_cart = __('View your shopping cart', 'buzzstore'); $cart_url = $woocommerce->cart->get_cart_url(); $shop_page_url = get_permalink( woocommerce_get_page_id( 'shop' ) ); $cart_contents_count = $woocommerce->cart->cart_contents_count; $cart_contents = sprintf(_n('%d ITEM(S) - ', '%d ITEM(S) - ', $cart_contents_count, 'buzzstore'), $cart_contents_count); $cart_total = $woocommerce->cart->get_cart_total(); if ($cart_contents_count == 0) { $menu_item = '
'; } else { $menu_item = '
'; } $menu_item .= ''; $menu_item .= ' '.$cart_contents.' '; $menu_item .= ' '.$cart_total.' '; $menu_item .= ''; $menu_item .= '
'; echo $menu_item; $buzzstore_cart = ob_get_clean(); return $buzzstore_cart; } } if ( ! function_exists( 'buzzstore_quick_view_cart_dropdown' ) ) { function buzzstore_quick_view_cart_dropdown( $fragments ) { global $woocommerce; ob_start(); $viewing_cart = __('View your shopping cart', 'buzzstore'); $cart_url = $woocommerce->cart->get_cart_url(); $cart_contents_count = $woocommerce->cart->cart_contents_count; $cart_total = $woocommerce->cart->get_cart_total(); ?>
cart->cart_contents ) > 0 ){ ?>

    cart->get_cart() as $cart_item_key => $cart_item ) { $_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); $product_id = apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key ); if ( $_product && $_product->exists() && $cart_item['quantity'] > 0 && apply_filters( 'woocommerce_widget_cart_item_visible', true, $cart_item, $cart_item_key ) ) { $product_name = apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key ); $thumbnail = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key ); $product_price = apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key ); ?>
  • ' . sprintf( '%s × %s', $cart_item['quantity'], $product_price ) . '', $cart_item, $cart_item_key ); ?>

'top-menu', 'depth' => 1, 'menu_class' => 'nav nav-pills nav-top navbar-left buzz-left-top-section', 'fallback_cb' => 'buzzstore_top_menu_default' ) ); } else if($top_left_options == 'quickinfo'){ do_action('buzzstore_quickcontact'); } } add_action('buzzstore_left_section','buzzstore_left_main_section'); endif; /************************************************************ ** End Left Section ** Start Right Section ** *************************************************************/ /** * Buzz Store Right Action Section **/ if ( ! function_exists( 'buzzstore_right_main_section' ) ) : function buzzstore_right_main_section(){ ?>

  • id="li-comment-">
    %s','buzzstore'), get_comment_author_link()) ?> comment_approved == '0') : ?>
    $depth, 'max_depth' => $args['max_depth']))) ?>