<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>WordPress DK Forum Topic: Woocommerce: Skift shipping_adress med billing_adress når man vil printe invoice</title>
		<link>http://wp-danmark.dk/forum/topic/woocommerce-skift-shipping_adress-med-billing_adress-nar-man-vil-printe-invoice</link>
		<description>WordPress DK Forum Topic: Woocommerce: Skift shipping_adress med billing_adress når man vil printe invoice</description>
		<language>da-DK</language>
		<pubDate>Sat, 29 Aug 2026 18:02:35 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Søg]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://wp-danmark.dk/forum/search.php</link>
		</textInput>
		<atom:link href="http://wp-danmark.dk/forum/rss/topic/woocommerce-skift-shipping_adress-med-billing_adress-nar-man-vil-printe-invoice" rel="self" type="application/rss+xml" />

		<item>
			<title>jetsetboys om "Woocommerce: Skift shipping_adress med billing_adress når man vil printe invoice"</title>
			<link>http://wp-danmark.dk/forum/topic/woocommerce-skift-shipping_adress-med-billing_adress-nar-man-vil-printe-invoice#post-38921</link>
			<pubDate>lør, 14 jul 2012 15:48:52 +0000</pubDate>
			<dc:creator>jetsetboys</dc:creator>
			<guid isPermaLink="false">38921@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Hej med jer,&#60;/p&#62;
