Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I’m using this module:
    https://wpovernight.com/downloads/woocommerce-print-address-labels/
    and i want to print the tracking info.

    The author cannot support their other modules here. They are not allowed to, no one is.

    For pro or commercial product support please contact the author directly on their site. This includes any pre-sales topics as well.

    As the author is aware, commercial products are not supported in these forums. I am sure they will have no problem supporting you there.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    OK! After being contacted by the author via Slack on the #forums channel, the author explained to me that that other is not their plugin. You are asking a perfectly legitimate support topic for this plugin.

    I’ve re-opened the topic and I expect the author may reply. ??

    Plugin Author Zorem

    (@zorem)

    Thank you @jdembowski

    @eran1820 as for your Q:
    You’ll need to contact the premium plugin developers and ask them to add compatibility with our plugin, attached the code snippet they can use in their plugin to make it compatible and to get tracking info to the labels when printing:

    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'] );		
    		}
    	}
    }

    Thanks and good luck

    • This reply was modified 5 years, 6 months ago by Jan Dembowski. Reason: Fixed formatting
    Thread Starter eran1820

    (@eran1820)

    Thank you
    You helped me alot

    Thread Starter eran1820

    (@eran1820)

    How can i get the tracking url also?

    Plugin Author Zorem

    (@zorem)

    Hi, the shipping providers tracking page URLS are very long and contain variables with many special characters, so I think that you’ll not want to print the URL, I think that the name is enough for printing.

    In any case, we do not store the shipping provider tracking URL in the order meta so it’s more complected to pull these tracking URLs in the snippet doing that and will require custom development.

    Thanks.

    Thread Starter eran1820

    (@eran1820)

    I want to generate QR code with the link in the label.

    Plugin Author Zorem

    (@zorem)

    Hi Eran, Ok, I understand, but it’s out of scoop of this support, it requires custom development…

    Thread Starter eran1820

    (@eran1820)

    Thank you for all your help ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Get tracking info’ is closed to new replies.