ast_get_tracking_items not working
-
Hi,
I’m trying to write a custom Code Snippet to fetch tracking information for orders.
I’m using the sample code given on https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/compatibility/developers/Here’s the code I’m using:
if ( function_exists( 'ast_get_tracking_items' ) ) { $tracking_items = ast_get_tracking_items($order_id); print_r($tracking_items); }
It works as desired if I put the code in the Snippet body. But if I put the code inside a function, the if condition is never true. Can you help me debug or recommend alternate solution?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘ast_get_tracking_items not working’ is closed to new replies.