&#60;p&#62;Jeg har netop kastet mig over Woocommerce plugin'et på min egen side (ikke Woothemes). &#60;/p&#62;
&#60;p&#62;Jeg har installeret &#34;tillægs&#34; plugin'et fra Woothemes &#34;Woocommerce Print invoices og delivery notes&#34; som gør det muligt at printe mine faktura'er løbende. Smart!&#60;/p&#62;
&#60;p&#62;Men ..&#60;/p&#62;
&#60;p&#62;Når jeg danner en fatura, så hiver den kundens leveringadresse istedet for den korrekte betalingsadresse etc. Jeg sælger elektroniske varer så mine kunder har ingen forsendelsesadresse.&#60;/p&#62;
&#60;p&#62;Er der nogen der ved hvordan jeg ændre dette, så jeg kan få adresse på mine fakturaer?&#60;/p&#62;
&#60;p&#62;Jeg har fundet frem til filen: woocommerce-delivery-notes-print.php som ligger i 'print tillægsmodulet til woocommerce'.&#60;/p&#62;
&#60;p&#62;Her har jeg ændret alle de steder hvor der står fx. shipping_name til billing_name, men det fungerer ikke. Jeg får følgende fejlmeldning på fakturaen under Adresse:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;Fatal error: Call to undefined function wcdn_shipping_company() in /home/www/styrketraeningsprogram.dk/wp-content/plugins/woocommerce-delivery-notes/templates/delivery-notes/print.php on line 31&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Er der nogen der har roddet med dette plugin?&#60;/p&#62;
&#60;p&#62;Her er hele filen, woocommerce-delivery-notes-print.php:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;?php&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Load Wordpress to use its functions&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 */&#60;br /&#62;
if ( !defined( 'ABSPATH' ) ) {&#60;br /&#62;
	require_once '../../../wp-load.php';&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Check the current user capabilities&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 */&#60;br /&#62;
if (!current_user_can('manage_woocommerce_orders') &#124;&#124; empty($_GET['order']) &#124;&#124; empty($_GET['name'])) {&#60;br /&#62;
	wp_die( __( 'You do not have sufficient permissions to access this page.', 'woocommerce-delivery-notes' ) );&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Load all available data for the Delivery Notes printing page.&#60;br /&#62;
 */&#60;br /&#62;
$id = $_GET['order'];&#60;br /&#62;
$name = $_GET['name'];&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Load the order&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 */&#60;br /&#62;
$wcdn-&#38;gt;print-&#38;gt;load( $id );&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return Delivery Note template url&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 */&#60;br /&#62;
if ( !function_exists( 'wcdn_template_url' ) ) {&#60;br /&#62;
	function wcdn_template_url() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return $wcdn-&#38;gt;print-&#38;gt;template_url;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return Type of template&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 */&#60;br /&#62;
if ( !function_exists( 'wcdn_template_name' ) ) {&#60;br /&#62;
	function wcdn_template_name() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return $wcdn-&#38;gt;print-&#38;gt;template_name;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return the template title depending on type&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 */&#60;br /&#62;
if ( !function_exists( 'wcdn_template_title' ) ) {&#60;br /&#62;
	function wcdn_template_title() {&#60;br /&#62;
		if( wcdn_template_name() == 'invoice' ) {&#60;br /&#62;
			return __( 'Invoice', 'woocommerce-delivery-notes' );&#60;br /&#62;
		} else {&#60;br /&#62;
			return __( 'Delivery Note', 'woocommerce-delivery-notes' );&#60;br /&#62;
		}&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return javascript&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 */&#60;br /&#62;
if ( !function_exists( 'wcdn_template_javascript' ) ) {&#60;br /&#62;
	function wcdn_template_javascript() {&#60;br /&#62;
		global $wcdn;&#60;/p&#62;
&#60;p&#62;		$js = '&#38;lt;script type=&#34;text/javascript&#34;&#38;gt;&#60;br /&#62;
			function openPrintWindow() {&#60;br /&#62;
		    	window.print();&#60;br /&#62;
		    	return false;&#60;br /&#62;
			}';&#60;/p&#62;
&#60;p&#62;		if( checked( $wcdn-&#38;gt;print-&#38;gt;get_setting( 'open_print_window' ), 'yes', false ) ) {&#60;br /&#62;
			$js .= 'window.onload = openPrintWindow;';&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		$js .= '&#38;lt;/script&#38;gt;';&#60;/p&#62;
&#60;p&#62;		return $js;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return print button&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 */&#60;br /&#62;
if ( !function_exists( 'wcdn_template_print_button' ) ) {&#60;br /&#62;
	function wcdn_template_print_button() {&#60;br /&#62;
		?&#38;gt;&#60;br /&#62;
		&#60;a href=&#34;#print&#34;&#62;&#38;lt;?php _e( 'Print Page', 'woocommerce-delivery-notes' ); ?&#38;gt;&#60;/a&#62;&#60;br /&#62;
		&#38;lt;?php&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return logo id&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 */&#60;br /&#62;
if ( !function_exists( 'wcdn_company_logo_id' ) ) {&#60;br /&#62;
	function wcdn_company_logo_id() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return $wcdn-&#38;gt;print-&#38;gt;get_setting( 'company_logo_image_id' );&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return logo html&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 */&#60;br /&#62;
if ( !function_exists( 'wcdn_company_logo' ) ) {&#60;br /&#62;
	function wcdn_company_logo() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		$attachment_id = $wcdn-&#38;gt;print-&#38;gt;get_setting( 'company_logo_image_id' );&#60;br /&#62;
		if( !empty( $attachment_id ) ) {&#60;br /&#62;
			$attachment_src = wp_get_attachment_image_src( $attachment_id, array( 300, 300 ), false );&#60;br /&#62;
			return '&#38;lt;img src=&#34;' . $attachment_src[0] . '&#34; width=&#34;' . $attachment_src[1] . '&#34; height=&#34;' . $attachment_src[2] . '&#34; /&#38;gt;';&#60;br /&#62;
		}&#60;br /&#62;
		return;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return default title name of Delivery Note&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 */&#60;br /&#62;
if ( !function_exists( 'wcdn_company_name' ) ) {&#60;br /&#62;
	function wcdn_company_name() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		$name = trim( $wcdn-&#38;gt;print-&#38;gt;get_setting( 'custom_company_name' ) );&#60;br /&#62;
		if( !empty( $name ) ) {&#60;br /&#62;
			return wpautop( wptexturize( $name ) );&#60;br /&#62;
		} else {&#60;br /&#62;
			return get_bloginfo( 'name' );&#60;br /&#62;
		}&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return shop/company info if provided&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string company address&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_company_info' ) ) {&#60;br /&#62;
	function wcdn_company_info() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return wpautop( wptexturize( $wcdn-&#38;gt;print-&#38;gt;get_setting( 'company_address' ) ) );&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return shipping name&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string shipping name&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_shipping_name' ) ) {&#60;br /&#62;
	function wcdn_shipping_name() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;shipping_first_name . ' ' . $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;shipping_last_name;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return shipping company&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string shipping company&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_shipping_company' ) ) {&#60;br /&#62;
	function wcdn_shipping_company() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;shipping_company;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return shipping address 1&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string shipping address&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_shipping_address_1' ) ) {&#60;br /&#62;
	function wcdn_shipping_address_1() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;shipping_address_1;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return shipping address 2&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string shipping address 2&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_shipping_address_2' ) ) {&#60;br /&#62;
	function wcdn_shipping_address_2() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;shipping_address_2;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return shipping city&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string shipping city&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_shipping_city' ) ) {&#60;br /&#62;
	function wcdn_shipping_city() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;shipping_city;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return shipping state&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string shipping state&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_shipping_state' ) ) {&#60;br /&#62;
	function wcdn_shipping_state() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;shipping_state;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return shipping postcode&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string shipping postcode&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_shipping_postcode' ) ) {&#60;br /&#62;
	function wcdn_shipping_postcode() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;shipping_postcode;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return shipping country&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string shipping country&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_shipping_country' ) ) {&#60;br /&#62;
	function wcdn_shipping_country() {&#60;br /&#62;
		global $wcdn, $woocommerce;&#60;br /&#62;
		$country = $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;shipping_country;&#60;br /&#62;
		$full_country = ( isset( $woocommerce-&#38;gt;countries-&#38;gt;countries[$country] ) ) ? $woocommerce-&#38;gt;countries-&#38;gt;countries[$country] : $country;&#60;br /&#62;
		return $full_country;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return shipping notes&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string shipping notes&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_shipping_notes' ) ) {&#60;br /&#62;
	function wcdn_shipping_notes() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return wpautop( wptexturize( $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;customer_note ) );&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return billing phone&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string billing phone&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_billing_phone' ) ) {&#60;br /&#62;
	function wcdn_billing_phone() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;billing_phone;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return order id&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string order id&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_order_number' ) ) {&#60;br /&#62;
	function wcdn_order_number() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		$before = trim( $wcdn-&#38;gt;print-&#38;gt;get_setting( 'before_order_number' ) );&#60;br /&#62;
		$after = trim( $wcdn-&#38;gt;print-&#38;gt;get_setting( 'after_order_number' ) );&#60;br /&#62;
		$offset = trim( $wcdn-&#38;gt;print-&#38;gt;get_setting( 'order_number_offset' ) );&#60;/p&#62;
&#60;p&#62;		// get custom order number as provided by the plugin&#60;br /&#62;
		// &#60;a href=&#34;http://wordpress.org/extend/plugins/woocommerce-sequential-order-numbers/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/woocommerce-sequential-order-numbers/&#60;/a&#62;&#60;br /&#62;
		// if custom order number is zero, fall back to ID&#60;br /&#62;
		$order_id = $wcdn-&#38;gt;print-&#38;gt;order_id;&#60;/p&#62;
&#60;p&#62;		if ( !empty( $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;order_custom_fields['_order_number'] ) ) {&#60;br /&#62;
			$order_id = $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;order_custom_fields['_order_number'][0];&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		$number = $before . ( intval( $offset ) + intval( $order_id ) ) . $after;&#60;br /&#62;
		return $number;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return the order date&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string order date&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_order_date' ) ) {&#60;br /&#62;
	function wcdn_order_date() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		$order = $wcdn-&#38;gt;print-&#38;gt;get_order();&#60;br /&#62;
		return date_i18n( get_option( 'date_format' ), strtotime( $order-&#38;gt;order_date ) );&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return the order items&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return strings order items&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_get_order_items' ) ) {&#60;br /&#62;
	function wcdn_get_order_items() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return $wcdn-&#38;gt;print-&#38;gt;get_order_items();&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return the formatted price&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string items price&#60;br /&#62;
 */&#60;br /&#62;
if ( !function_exists( 'wcdn_format_price' ) ) {&#60;br /&#62;
	function wcdn_format_price( $price, $tax_rate = 0 ) {&#60;br /&#62;
		$tax_included = ( $tax_rate &#38;gt; 0 ) ? 0 : 1;&#60;br /&#62;
		return woocommerce_price( ( ( $price / 100 ) * $tax_rate ) + $price, array( 'ex_tax_label' =&#38;gt; $tax_included ) );&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return the order subtotal&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string order subtotal&#60;br /&#62;
 */&#60;br /&#62;
if ( !function_exists( 'wcdn_order_subtotal' ) ) {&#60;br /&#62;
	function wcdn_order_subtotal() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;get_subtotal_to_display();&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return the order tax&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string order tax&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_order_tax' ) ) {&#60;br /&#62;
	function wcdn_order_tax() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return woocommerce_price( $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;get_total_tax() );&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return the order shipping cost&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string order shipping cost&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_order_shipping' ) ) {&#60;br /&#62;
	function wcdn_order_shipping() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;get_shipping_to_display();&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return the order discount&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string order discount&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_order_discount' ) ) {&#60;br /&#62;
	function wcdn_order_discount() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return woocommerce_price( $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;get_order_discount() );&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return the order grand total&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string grand total&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_order_total' ) ) {&#60;br /&#62;
	function wcdn_order_total() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return woocommerce_price( $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;get_order_total() );&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return the order totals listing&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return array order totals list&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_order_totals_list' ) ) {&#60;br /&#62;
	function wcdn_order_totals_list() {&#60;br /&#62;
		global $wcdn;		&#60;/p&#62;
&#60;p&#62;		// remove the semicolon&#60;br /&#62;
		$input = $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;get_order_item_totals();&#60;br /&#62;
		$keys = array_keys($input);&#60;br /&#62;
		$values = array_values($input);&#60;br /&#62;
		$result = preg_replace('/:$/', '', $keys);&#60;br /&#62;
		$output = array_combine($result, $values);&#60;br /&#62;
		return $output;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return if the order has a shipping&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return boolean&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_has_shipping' ) ) {&#60;br /&#62;
	function wcdn_has_shipping() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return ( $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;order_shipping &#38;gt; 0 ) ? true : false;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return if the order has a tax&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return boolean&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_has_tax' ) ) {&#60;br /&#62;
	function wcdn_has_tax() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return ( $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;get_total_tax() &#38;gt; 0 ) ? true : false;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return if the order has a discount&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return boolean&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_has_discount' ) ) {&#60;br /&#62;
	function wcdn_has_discount() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return ( $wcdn-&#38;gt;print-&#38;gt;get_order()-&#38;gt;order_discount &#38;gt; 0 ) ? true : false;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return personal notes, season greetings etc.&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string personal notes&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_personal_notes' ) ) {&#60;br /&#62;
	function wcdn_personal_notes() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return wpautop( wptexturize( $wcdn-&#38;gt;print-&#38;gt;get_setting( 'personal_notes' ) ) );&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return policy for returns&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string policy&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_policies_conditions' ) ) {&#60;br /&#62;
	function wcdn_policies_conditions() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return wpautop( wptexturize( $wcdn-&#38;gt;print-&#38;gt;get_setting( 'policies_conditions' ) ) );&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Return shop/company footer imprint, copyright etc.&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string footer imprint&#60;br /&#62;
 */&#60;br /&#62;
if ( ! function_exists( 'wcdn_footer_imprint' ) ) {&#60;br /&#62;
	function wcdn_footer_imprint() {&#60;br /&#62;
		global $wcdn;&#60;br /&#62;
		return wpautop( wptexturize( $wcdn-&#38;gt;print-&#38;gt;get_setting( 'footer_imprint' ) ) );&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
 * Show the template&#60;br /&#62;
 *&#60;br /&#62;
 * @since 1.0&#60;br /&#62;
 *&#60;br /&#62;
 * @global $wcdn-&#38;gt;print&#60;br /&#62;
 * @return string footer imprint&#60;br /&#62;
 */&#60;br /&#62;
echo $wcdn-&#38;gt;print-&#38;gt;get_print_page( $name );&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
