• Resolved Madhuben Prajapati

    (@maheshprajapati35)


    Presently message is sent while order status change to completed,

    But I want to send the message while order status is updated tracking,

    and also i want to customize this message.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Zorem

    (@zorem)

    Hi, Yes we are sending an email when order status changes to Updated Tracking and you can customize the Updated Tracking email.

    Check this doc to enable Updated Tracking email and how to customize it – https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/plugin-settings/#order-statuses

    Thanks,

    Thread Starter Madhuben Prajapati

    (@maheshprajapati35)

    hey!!! we are talking about message, with WC-APG-SMS-Notifigation

    Presently message is sent while order status change to completed,

    But we want to send the message while order status is updated tracking,

    and also we want to customize this message.

    Thread Starter Madhuben Prajapati

    (@maheshprajapati35)

    Awating for your responce because message is more important to us rather then mail

    Plugin Author Zorem

    (@zorem)

    Hi @maheshprajapati35,

    You need to contact WC – APG SMS Notifications plugin developer to add compatibility for send SMS for custom order status created by our plugin because SMS is sending by their plugin.

    Which SMS provider are you using? I recommend you to use SMS for WooCommerce plugin for sending SMS. We are fully compatile with this plugin.

    Thanks,

    Thread Starter Madhuben Prajapati

    (@maheshprajapati35)

    /**
    	 * Add tracking info in SMS when order status is completed
    	 * Compatibility with - WC – APG SMS Notifications
    	 *
    	*/	
    	public function apg_sms_message_fun($message , $order_id){			
    		$order = wc_get_order( $order_id );
    		$order_status = $order->get_status();
    		if($order_status == 'completed'){			
    			$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 ) {	
    					$message .= '<br>';
    					$message .= sprintf(__("Your order was shipped with %s and your tracking code is: %s", 'woo-advanced-shipment-tracking'), $tracking_item['tracking_provider'], $tracking_item['tracking_number'] );		
    				}
    			}			
    		}
    		return $message;
    	}
    

    Dear Sir,

    Your Plug in Sent the message to the order status completed,
    So now just tell me How can I stop this message to send,

    Because i already sent different message to completed status,
    And your plugin unwantedly add other message behind my pre-decided message

    we are happy if additionally you can help us in this case : we want to send the message while order status is updated tracking,
    and also we want to customize this message

    Plugin Author Zorem

    (@zorem)

    Hello, We are removing this SMS plugin compatibility code from our plugin and we will provide you code snippet for add tracking information for completed order status SMS. We will release the new version of our plugin in the next 1 or 2 weeks.

    For now, you can comment code for add tracking information for completed order status SMS from our plugin and use this code snippet.

    we are happy if additionally you can help us in this case : we want to send the message while order status is updated tracking,

    We can’t send SMS for updated tracking order status. We can just add a message behind your pre-decided message. If Updated tracking order staus SMS is not sending than you need to contact WC – APG SMS Notifications plugin developer to send it.

    Thanks,

    Thread Starter Madhuben Prajapati

    (@maheshprajapati35)

    Thank you so much for your help

    Thread Starter Madhuben Prajapati

    (@maheshprajapati35)

    $message .= sprintf(__("Your order's tracking information was updated with %s and your tracking code is: %s", 'woo-advanced-shipment-tracking'), $tracking_item['tracking_provider'], $tracking_item['tracking_number'] );

    Dear Sir,

    Your code is working fine,
    Now one last help required, that in above message,
    we also want to send tracking link,
    For the same we can use below code?

    $message .= sprintf(__("Your order's tracking information was updated with %s and your tracking code is: %s" and your tracking link is %s, 'woo-advanced-shipment-tracking'), $tracking_item['tracking_provider'], $tracking_item['tracking_number'], $tracking_item['formatted_tracking_link'] );

    Plugin Author Zorem

    (@zorem)

    Hi, Yes you can use the new code with tracking link.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘I want to send the message while status is updated tracking’ is closed to new replies.