在woocommerce官方android应用中使用meta键显示自定义字段数据

问题描述

Woocommerce mobile app display custom field?这个问题的答复,该问题没有任何回应,我也对此问题进行了调查,但没有任何答案或解决方案。我的意图还在于在woocommerce android应用程序中显示我在计费和运输表格中具有的自定义字段的数据。我使用不同的php代码在php模板中显示自定义字段数据,例如:`

<?php
    $custom_order_meta = get_post_meta($order->get_order_number(),'order_field_custom_key_meta',true);

    if( ! empty($custom_order_meta) )
    { ?>
<p> <?php
printf( '<strong>Title Field:</strong> ' . esc_html( '%s','woocommerce' ),esc_html($custom_order_meta)  );?> 
</p> <?php 
    }
    ?>

` 我使用此代码在“帐单和收货地址”部分的订单电子邮件中显示自定义字段数据。

我附上了官方woocommerce应用程序的图像,以便于更好地理解。在图像中,您可以看到默认情况下该应用程序仅显示帐单和送货地址的基本数据的预览。

Woocommerce Oficial App Android

对于产品,我使用的代码为Display and save formated dimensions of the product everywhere,该代码显示了网站所有部分中产品的重量和尺寸,但似乎这些也未在woocommerce android应用程序中显示。

Capture of the official woocommerce android application that does not show the weight and dimensions.

感谢您的帮助,谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...