php 在我的帐户中添加跟踪信息(Orders.php和View-Order.php)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 在我的帐户中添加跟踪信息(Orders.php和View-Order.php)相关的知识,希望对你有一定的参考价值。


<!-- ORDERS LIST - ORDERS.PHP PAGE -->

<?php if( get_field('delivery_service', $order->id) != "Not Shipped" ): ?>
                            /
                            <?php if( get_field('delivery_service', $order->id) == "UPS" ): ?>
	                   <a href="https://www.ups.com/track?loc=en_US&tracknum=<?php the_field('ups_tracking', $order->id); ?>&requester=WT/trackdetails">TRACK</a>
                            <?php endif; ?>
                            
                            <?php if( get_field('delivery_service', $order->id) == "USPS" ): ?>
	                   <a href="https://tools.usps.com/go/TrackConfirmAction?tLabels=<?php the_field('usps_tracking', $order->id); ?>">TRACK</a>
                            <?php endif; ?>
                            
                            <?php if( get_field('delivery_service', $order->id) == "FedEx" ): ?>
	                   <a href="https://www.fedex.com/apps/fedextrack/?action=track&action=track&tracknumbers=<?php the_field('fedex_tracking', $order->id); ?>&requester=WT/trackdetails">TRACK</a>
                            <?php endif; ?>
                            
<?php endif; ?>
                            
                            
                            
                            
<!-- SINGLE ORDER PAGE - VIEW-ORDER.PHP PAGE -->


<?php if( get_field('delivery_service', $order->id) != "Not Shipped" ): ?>
                            Track:
                            <?php if( get_field('delivery_service', $order->id) == "UPS" ): ?>
	                   <a href="https://www.ups.com/track?loc=en_US&tracknum=<?php the_field('ups_tracking', $order->id); ?>&requester=WT/trackdetails"><?php the_field('ups_tracking', $order->id); ?></a>
                            <?php endif; ?>
                            
                            <?php if( get_field('delivery_service', $order->id) == "USPS" ): ?>
	                   <a href="https://tools.usps.com/go/TrackConfirmAction?tLabels=<?php the_field('usps_tracking', $order->id); ?>"><?php the_field('usps_tracking', $order->id); ?></a>
                            <?php endif; ?>
                            
                            <?php if( get_field('delivery_service', $order->id) == "FedEx" ): ?>
	                   <a href="https://www.fedex.com/apps/fedextrack/?action=track&action=track&tracknumbers=<?php the_field('fedex_tracking', $order->id); ?>&requester=WT/trackdetails"><?php the_field('fedex_tracking', $order->id); ?></a>
                            <?php endif; ?>
                            
<?php endif; ?>

以上是关于php 在我的帐户中添加跟踪信息(Orders.php和View-Order.php)的主要内容,如果未能解决你的问题,请参考以下文章

如何使用 Google API PHP SDK 获取用户信息

将 Google Ads 转化跟踪代码手动添加到 Facebook 客户聊天中

返回关于成功付款贝宝的客户信息

在 PHP 中添加付款方式和托管到网站

php 添加跟踪信息到电子邮件

joomla 组件不适用于我的主机帐户