/home/techb158/public_html/wp-content/themes/engitech/inc/woocommerce/
/home/techb158/public_html/wp-content/themes/engitech/inc/woocommerce
NameSizeModeActions
woocommerce.php140630666editdlrm
Edit: /home/techb158/public_html/wp-content/themes/engitech/inc/woocommerce/woocommerce.php (14063B)
4, 'columns' => 4, ); $args = wp_parse_args( $defaults, $args ); return $args; } add_filter( 'woocommerce_output_related_products_args', 'engitech_woocommerce_related_products_args' ); /** * Remove the breadcrumbs */ add_action( 'init', 'engitech_wc_breadcrumbs' ); function engitech_wc_breadcrumbs() { remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 ); add_action( 'engitech_woocommerce_breadcrumb', 'woocommerce_breadcrumb' ); } /** * Change several of the breadcrumb defaults */ add_filter( 'woocommerce_breadcrumb_defaults', 'engitech_woocommerce_breadcrumbs' ); function engitech_woocommerce_breadcrumbs() { return array( 'delimiter' => '', 'wrap_before' => '
    ', 'wrap_after' => '
', 'before' => '
  • ', 'after' => '
  • ', 'home' => _x( 'Home', 'breadcrumb', 'engitech' ), ); } /** * Remove the product link */ remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 ); remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5 ); remove_action( 'woocommerce_shop_loop_item_title','woocommerce_template_loop_product_title', 10 ); add_action('woocommerce_shop_loop_item_title', 'engitech_change_products_title', 10 ); function engitech_change_products_title() { echo '

    ' . get_the_title() . '

    '; } /** * Remove default WooCommerce wrapper. */ remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 ); if ( ! function_exists( 'engitech_woocommerce_wrapper_before' ) ) { /** * Before Content. * * Wraps all WooCommerce content in wrappers which match the theme markup. * * @return void */ function engitech_woocommerce_wrapper_before() { ?>
    cart->get_cart_contents_count() ); $fragments['span.cart-count'] = ''.$item_count_text.''; return $fragments; } } add_filter( 'woocommerce_add_to_cart_fragments', 'engitech_woocommerce_cart_link_fragment' ); if ( ! function_exists( 'engitech_woocommerce_header_cart' ) ) { /** * Display Header Cart. * * @return void */ function engitech_woocommerce_header_cart() { if ( is_cart() ) { $class = 'current-menu-item'; } else { $class = ''; } ?>
    • '', ); the_widget( 'WC_Widget_Cart', $instance ); ?>
    __( 'Shop Sidebar', 'engitech' ), 'id' => 'shop-sidebar', 'before_widget' => '
    ', 'after_widget' => '
    ', 'before_title' => '
    ', 'after_title' => '
    ', ) ); } add_action( 'widgets_init', 'engitech_woocommerce_widgets_init' ); /* Customizer Shop */ function engitech_shop_customize_settings() { /** * Customizer configuration */ $settings = array( 'theme' => 'engitech', ); $panels = array(); $sections = array( 'single_product' => array( 'title' => esc_html__( 'Single Product', 'engitech' ), 'description' => '', 'priority' => 16, 'capability' => 'edit_theme_options', 'panel' => 'woocommerce', ), ); $fields = array( // Shop Page 'shop_layout' => array( 'type' => 'radio-image', 'label' => esc_html__( 'Shop Layout', 'engitech' ), 'section' => 'woocommerce_product_catalog', 'default' => 'content-sidebar', 'priority' => 7, 'description' => esc_html__( 'Select default sidebar for the shop page.', 'engitech' ), 'choices' => array( 'content-sidebar' => get_template_directory_uri() . '/inc/backend/images/right.png', 'sidebar-content' => get_template_directory_uri() . '/inc/backend/images/left.png', 'full-content' => get_template_directory_uri() . '/inc/backend/images/full.png', ) ), // Single Product Page 'single_shop_layout' => array( 'type' => 'radio-image', 'label' => esc_html__( 'Single Product Layout', 'engitech' ), 'section' => 'single_product', 'default' => 'content-sidebar', 'priority' => 1, 'choices' => array( 'content-sidebar' => get_template_directory_uri() . '/inc/backend/images/right.png', 'sidebar-content' => get_template_directory_uri() . '/inc/backend/images/left.png', 'full-content' => get_template_directory_uri() . '/inc/backend/images/full.png', ) ), 'page_title_product' => array( 'type' => 'text', 'label' => esc_html__( 'Title Page Header', 'engitech' ), 'section' => 'single_product', 'default' => 'Product Details', 'priority' => 1, ), 'related_product_switch' => array( 'type' => 'toggle', 'label' => esc_attr__( 'Related Product On/Off?', 'engitech' ), 'section' => 'single_product', 'default' => 0, 'priority' => 2, ), ); $settings['panels'] = apply_filters( 'engitech_customize_panels', $panels ); $settings['sections'] = apply_filters( 'engitech_customize_sections', $sections ); $settings['fields'] = apply_filters( 'engitech_customize_fields', $fields ); return $settings; } $engitech_customize = new Engitech_Customize( engitech_shop_customize_settings() ); //Custom Style Frontend if(!function_exists('engitech_woo_color_scheme')){ function engitech_woo_color_scheme(){ $color_scheme = array(); /* WooCommerce Customize colors */ if( engitech_get_option('main_color') != '#43baff' || engitech_get_option('second_color') != '#7141b1' ){ $color_scheme[] = ' /**Main**/ .woocommerce ul.products li.product .price .woocommerce-Price-amount, .woocommerce-page ul.products li.product .price .woocommerce-Price-amount, .woocommerce .woocommerce-Price-amount, .woocommerce div.product p.price, .woocommerce div.product span.price{ color: '.engitech_get_option('main_color').'; } .woocommerce ul.products li.product .added_to_cart, .woocommerce-page ul.products li.product .added_to_cart, .woocommerce-mini-cart__buttons a.button.wc-forward, .woocommerce .widget_price_filter .price_slider_amount button.button, .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,.woocommerce #respond input#submit:hover, .woocommerce a.button:hover,.woocommerce input.button:hover, .woocommerce button.button.alt.disabled:hover, .woocommerce button.button, .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover, .woocommerce div.product .woocommerce-tabs ul.tabs li.active a{ background-color: '.engitech_get_option('main_color').'; } /**Second**/ .woocommerce table.shop_table td.product-name a:hover, .woocommerce-message:before, .woocommerce-info:before, .woocommerce ul.product_list_widget li a:not(.remove):hover, .woocommerce .woocommerce-widget-layered-nav-list li a:hover{ color: '.engitech_get_option('second_color').'; } .woocommerce-mini-cart__buttons a.button.checkout{ border-color: '.engitech_get_option('second_color').'; } .woocommerce-message, .woocommerce-info{ border-top-color: '.engitech_get_option('second_color').'; } .woocommerce ul.products li.product .added_to_cart:hover, .woocommerce-page ul.products li.product .added_to_cart:hover, .woocommerce-mini-cart__buttons a.button.wc-forward:hover, .woocommerce-mini-cart__buttons a.button.checkout:hover, .woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce .widget_price_filter .ui-slider .ui-slider-handle, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt,.woocommerce button.button.alt, .woocommerce input.button.alt,.woocommerce #respond input#submit, .woocommerce a.button,.woocommerce input.button, .woocommerce button.button.alt.disabled, .woocommerce button.button:hover { background-color: '.engitech_get_option('second_color').'; } '; } if(! empty($color_scheme)){ echo ''; } } } add_action('wp_head', 'engitech_woo_color_scheme');