New Carrier added - but link to carrier website not working


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$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


{* $Id$ *}

{if $carrier == “USP”}

{assign var=“url” value=“`$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=$}

{elseif $carrier == “FDX”}

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

{assign var=“carrier_name” value=$}

{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=$}
{elseif $carrier == "CHP"}
{assign var="url" value="`$tracking_number`"}
{assign var="carrier_name" value=$lang.chp}
{elseif $carrier == "SAPO"}

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

Where have I gone wrong?

Many thanks

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=“`$tracking_number`[/url][url=“”"]”[color=#FF0000];;}[/color][/quote]