"my code"
$cp_company_country = null;
$country = (string)get_the_author_meta( 'cp_company_country', $user->ID );
$country = trim( $country );
if ($country == 'Germany')
{$tax_rate = 25;} ;
<h2 class="dotted"><?php echo get_the_author_meta( 'cp_company_country', $user->ID ) ?></h2>
$cp_country = null;
$items = $order->get_items();
foreach ( $items as $item ) {
$country= (string) get_post_meta( $item[ 'post_id' ], 'cp_country', true );
$cp_country = ( strlen( $country ) > 0 ) ? $country : $cp_country;
}
if ($country == 'Germany')
{$tax_rate = 25;} ;
There are currently 1 users browsing this thread. (0 members and 1 guests)