【问题标题】:WooCommerce Shipping Totals work on frontend but not backendWooCommerce Shipping Totals 适用于前端,但不适用于后端
【发布时间】:2017-08-08 17:18:54
【问题描述】:

在我公司的 WooCommerce 网站上,运费计算适用于前端(面向客户),但不适用于后端(手动下电单时)。

地址已输入。我已尝试为产品添加运输类别和默认运费,但这无济于事。除非我通过 meta 手动添加金额,否则运费总额将保持在 0.00。

目前,我们正在使用面向客户的购物车系统,但如果您应该能够使用后端来下订单,那就太好了。 enter image description here

【问题讨论】:

  • 我们能看到出错的代码吗?或者你认为有错?
  • 它实际上只是带有基于重量的运输插件的默认 WooCommerce 购物车。我添加了自动完成支付订单:function auto_update_orders_status_from_processing_to_completed(){ // Get all current "processing" customer orders $processing_orders = wc_get_orders( $args = array( 'numberposts' => -1, 'post_status' => 'wc-processing', ) ); if(!empty($processing_orders)) foreach($processing_orders as $order) $order->update_status( 'completed' ); } add_action( 'init', 'auto_update_orders_status_from_processing_to_completed' );

标签: php wordpress woocommerce shipping


【解决方案1】:

实际上,WooCommerce 不会按设计在后端计算运费报价。许多用户建议使用该功能,但不幸的是还没有 ETA。见https://github.com/woocommerce/woocommerce/issues/17238

如果你现在需要这个,你必须购买一个商业插件,因为有很多提供正是这样的功能。您应该在 WooCommerce 插件中搜索“手动订单”或“电话订单”。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-27
    • 2015-01-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-03
    • 2020-01-13
    • 1970-01-01
    相关资源
    最近更新 更多