<commit_before><?php use_helper('I18N', 'Number'); $addresses = $rt_shop_order->getAddressInfoArray(); $shipping = (count($addresses) == 2) ? 1 : 0; $promotion = $rt_shop_order->getPromotionData(); $voucher = $rt_shop_order->getVoucherData(); ?>
------------------------------------------------------------
<?php echo strtoupper(__('Shop Details')) ?><?php echo "\r\n" ?>
------------------------------------------------------------
<?php echo sfConfig::get('app_rt_invoice_company_address_html',sfConfig::get('app_rt_email_signature_html','')) ?>

------------------------------------------------------------
<?php echo strtoupper(__('Order Details')) ?><?php echo "\r\n" ?>
------------------------------------------------------------
<?php echo __('Payment transaction ID') ?>: <?php echo $rt_shop_order->getReference() ?><?php echo "\r\n" ?>
<?php echo __('Order reference') ?>: <?php echo $rt_shop_order->getPaymentTransactionId() ?><?php echo "\r\n" ?>
<?php echo __('Payment charge') ?>: <?php echo format_currency($rt_shop_order->getPaymentCharge(), 'AUD') ?><?php echo "\r\n" ?>
<?php echo __('Status') ?>: <?php echo strtoupper($rt_shop_order->getStatus()) ?><?php echo "\r\n" ?>
<?php if($rt_shop_order->getVoucherCode()): ?>
<?php echo __('Voucher code') ?>: <?php echo $rt_shop_order->getVoucherCode() ?><?php echo "\r\n" ?>
<?php endif; ?>
<?php echo __('Date') ?>: <?php echo date("d F Y", strtotime($rt_shop_order->getCreatedAt())) ?><?php echo "\r\n" ?>
<?php echo __('Email') ?>: <?php echo $rt_shop_order->getEmailAddress() ?><?php echo "\r\n" ?>

------------------------------------------------------------
<?php echo strtoupper(__('Address Details')) ?><?php echo "\r\n" ?>
------------------------------------------------------------
<?php if(count($addresses) > 0): ?>
** <?php echo strtoupper(__('Billing'))." **\r\n" ?>
<?php echo $addresses[0]['first_name'] . " " . $addresses[0]['last_name'] ?><?php echo "\r\n" ?>
<?php echo $addresses[0]['address_1'] ?><?php echo "\r\n" ?>
<?php echo ($addresses[0]['address_2'] != '') ? $addresses[0]['address_2'].'<?php echo "\r\n" ?>' : '' ?>
<?php echo $addresses[0]['town'] . " " . $addresses[0]['postcode'] . " " . $addresses[0]['state'] ?><?php echo "\r\n" ?>
<?php echo format_country($addresses[0]['country']) ?><?php echo "\r\n" ?>
<?php if($addresses[0]['phone'] != ''): ?>
<?php echo __('Phone') ?>: <?php echo $addresses[0]['phone'] ?><?php echo "\r\n" ?>
<?php endif; ?>
<?php if($addresses[0]['instructions'] != ''): ?>
<?php echo __('Instructions') ?>: <?php echo $addresses[0]['instructions'] ?><?php echo "\r\n" ?><commit_msg>Corrected config reference towards plain versions.<commit_after><?php use_helper('I18N', 'Number'); $addresses = $rt_shop_order->getAddressInfoArray(); $shipping = (count($addresses) == 2) ? 1 : 0; $promotion = $rt_shop_order->getPromotionData(); $voucher = $rt_shop_order->getVoucherData(); ?>
------------------------------------------------------------
<?php echo strtoupper(__('Shop Details')) ?><?php echo "\r\n" ?>
------------------------------------------------------------
<?php echo sfConfig::get('app_rt_invoice_company_address_plain',sfConfig::get('app_rt_email_signature_plain','')) ?>

------------------------------------------------------------
<?php echo strtoupper(__('Order Details')) ?><?php echo "\r\n" ?>
------------------------------------------------------------
<?php echo __('Payment transaction ID') ?>: <?php echo $rt_shop_order->getReference() ?><?php echo "\r\n" ?>
<?php echo __('Order reference') ?>: <?php echo $rt_shop_order->getPaymentTransactionId() ?><?php echo "\r\n" ?>
<?php echo __('Payment charge') ?>: <?php echo format_currency($rt_shop_order->getPaymentCharge(), 'AUD') ?><?php echo "\r\n" ?>
<?php echo __('Status') ?>: <?php echo strtoupper($rt_shop_order->getStatus()) ?><?php echo "\r\n" ?>
<?php if($rt_shop_order->getVoucherCode()): ?>
<?php echo __('Voucher code') ?>: <?php echo $rt_shop_order->getVoucherCode() ?><?php echo "\r\n" ?>
<?php endif; ?>
<?php echo __('Date') ?>: <?php echo date("d F Y", strtotime($rt_shop_order->getCreatedAt())) ?><?php echo "\r\n" ?>
<?php echo __('Email') ?>: <?php echo $rt_shop_order->getEmailAddress() ?><?php echo "\r\n" ?>

------------------------------------------------------------
<?php echo strtoupper(__('Address Details')) ?><?php echo "\r\n" ?>
------------------------------------------------------------
<?php if(count($addresses) > 0): ?>
** <?php echo strtoupper(__('Billing'))." **\r\n" ?>
<?php echo $addresses[0]['first_name'] . " " . $addresses[0]['last_name'] ?><?php echo "\r\n" ?>
<?php echo $addresses[0]['address_1'] ?><?php echo "\r\n" ?>
<?php echo ($addresses[0]['address_2'] != '') ? $addresses[0]['address_2'].'<?php echo "\r\n" ?>' : '' ?>
<?php echo $addresses[0]['town'] . " " . $addresses[0]['postcode'] . " " . $addresses[0]['state'] ?><?php echo "\r\n" ?>
<?php echo format_country($addresses[0]['country']) ?><?php echo "\r\n" ?>
<?php if($addresses[0]['phone'] != ''): ?>
<?php echo __('Phone') ?>: <?php echo $addresses[0]['phone'] ?><?php echo "\r\n" ?>
<?php endif; ?>
<?php if($addresses[0]['instructions'] != ''): ?>
<?php echo __('Instructions') ?>: <?php echo $addresses[0]['instructions'] ?><?php echo "\r\n" ?>
{'fraction_non_alphanumeric': 0.3712654614652712, 'fraction_numerical': 0.008372978116079923, 'mean_word_length': 2.9253174010455565, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 131, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4148906', 'n_tokens_mistral': 1658, 'n_tokens_neox': 1674, 'n_words': 361}