-
WordPress教程:WooCommerce当免费送货可用时隐藏所有其他运送方式
当免费送货可用时隐藏所有其他运送方式 https:// Hide ALL shipping options when free shipping is available add_filter( 'woocommerce_available_shipping_methods', 'hide_all_shipping_when_free_is_available…...- 小朱笔记
- 0
- 2
- 1.3k
-
WordPress教程:WooCommerce替换“Free!”产品字符串
替换“Free!”产品字符串 /** * WooCommerce Extra Feature * -------------------------- * * Replace "Free!" by a custom string * */ function woo_my_custom_free_message() { return "This product is F…...- 小朱笔记
- 0
- 0
- 893
-
WordPress教程:WooCommerce限制运输的国家列表
限制运输的国家列表 /** * WooCommerce Extra Feature * -------------------------- * * Restrict shipping countries list * */ function woo_override_checkout_fields( $fields ) { $fields['shipping']['…...- 小朱笔记
- 0
- 0
- 1.3k
-
WordPress教程:WooCommerce移除面包屑
移除面包屑 /** * Remove WooCommerce BreadCrumb * */ remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20); 在哪里添加此代码? 将PHP代码放在主题或子主题functions.php文件的底部。...- 小朱笔记
- 0
- 0
- 1.5k
-
WordPress教程:禁用WooCommerce选项卡
禁用WooCommerce选项卡 /** * Remove product tabs * */ function woo_remove_product_tab($tabs) { unset( $tabs['description'] ); https:// Remove the description tab unset( $tabs['reviews'] …...- 小朱笔记
- 0
- 0
- 1.1k
-
WordPress教程:WooCommerce更改商城列数
更改商城列数 /** * WooCommerce Extra Feature * -------------------------- * * Change product columns number on shop pages * */ function woo_product_columns_frontend() { global $woocommerce; https:// Default…...- 小朱笔记
- 0
- 0
- 1.2k
-
WordPress教程:WooCommerce从商店页面中的特定类别中排除产品
从商店页面中的特定类别中排除产品 /** * Remove products from shop page by category * */ function woo_custom_pre_get_posts_query( $q ) { if ( ! $q->is_main_query() ) return; if ( ! $q->is_post_type_archive() ) re…...- 小朱笔记
- 0
- 0
- 961
-
WordPress教程:WooCommerce更改相关产品数量
更改相关产品数量 /** * WooCommerce Extra Feature * -------------------------- * * Change number of related products on product page * Set your own value for 'posts_per_page' * */ function woo_relate…...- 小朱笔记
- 0
- 0
- 1.2k
-
WordPress教程:WooCommerce当使用优惠券完成新订单时,发送电子邮件
当使用优惠券完成新订单时,发送电子邮件 /** * WooCommerce Extra Feature * -------------------------- * * Send an email each time an order with coupon(s) is completed * The email contains coupon(s) used during checkout pr…...- 小朱笔记
- 0
- 0
- 1.3k
-
WordPress教程:WooCommerce设置CC所有电子邮件
CC所有电子邮件 /** * WooCommerce Extra Feature * -------------------------- * * Add another email recipient to all WooCommerce emails * */ function woo_cc_all_emails() { return 'Bcc: youremail@yourdoma…...- 小朱笔记
- 0
- 0
- 1.1k