diff --git a/pmpro-shipping.php b/pmpro-shipping.php
index e36740f..2a97c96 100755
--- a/pmpro-shipping.php
+++ b/pmpro-shipping.php
@@ -12,7 +12,7 @@
if(!defined('PMPRO_SHIPPING_SHOW_REQUIRED'))
define( 'PMPRO_SHIPPING_SHOW_REQUIRED', true ); //if false required fields won't have asterisks and non-required fields will say (optional)
-define( 'PMPRO_SHIPPING_VERSION', '.7' );
+define( 'PMPRO_SHIPPING_VERSION', '.8' );
/**
* Load plugin textdomain.
@@ -463,17 +463,11 @@ function pmproship_pmpro_confirmation_message( $confirmation_message, $pmpro_inv
$szipcode = get_user_meta( $current_user->ID, "pmpro_szipcode", true );
$sphone = get_user_meta( $current_user->ID, "pmpro_sphone", true );
$scountry = get_user_meta( $current_user->ID, "pmpro_scountry", true );
-
- if ( ! empty( $scity ) && ! empty( $sstate ) ) {
- $shipping_address = $sfirstname . " " . $slastname . "
" . $saddress1 . "
";
- if ( $saddress2 ) {
- $shipping_address .= $saddress2 . "
";
- }
- $shipping_address .= $scity . ", " . $sstate . " " . $szipcode;
- $shipping_address .= "
" . $scountry;
+
+ $shipping_address = pmpro_formatAddress( trim( $sfirstname . ' ' . $slastname ), $saddress1, $saddress2, $scity, $sstate, $szipcode, $scountry, $sphone );
- $confirmation_message .= '
' . $shipping_address . '
'; - } + $confirmation_message .= '' . $shipping_address . '
'; + return $confirmation_message; } @@ -509,15 +503,8 @@ function pmproship_pmpro_email_body( $body, $pmpro_email ) { $sphone = get_user_meta( $user_id, "pmpro_sphone", true ); $scountry = get_user_meta( $user_id, "pmpro_scountry", true ); - if ( ! empty( $scity ) && ! empty( $sstate ) ) { - $shipping_address = $sfirstname . " " . $slastname . "