【问题标题】:Dokan - Admin commission on shipping depending delivery methodDokan - 根据送货方式收取运费的管理佣金
【发布时间】:2020-08-12 18:03:26
【问题描述】:

我是 dokan 用户,在 dokan 中,您可以将运费设置为供应商或管理员。 主要是我想为供应商提供选择的可能性(所以所有的运费都由供应商承担)

  1. 统一运费
  2. 收集
  3. 免费送货

我想添加:(添加它不是问题)

  1. ADMIN 送货服务 ---> 费用必须由管理员而非供应商承担。

那么知道如何在我的收入中而不是向供应商收取管理员交付服务费吗?

                'name'    => 'shipping_fee_recipient',
                'label'   => __( 'Shipping Fee Recipient', 'dokan-lite' ),
                'desc'    => __( 'Who will be receiving the Shipping fees', 'dokan-lite' ),
                'type'    => 'select',
                'options' => array( 'seller' => __( 'Vendor', 'dokan-lite' ), 'admin' => __( 'Admin', 'dokan-lite' ) ),
                'default' => 'seller'
            ),    ```
--> this is the function when i can choose admin or vendor "function file in dokan"


【问题讨论】:

  • 您是否要求管理员设置运费而不是供应商?

标签: php dokan


【解决方案1】:

如果您希望管理员设置运输而不是供应商,那么 您可以在您的子主题 functions.php 上使用它:

remove_filter( 'woocommerce_cart_shipping_packages', 
'dokan_custom_split_shipping_packages' );
remove_filter( 'woocommerce_shipping_package_name', 
'dokan_change_shipping_pack_name');
remove_action( 'woocommerce_checkout_create_order_shipping_item', 
'dokan_add_shipping_pack_meta');`

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-03-27
    • 1970-01-01
    • 2021-07-05
    • 2017-07-10
    • 2019-02-20
    • 2018-08-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多