This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_shop_loop_item_title', 'ec_template_loop_product_brand', 41 ); | |
function ec_template_loop_product_brand() { | |
global $product; | |
$product_id = electro_wc_get_product_id( $product ); | |
$brands_tax = electro_get_brands_taxonomy(); | |
$terms = get_the_terms( $product_id, $brands_tax ); | |
$brand_name = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'electro_show_wishlist_count', '__return_true' ); | |
add_filter( 'electro_show_compare_count', '__return_true' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_currency_symbol', 'wc_change_uae_currency_symbol', 10, 2 ); | |
function wc_change_uae_currency_symbol( $currency_symbol, $currency ) { | |
switch ( $currency ) { | |
case 'AED': | |
$currency_symbol = 'AED'; | |
break; | |
} | |
return $currency_symbol; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Show the product title in the product loop. By default this is an H2. | |
*/ | |
function woocommerce_template_loop_product_title() { | |
?><span class="<?php echo esc_attr( apply_filters( 'woocommerce_product_loop_title_classes', 'woocommerce-loop-product__title' ) ); ?>"><?php the_title(); ?></span><?php | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function electro_set_header_v6_hooks() { | |
remove_action( 'electro_header_logo_area', 'electro_off_canvas_nav', 20 ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'init', 'ec_child_edit_header_icons', 20 ); | |
function ec_child_edit_header_icons() { | |
remove_action( 'electro_header_icons', 'electro_compare_header_icon', 70 ); | |
remove_action( 'electro_header_icons', 'electro_wishlist_header_icon', 80 ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'init', 'ec_child_add_rating' ); | |
function ec_child_add_rating() { | |
remove_action( 'woocommerce_after_shop_loop_item_title', 'electro_template_loop_rating', 70 ); | |
add_action( 'woocommerce_after_shop_loop_item_title', 'electro_template_loop_rating', 140 ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'electro_handheld_header_links', 'ec_child_add_wishlist_compare', 10 ); | |
function ec_child_add_wishlist_compare( $links ) { | |
$links['wishlist'] = array( | |
'priority' => 40, | |
'callback' => 'ec_child_wishlist_header_link' | |
); | |
$links['compare'] = array( | |
'priority' => 40, | |
'callback' => 'ec_child_compare_header_link' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_before_single_product', 'ec_child_modify_display_specs_attr' ); | |
function ec_child_modify_display_specs_attr() { | |
global $post; | |
update_post_meta( $post->ID, '_specifications_display_attributes', 'yes' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'init', 'ec_child_remove_navbar_search' ); | |
function ec_child_remove_navbar_search() { | |
remove_action( 'electro_header_v3', 'electro_navbar_search', 20 ); | |
remove_action( 'electro_header_v1', 'electro_navbar_search', 20 ); | |
} |
NewerOlder