Support » Plugin: Advanced Shipment Tracking for WooCommerce » Add per product shipping number in php

  • Resolved baumkuchen

    (@baumkuchen)


    Before I buy the Pro version, I want to know how to add “per product tracking” with php code.

    We do not use the “Shipment Tracking API”. Because we get Shipment Numbers by emails. So i have to right a bit of code to add it to the orders.

    How I can use “ast_insert_tracking_number” for per product tracking (for DHL, UPS and Hermes)?

    $order_id = $request['order_id'];
            $status_shipped = 1;
            $tracking_number = $note->comment_content;
            $tracking_provider = 'UPS';
            
            ast_insert_tracking_number($order_id, $tracking_number, $tracking_provider, '', $status_shipped );
    • This topic was modified 1 month, 2 weeks ago by baumkuchen.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author zorem

    (@zorem)

    Hi. AST does not support tracking per item, only the AST PRO, we do not support adding custom code and you must have the AST PRO to be able to add tracking per item to orders, it will not work with the free version.

    Thread Starter baumkuchen

    (@baumkuchen)

    Thanks for your Answer. And how can I do it in Pro Version?

    Is there sample code or snippets to copy and paste it?

    Plugin Author zorem

    (@zorem)

    Hi, For any question related to the Pro Version please contact the zorem.com.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.