anyone know of a way to create a button or link in a module that would link to UPS to track a shipment by a tracking number in a custom field?
anyone know of a way to create a button or link in a module that would link to UPS to track a shipment by a tracking number in a custom field?
Hi
You can add some code in view.detail.php to achieve this. Or you can create a custom link field for doing this.
Thanks crmsiva!, this is how I did it
Create a Link field in studio (leave default value blank and just enter a field name) and place it where you want, then go to your detailviewdefs.php and add the customcode below:
PHP Code:array (
'name' => 'ups1_c',
'customCode' => '<a href="http://wwwapps.ups.com/WebTracking/processRequest?HTMLVersion=5.0&Requester=NES&AgreeToTermsAndConditions=yes&loc=en_US&tracknum=
{$fields.your_field_name_c.value}" target="_blank" class="lbOn">Click Here to Track Shipment</a>',
'label' => 'LBL_UPS1',
),
Last edited by david067; 2009-06-23 at 06:07 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks