-
WordPress教程:WooCommerce每页/每行向上销售产品数
每页/每行向上销售产品数 remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 ); add_action( 'woocommerce_after_single_product_summary', '…- 877
- 0
-
WordPress教程:将付款类型添加到WooCommerce管理电子邮件
将付款类型添加到WooCommerce管理电子邮件 add_action( 'woocommerce_email_after_order_table', 'add_payment_method_to_admin_new_order', 15, 2 ); function add_payment_method_to_admin_new_order( $orde…- 1k
- 0
-
WordPress教程:WooCommerce向管理员电子邮件添加付款方式
向管理员电子邮件添加付款方式 /** * WooCommerce Extra Feature * -------------------------- * * Add payment method to admin new order email * */ add_action( 'woocommerce_email_after_order_table', 'woo_…- 1k
- 0
-
WordPress教程:WooCommerce自定义添加到购物车消息
自定义添加到购物车消息 /** * Custom Add To Cart Messages * Add this to your theme functions.php file **/ add_filter( 'woocommerce_add_to_cart_message', 'custom_add_to_cart_message' ); functio…- 1.5k
- 0
-
WordPress教程:WooCommerce添加自定义费用到购物车
添加自定义费用到购物车 /** * WooCommerce Extra Feature * -------------------------- * * Add custom fee to cart automatically * */ function woo_add_cart_fee() { global $woocommerce; if ( is_cart() ) { $woocommerc…- 1.3k
- 0
-
WordPress教程:WooCommerce更改电子邮件主题行
更改电子邮件主题行 /* * Subject filters: * woocommerce_email_subject_new_order * woocommerce_email_subject_customer_procesing_order * woocommerce_email_subject_customer_completed_order * woocommerce_email_subj…- 1.1k
- 0
-
WordPress教程:WooCommerce创建优惠券程序
创建优惠券程序 $coupon_code = 'UNIQUECODE'; https:// Code $amount = '10'; https:// Amount $discount_type = 'fixed_cart'; https:// Type: fixed_cart, percent, fixed_product, perce…- 1.1k
- 0
-
WordPress教程:WooCommerce设置结账时“state”字段非必填
设置结账时“state”字段非必填 /** * WooCommerce Extra Feature * -------------------------- * * Make "state" field not required on checkout * */ add_filter( 'woocommerce_billing_fields', '…- 1.4k
- 0
-
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…- 1.3k
- 0
-
WordPress教程:WooCommerce替换“Free!”产品字符串
替换“Free!”产品字符串 /** * WooCommerce Extra Feature * -------------------------- * * Replace "Free!" by a custom string * */ function woo_my_custom_free_message() { return "This product is F…- 893
- 0
-
WordPress教程:WooCommerce限制运输的国家列表
限制运输的国家列表 /** * WooCommerce Extra Feature * -------------------------- * * Restrict shipping countries list * */ function woo_override_checkout_fields( $fields ) { $fields['shipping']['…- 1.3k
- 0
-
WordPress教程:WooCommerce移除面包屑
移除面包屑 /** * Remove WooCommerce BreadCrumb * */ remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20); 在哪里添加此代码? 将PHP代码放在主题或子主题functions.php文件的底部。- 1.4k
- 0
-
WordPress教程:禁用WooCommerce选项卡
禁用WooCommerce选项卡 /** * Remove product tabs * */ function woo_remove_product_tab($tabs) { unset( $tabs['description'] ); https:// Remove the description tab unset( $tabs['reviews'] …- 1.1k
- 0
-
WordPress教程:WooCommerce更改商城列数
更改商城列数 /** * WooCommerce Extra Feature * -------------------------- * * Change product columns number on shop pages * */ function woo_product_columns_frontend() { global $woocommerce; https:// Default…- 1.2k
- 0
-
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…- 961
- 0
-
WordPress教程:WooCommerce更改相关产品数量
更改相关产品数量 /** * WooCommerce Extra Feature * -------------------------- * * Change number of related products on product page * Set your own value for 'posts_per_page' * */ function woo_relate…- 1.2k
- 0
-
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…- 1.3k
- 0
-
WordPress教程:WooCommerce设置CC所有电子邮件
CC所有电子邮件 /** * WooCommerce Extra Feature * -------------------------- * * Add another email recipient to all WooCommerce emails * */ function woo_cc_all_emails() { return 'Bcc: youremail@yourdoma…- 1.1k
- 0
-
WordPress教程:WooCommerce加入购物车后,重定向到结账页面
加入购物车后,重定向到结账页面 /** * Redirect subscription add to cart to checkout page * * @param none */ function add_to_cart_checkout_redirect() { wp_safe_redirect( get_permalink( get_option( 'woocommerce_ch…- 1.6k
- 0
-
WordPress教程:WooCommerce重定向订阅添加到购物车到结账页面
重定向订阅添加到购物车到结账页面 /** * Redirect subscription add to cart to checkout page * * @param string $url */ function custom_add_to_cart_redirect( $url ) { $product_id = (int) $_REQUEST['add-to-cart'…- 1.2k
- 0
-
WordPress教程:WooCommerce更改添加到购物车按钮文字
更改添加到购物车按钮文字 /** * Change the add to cart text on single product pages */ function woo_custom_cart_button_text() { return __('My Button Text', 'woocommerce'); } add_filter('si…- 1.4k
- 0
-
WordPress教程:WooCommerce添加自定义货币/符号
添加自定义货币/符号 add_filter( 'woocommerce_currencies', 'add_my_currency' ); function add_my_currency( $currencies ) { $currencies['ABC'] = __( 'Currency name', '…- 2.2k
- 0
-
WordPress教程:WooCommerce访问时自动添加产品到购物车
访问时自动添加产品到购物车 /* * Add item to cart on visit */ function add_product_to_cart() { if ( ! is_admin() ) { global $woocommerce; $product_id = 64; $found = false; https://check if product already in cart i…- 1.2k
- 0
-
WordPress教程:WooCommerce清空购物车
清空购物车 /* * Empty WooCommerce cart */ function my_empty_cart(){ global $woocommerce; $woocommerce->cart->empty_cart(); } add_action('init', 'my_empty_cart'); 在哪里添加此代码? 将PHP代码放…- 1.7k
- 0
❯
个人中心
购物车
优惠劵
今日签到
有新私信
私信列表
搜索
扫码打开当前页
返回顶部
幸运之星正在降临...
点击领取今天的签到奖励!
恭喜!您今天获得了{{mission.data.mission.credit}}积分
我的优惠劵
-
¥优惠劵使用时效:无法使用使用时效:
之前
使用时效:永久有效优惠劵ID:×
没有优惠劵可用!