• Resolved Zorem

    (@zorem)


    Hi, we wanted to add compatibility to your plugin with our advanced shipment tracking plugin.
    A few of your customers are using our plugin and they would like to add the tracking info to the SMS content.
    We can create a snippet for them, we just need to have a hook in your plugin where we can add the tracking details.
    Can you add this hook in your plugin?
    Thanks

    • This topic was modified 4 years, 7 months ago by Zorem.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
    • This reply was modified 4 years, 7 months ago by Cozy Vision.
    • This reply was modified 4 years, 7 months ago by Cozy Vision.
    • This reply was modified 4 years, 7 months ago by Cozy Vision.
    Plugin Author Art Project Group

    (@artprojectgroup)

    Send us what do you need exactly and we’ll try to add it in the next update.

    Kind regards.

    Plugin Author Art Project Group

    (@artprojectgroup)

    Remember that you have the apg_sms_message and apg_sms_message_return filters, for example.

    Kind regards.

    Thread Starter Zorem

    (@zorem)

    Hi @artprojectgroup,

    We need to add tracking information when you send completed order SMS.

    Below is the code for getting the tracking information of the order and send in message.

    if ( is_plugin_active( 'woo-advanced-shipment-tracking/woocommerce-advanced-shipment-tracking.php' ) ) {
    	$ast = new WC_Advanced_Shipment_Tracking_Actions;
    	$tracking_items = $ast->get_tracking_items( $order_id );
    	
    	if ( count( $tracking_items ) > 0 ) {
    		foreach ( $tracking_items as $key => $tracking_item ) {	
    			echo sprintf(__("Your order was shipped with %s and your tracking code is: %s", 'woo-advanced-shipment-tracking'), $tracking_item['formatted_tracking_provider'], $tracking_item['tracking_number'] );		
    		}
    	}
    }
    • This reply was modified 4 years, 7 months ago by Zorem.
    Plugin Author Art Project Group

    (@artprojectgroup)

    You or your customers can add that code to apg_sms_message filter. There’s no necessary any additional implementation.

    Kind regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘advanced shipment tracking plugin compatibility’ is closed to new replies.