New Carrier added - but link to carrier website not working

Hi,



I have followed this tutorial to add a new carrier to my site



[url=“CS-Cart Documentation — CS-Cart 4.15.x documentation”]CS-Cart Documentation — CS-Cart 4.15.x documentation



This all works ok up to a point. I can use the new carrier to provide a tracking number .



But when I try to click on the tracking link as if a customer it does not seem to pass the tracking number into the link provided.



I get this link



http://sms.postoffice.co.za/tracking/parcel.aspx?id=$tracking_number&Submit=Submit




This is the code I have used in

carriers.tpl[color=#555555][font=Arial, Helvetica, sans-serif][size=3] file located in the [/size][/font][/color]skins/[CUSTOMER_ACTIVE_SKIN]/customer/common_templates


```php

{* $Id$ *}

{if $carrier == “USP”}

{assign var=“url” value=“http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?strOrigTrackNum=`$tracking_number`”}

{assign var=“carrier_name” value=$lang.usps}

{elseif $carrier == “UPS”}

{assign var=“url” value=“Tracking | UPS - United States”}

{assign var=“carrier_name” value=$lang.ups}

{elseif $carrier == “FDX”}

{assign var=“url” value=“FedEx | System Down”}

{assign var=“carrier_name” value=$lang.fedex}

{elseif $carrier == “AUP”}




{assign var="url" value="javascript: document.tracking_form`$shipment_id`.submit();"}
{assign var="carrier_name" value=$lang.australia_post}
{elseif $carrier == "DHL" || $shipping.carrier == "ARB"}



{assign var="url" value="javascript: document.tracking_form`$shipment_id`.submit();"}
{assign var="carrier_name" value=$lang.dhl}
{elseif $carrier == "CHP"}
{assign var="url" value="http://www.post.ch/swisspost-tracking?formattedParcelCodes=`$tracking_number`"}
{assign var="carrier_name" value=$lang.chp}
{elseif $carrier == "SAPO"}



{assign var="url" value="javascript: document.tracking_form`$shipping_id`.submit();"}
{/if}
{capture name="carrier_name"}
{$carrier_name}
{/capture}
{capture name="carrier_url"}
{$url}
{/capture}
```

Where have I gone wrong?

Many thanks
Janine

Apparently whatever upper-level code is not setting the tracking_number for your carrier.

I would look in the shipments controller to identify what needs to be changed to complete your support.

[quote]{if $shipment.carrier == “SAPO”}

{assign var=“url” value=“http://www.post.ch/swisspost-tracking?formattedParcelCodes=`$tracking_number`[/url][url=“http://www.customco.com/scripts/cgiip.exe/facts.htm”"]”[color=#FF0000];;}[/color][/quote]