Hello,
Thank you for your reply!
Sorry, yes I am able to place the tracking code within the "Additional Information" as you suggested.
But I am having trouble figuring out how to code the PHP so that the tracking code is a hyperlink?
Currently I have this just to display the tracking code:
<?php echo 'Tracking number:'.$this->element->shipping_tracking; ?>
I am pretty sure I am screwing up the PHP code to add a hyperlink becuase everything I try I get server errors. I am trying to add the following ups tracking number url (
wwwapps.ups.com/WebTracking/track?track=yes&trackNums=#######
). At the end of the url right after the = where you see "#######" I am trying to get the tracking code to dynamically be added to the url. And then also make the tracking numbers the clickable text.
Here is my attempt at coding it but obviously it is not working becuase I really do not know how to fully code PHP.
Tracking Number: <a href="http://wwwapps.ups.com/WebTracking/track?track=yes&trackNums='<?php echo .$this->element->shipping_tracking; ?>'"><?php echo .$this->element->shipping_tracking; ?></a>
Could you please help me with the above code?
Also, I did try to add code to the email template, but when I go into the order section and choose to change the status from complete to shipped and the popup comes up with the email template, I can see where my code is but it does not seem to be picking up the data?
Here is my code for the email template ( shipping_tracking ) is the name of the custom field I added to the "Order" "Show" view btw.
<p style="border-bottom:1px solid #ddd;padding-bottom:10px;">
You can track your orders shipping status here: <a href="http://wwwapps.ups.com/WebTracking/track?track=yes&trackNums={VAR:SHIPPING_TRACKING}" target="_blank">{TXT:SHIPPING_TRACKING}</a>
</p>
Here is a screen shot of what I see in the html email popup:
Any help with this code as well would be appreciated!