@@ 354-362 (lines=9) @@ | ||
351 | $replace['$firstname'] = HTML::outputProtected($address['name']); |
|
352 | } |
|
353 | ||
354 | if (isset($address['country_id']) && tep_not_null($address['country_id'])) { |
|
355 | $replace['$country'] = tep_get_country_name($address['country_id']); |
|
356 | ||
357 | if (isset($address['zone_id']) && tep_not_null($address['zone_id'])) { |
|
358 | $replace['$state'] = tep_get_zone_code($address['country_id'], $address['zone_id'], $replace['$state']); |
|
359 | } |
|
360 | } elseif (isset($address['country']) && tep_not_null($address['country'])) { |
|
361 | $replace['$country'] = HTML::outputProtected($address['country']); |
|
362 | } |
|
363 | ||
364 | $replace['$zip'] = $replace['$postcode']; |
|
365 |
@@ 450-458 (lines=9) @@ | ||
447 | $replace['$firstname'] = HTML::outputProtected($address['name']); |
|
448 | } |
|
449 | ||
450 | if (isset($address['country_id']) && tep_not_null($address['country_id'])) { |
|
451 | $replace['$country'] = tep_get_country_name($address['country_id']); |
|
452 | ||
453 | if (isset($address['zone_id']) && tep_not_null($address['zone_id'])) { |
|
454 | $replace['$state'] = tep_get_zone_code($address['country_id'], $address['zone_id'], $replace['$state']); |
|
455 | } |
|
456 | } elseif (isset($address['country']) && tep_not_null($address['country'])) { |
|
457 | $replace['$country'] = HTML::outputProtected($address['country']['title']); |
|
458 | } |
|
459 | ||
460 | $replace['$zip'] = $replace['$postcode']; |
|
461 |