<?php /* Smarty version Smarty-3.1.15, created on 2015-05-18 00:08:38
         compiled from "/home/hushdogcafe/public_html/cube/skins/foundation/templates/content.receipt.php" */ ?>
<?php /*%%SmartyHeaderCode:17515830595558bd06d3af20-15878437%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fdf9a89d2c0253821e5e5015336c36c7a80021a6' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/skins/foundation/templates/content.receipt.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '17515830595558bd06d3af20-15878437',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'LANG' => 0,
    'SUM' => 0,
    'DELIVERY' => 0,
    'ITEMS' => 0,
    'item' => 0,
    'option' => 0,
    'TAXES' => 0,
    'tax' => 0,
    'DISCOUNT' => 0,
    'STORE_URL' => 0,
    'AFFILIATES' => 0,
    'affiliate' => 0,
    'ANALYTICS' => 0,
    'GA_SUM' => 0,
    'GA_ITEMS' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_5558bd0709dab4_51575308',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5558bd0709dab4_51575308')) {function content_5558bd0709dab4_51575308($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_replace')) include '/home/hushdogcafe/public_html/cube/includes/lib/smarty/plugins/modifier.replace.php';
?>
<h2><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['order_number'];?>
: #<?php echo $_smarty_tpl->tpl_vars['SUM']->value['cart_order_id'];?>
</h2>
<div class="order_status marg-top"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_order_status'];?>
: <span class="order_status_<?php echo $_smarty_tpl->tpl_vars['SUM']->value['status'];?>
"><?php echo $_smarty_tpl->tpl_vars['SUM']->value['order_status'];?>
</span></div>
<div><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['order_date'];?>
:</strong> <?php echo $_smarty_tpl->tpl_vars['SUM']->value['order_date_formatted'];?>
</div>
<hr>
<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['customer_info'];?>
</h3>
<div class="row">
   <div class="small-6 columns">
      <strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['billing_address'];?>
</strong><br>
      <?php echo $_smarty_tpl->tpl_vars['SUM']->value['title'];?>
 <?php echo $_smarty_tpl->tpl_vars['SUM']->value['first_name'];?>
 <?php echo $_smarty_tpl->tpl_vars['SUM']->value['last_name'];?>
<br>
      <?php if ($_smarty_tpl->tpl_vars['SUM']->value['company_name']) {?><?php echo $_smarty_tpl->tpl_vars['SUM']->value['company_name'];?>
<br><?php }?>
      <?php echo $_smarty_tpl->tpl_vars['SUM']->value['line1'];?>
<br>
      <?php if ($_smarty_tpl->tpl_vars['SUM']->value['line2']) {?><?php echo $_smarty_tpl->tpl_vars['SUM']->value['line2'];?>
<br><?php }?>
      <?php echo $_smarty_tpl->tpl_vars['SUM']->value['town'];?>
<br>
      <?php echo $_smarty_tpl->tpl_vars['SUM']->value['state'];?>
, <?php echo $_smarty_tpl->tpl_vars['SUM']->value['postcode'];?>
<br>
      <?php echo $_smarty_tpl->tpl_vars['SUM']->value['country'];?>

   </div>
   <div class="small-6 columns">
      <strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['delivery_address'];?>
</strong><br>
      <?php echo $_smarty_tpl->tpl_vars['SUM']->value['title_d'];?>
 <?php echo $_smarty_tpl->tpl_vars['SUM']->value['first_name_d'];?>
 <?php echo $_smarty_tpl->tpl_vars['SUM']->value['last_name_d'];?>
<br>
      <?php if ($_smarty_tpl->tpl_vars['SUM']->value['company_name_d']) {?><?php echo $_smarty_tpl->tpl_vars['SUM']->value['company_name_d'];?>
<br><?php }?>
      <?php echo $_smarty_tpl->tpl_vars['SUM']->value['line1_d'];?>
<br>
      <?php if ($_smarty_tpl->tpl_vars['SUM']->value['line2_d']) {?><?php echo $_smarty_tpl->tpl_vars['SUM']->value['line2_d'];?>
<br><?php }?>
      <?php echo $_smarty_tpl->tpl_vars['SUM']->value['town_d'];?>
<br>
      <?php echo $_smarty_tpl->tpl_vars['SUM']->value['state_d'];?>
, <?php echo $_smarty_tpl->tpl_vars['SUM']->value['postcode_d'];?>
<br>
      <?php echo $_smarty_tpl->tpl_vars['SUM']->value['country_d'];?>

   </div>
</div>
<?php if ($_smarty_tpl->tpl_vars['DELIVERY']->value) {?>
<hr>
<h4><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['delivery'];?>
</h4>
<?php if (!empty($_smarty_tpl->tpl_vars['DELIVERY']->value['date'])) {?>
<div><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['shipping_date'];?>
: <?php echo $_smarty_tpl->tpl_vars['DELIVERY']->value['date'];?>
</div>
<?php }?>
<?php if (!empty($_smarty_tpl->tpl_vars['DELIVERY']->value['url'])) {?>
<div><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['shipping_tracking'];?>
: <a href="<?php echo $_smarty_tpl->tpl_vars['DELIVERY']->value['url'];?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['DELIVERY']->value['method'];?>
<?php if (!empty($_smarty_tpl->tpl_vars['DELIVERY']->value['product'])) {?>: <?php echo $_smarty_tpl->tpl_vars['DELIVERY']->value['product'];?>
<?php }?></a></div>
<?php } elseif (!empty($_smarty_tpl->tpl_vars['DELIVERY']->value['tracking'])) {?>
<div><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['shipping_tracking'];?>
: <?php echo $_smarty_tpl->tpl_vars['DELIVERY']->value['tracking'];?>
</div>
<?php }?>
<?php }?>
<hr>
<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['order_summary'];?>
</h3>
<table class="expand">
   <thead>
      <tr>
         <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['product'];?>
</th>
         <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['price_each'];?>
</th>
         <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['quantity'];?>
</th>
         <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['price'];?>
</th>
      </tr>
   </thead>
   <tbody>
      <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ITEMS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
      <tr>
         <td>
            <?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
<?php if (!empty($_smarty_tpl->tpl_vars['item']->value['product_code'])) {?> (<?php echo $_smarty_tpl->tpl_vars['item']->value['product_code'];?>
)<?php }?>
            <?php if (!empty($_smarty_tpl->tpl_vars['item']->value['options'])) {?>
            <p><?php  $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['option']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['item']->value['options']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) {
$_smarty_tpl->tpl_vars['option']->_loop = true;
?><?php echo $_smarty_tpl->tpl_vars['option']->value;?>
<br><?php } ?></p>
            <?php }?>
         </td>
         <td class="text-right"><?php echo $_smarty_tpl->tpl_vars['item']->value['price'];?>
</td>
         <td class="text-center"><?php echo $_smarty_tpl->tpl_vars['item']->value['quantity'];?>
</td>
         <td class="text-right"><?php echo $_smarty_tpl->tpl_vars['item']->value['price_total'];?>
</td>
      </tr>
   </tbody>
   <?php } ?>
   <tfoot>
      <tr>
         <td colspan="2"></td>
         <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_sub'];?>
</td>
         <td class="text-right"><?php echo $_smarty_tpl->tpl_vars['SUM']->value['subtotal'];?>
</td>
      </tr>
      <tr>
         <td colspan="2"></td>
         <td><?php if (!empty($_smarty_tpl->tpl_vars['SUM']->value['ship_method'])) {?><?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['SUM']->value['ship_method'],'_',' ');?>
<?php if (!empty($_smarty_tpl->tpl_vars['SUM']->value['ship_product'])) {?> (<?php echo $_smarty_tpl->tpl_vars['SUM']->value['ship_product'];?>
)<?php }?><?php } else { ?><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['shipping'];?>
<?php }?></td>
         <td class="text-right"><?php echo $_smarty_tpl->tpl_vars['SUM']->value['shipping'];?>
</td>
      </tr>
      <?php  $_smarty_tpl->tpl_vars['tax'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tax']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TAXES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tax']->key => $_smarty_tpl->tpl_vars['tax']->value) {
$_smarty_tpl->tpl_vars['tax']->_loop = true;
?>
      <tr>
         <td colspan="2"></td>
         <td><?php echo $_smarty_tpl->tpl_vars['tax']->value['name'];?>
</td>
         <td class="text-right"><?php echo $_smarty_tpl->tpl_vars['tax']->value['value'];?>
</td>
      </tr>
      <?php } ?>
      <?php if ($_smarty_tpl->tpl_vars['DISCOUNT']->value) {?>
      <tr>
         <td colspan="2"></td>
         <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_discount'];?>
</td>
         <td class="text-right"><?php echo $_smarty_tpl->tpl_vars['SUM']->value['discount'];?>
</td>
      </tr>
      <?php }?>
      <tr>
         <td colspan="2"></td>
         <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_grand'];?>
</td>
         <td class="text-right"><?php echo $_smarty_tpl->tpl_vars['SUM']->value['total'];?>
</td>
      </tr>
   </tfoot>
</table>
<?php if (!empty($_smarty_tpl->tpl_vars['SUM']->value['note_to_customer'])) {?>
<blockquote><?php echo $_smarty_tpl->tpl_vars['SUM']->value['note_to_customer'];?>
</blockquote>
<?php }?>
<?php if (!empty($_smarty_tpl->tpl_vars['SUM']->value['customer_comments'])) {?>
<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['comments'];?>
</h3>
<p>&quot;<?php echo $_smarty_tpl->tpl_vars['SUM']->value['customer_comments'];?>
&quot;</p>
<?php }?>
<p><a href="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/index.php?_a=receipt&cart_order_id=<?php echo $_smarty_tpl->tpl_vars['SUM']->value['cart_order_id'];?>
" target="_blank"><i class="fa fa-print"></i> <?php echo $_smarty_tpl->tpl_vars['LANG']->value['confirm']['print'];?>
</a></p>
<?php  $_smarty_tpl->tpl_vars['affiliate'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['affiliate']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['AFFILIATES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['affiliate']->key => $_smarty_tpl->tpl_vars['affiliate']->value) {
$_smarty_tpl->tpl_vars['affiliate']->_loop = true;
?><?php echo $_smarty_tpl->tpl_vars['affiliate']->value;?>
<?php } ?>
<?php if ($_smarty_tpl->tpl_vars['ANALYTICS']->value) {?>
<!-- Google Analytics for e-commerce -->
<script type="text/javascript">
   
   var _gaq = _gaq || [];
   _gaq.push(['_setAccount', '<?php echo $_smarty_tpl->tpl_vars['GA_SUM']->value['google_id'];?>
']);
   _gaq.push(['_trackPageview']);
   _gaq.push(['_addTrans',
     '<?php echo $_smarty_tpl->tpl_vars['GA_SUM']->value['cart_order_id'];?>
',           // order ID - required
     '<?php echo $_smarty_tpl->tpl_vars['GA_SUM']->value['store_name'];?>
',  // affiliation or store name
     '<?php echo $_smarty_tpl->tpl_vars['GA_SUM']->value['total'];?>
',          // total - required
     '<?php echo $_smarty_tpl->tpl_vars['GA_SUM']->value['total_tax'];?>
',           // tax
     '<?php echo $_smarty_tpl->tpl_vars['GA_SUM']->value['shipping'];?>
',              // shipping
     '<?php echo $_smarty_tpl->tpl_vars['GA_SUM']->value['town'];?>
',       // city
     '<?php echo $_smarty_tpl->tpl_vars['GA_SUM']->value['state'];?>
',     // state or province
     '<?php echo $_smarty_tpl->tpl_vars['GA_SUM']->value['country_iso'];?>
'             // country
   ]);
   
   
    // add item might be called for every item in the shopping cart
    // where your ecommerce engine loops through each item in the cart and
    // prints out _addItem for each
   <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['GA_ITEMS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
   
   _gaq.push(['_addItem',
     '<?php echo $_smarty_tpl->tpl_vars['GA_SUM']->value['cart_order_id'];?>
',           // order ID - required
     '<?php echo $_smarty_tpl->tpl_vars['item']->value['product_code'];?>
',           // SKU/code - required
     '<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
',        // product name
     '',   // category or variation
     '<?php echo $_smarty_tpl->tpl_vars['item']->value['price'];?>
',          // unit price - required
     '<?php echo $_smarty_tpl->tpl_vars['item']->value['quantity'];?>
'               // quantity - required
   ]);
   
   <?php } ?>
   
   _gaq.push(['_trackTrans']); //submits transaction to the Analytics servers
   
   (function() {
     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
   })();
   
</script>
<?php }?><?php }} ?>
