【问题标题】:How do I add my Shipping info to the 'thank you' page in WooCommerce (Wordpress)如何将我的运输信息添加到 WooCommerce (Wordpress) 中的“谢谢”页面
【发布时间】:2016-06-18 01:25:14
【问题描述】:

我有一个使用 WooCommerce 进行在线交易的 Wordpress 网站 - 在订单完成页面(感谢页面)上,我看到了账单地址,但没有看到送货地址(即使地址不同)

如何让送货地址始终显示在此订单确认页面上。

【问题讨论】:

  • 编辑order/order-details-customer.php ,滚动到文件底部,您会注意到送货地址已被包裹在条件中,只需将条件注释掉即可。
  • 阿南德,把这个作为答案。

标签: wordpress woocommerce wordpress-theming custom-wordpress-pages


【解决方案1】:

编辑order/order-details-customer.php ,滚动到文件底部,您会注意到送货地址已被包裹在条件中,只需将条件注释掉,送货地址将始终显示。

您需要通过overriding WooCommerce templates 完成此操作

【讨论】:

    【解决方案2】:

    复制文件 wp-content/plugins/woocommerce/templates/checkout/thankyou.php 并将其放入 wp-content/themes/YOUR_THEME/woocommerce/checkout/thankyou.php.

    wp_user_meta wordpress 表中获取用户运费。它就像覆盖模板。将我们的字段添加到该模板。

    【讨论】:

      猜你喜欢
      • 2021-09-12
      • 2019-01-04
      • 2022-11-03
      • 1970-01-01
      • 1970-01-01
      • 2021-10-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多