Feature / Change Request: OrderNumber instead of OrderId
-
Hi,
a short feature /change request.
Could you please change the thankyou template (…./woocommerce-trusted-shops/templates/trusted-shops/thankyou.php) to use the get_order_number() method of the Woocommerce WC_Order class.
So
…
<span id=”tsCheckoutOrderNr”><?php echo $order->get_order_number(); ?></span>
…
instead of
…
<span id=”tsCheckoutOrderNr”><?php echo wc_ts_get_crud_data( $order, ‘id’ );?></span>
…This would be really helpful if you use a plugin like “WooCommerce Basic Ordernumbers” and do not want to communicate the WordPress postID as the order Id to a customer.
The get_order_number() Method returns by default the order Id, so no change for all who do not use a plugin like i mentioned before.
https://woocommerce.github.io/code-reference/classes/WC-Order.html#method_get_order_number
Best,
Max
- The topic ‘Feature / Change Request: OrderNumber instead of OrderId’ is closed to new replies.