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( 'storefront_handheld_footer_bar_links', 'jk_remove_handheld_footer_links' ); | |
function jk_remove_handheld_footer_links( $links ) { | |
unset( $links['my-account'] ); | |
unset( $links['search'] ); | |
unset( $links['cart'] ); | |
return $links; | |
} |
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', 'jk_remove_storefront_handheld_footer_bar' ); | |
function jk_remove_storefront_handheld_footer_bar() { | |
remove_action( 'storefront_footer', 'storefront_handheld_footer_bar', 999 ); | |
} |
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( 'storefront_handheld_footer_bar_links', 'jk_add_home_link' ); | |
function jk_add_home_link( $links ) { | |
$new_links = array( | |
'home' => array( | |
'priority' => 10, | |
'callback' => 'jk_home_link', | |
), | |
); | |
$links = array_merge( $new_links, $links ); |
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
.storefront-handheld-footer-bar ul li.home > a:before { | |
content: "\f015"; | |
} |
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
<? | |
/** | |
* @snippet Добавить артикул поставщика в карточку товара | |
*/ | |
// ----------------------------------------- | |
// 1. Добавим поле на вкладку "Основные" после цен | |
add_action( 'woocommerce_product_options_sku', 'usota_add_vendor_sku_to_products', 5, 0 ); | |
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
// Edit order items table template defaults | |
function sww_add_wc_order_email_images( $table, $order ) { | |
ob_start(); | |
$template = $plain_text ? 'emails/plain/email-order-items.php' : 'emails/email-order-items.php'; | |
wc_get_template( $template, array( | |
'order' => $order, | |
'items' => $order->get_items(), | |
'show_download_links' => $show_download_links, |
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 sww_edit_order_item_name( $name ) { | |
return $name . '<br />'; | |
} | |
add_filter( 'woocommerce_order_item_name', 'sww_edit_order_item_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
/** | |
* @snippet Display RRP/MSRP @ WooCommerce Single Product Page | |
* @how-to Get CustomizeWoo.com FREE | |
* @author Rodolfo Melogli | |
* @compatible WC 3.8 | |
* @donate $9 https://businessbloomer.com/bloomer-armada/ | |
*/ | |
// ----------------------------------------- | |
// 1. Add RRP field input @ product edit page |
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
[pods field="my_custom_field"] | |
[pods]{@my_custom_field}[/pods] |
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_product_tabs', 'usota_woo_rename_tab', 98); | |
function usota_woo_rename_tab($tabs) { | |
$tabs['additional_information']['title'] = 'Характеристики'; | |
return $tabs; | |
} | |
add_filter('woocommerce_product_additional_information_heading', 'usota_product_additional_information_heading'); |
OlderNewer