">
				<td class="bold"><span class="color-myaccount"><?php 
            echo smartyTranslate(array('s' => '#'), $_smarty_tpl);
            echo sprintf("%06d", $_smarty_tpl->tpl_vars['slip']->value['id_order_slip']);
            ?>
</span></td>
				<td class="history_method"><a class="color-myaccount" href="javascript:showOrder(1, <?php 
            echo intval($_smarty_tpl->tpl_vars['slip']->value['id_order']);
            ?>
, 'order-detail');"><?php 
            echo smartyTranslate(array('s' => '#'), $_smarty_tpl);
            echo sprintf("%06d", $_smarty_tpl->tpl_vars['slip']->value['id_order']);
            ?>
</a></td>
				<td class="bold"><?php 
            echo Tools::dateFormat(array('date' => $_smarty_tpl->tpl_vars['slip']->value['date_add'], 'full' => 0), $_smarty_tpl);
            ?>
</td>
				<td class="history_invoice">
					<a href="<?php 
            echo $_smarty_tpl->getVariable('link')->value->getPageLink('pdf-order-return.php', true);
            ?>
?id_order_slip=<?php 
            echo intval($_smarty_tpl->tpl_vars['slip']->value['id_order_slip']);
            ?>
" title="<?php 
            echo smartyTranslate(array('s' => 'Credit slip'), $_smarty_tpl);
            ?>
 <?php 
            echo smartyTranslate(array('s' => '#'), $_smarty_tpl);
            echo sprintf("%06d", $_smarty_tpl->tpl_vars['slip']->value['id_order_slip']);
            ?>
 <?php 
            if ($_smarty_tpl->tpl_vars['comment']->value['content']) {
                ?>
		<div
			style="padding: 15px 5px; border-bottom: 1px dashed #cacaca; float: left; width: 100%"
			itemprop="reviews" itemscope itemtype="http://schema.org/Review">
			<div style="width: 20%; float: left;">
				<div style="color: #666666">
					<span itemprop="author"><?php 
                echo smarty_modifier_escape($_smarty_tpl->tpl_vars['comment']->value['customer_name'], 'html', 'UTF-8');
                ?>
.</span>
				</div>
				<div style="color: #939393"><?php 
                echo Tools::dateFormat(array('date' => smarty_modifier_escape($_smarty_tpl->tpl_vars['comment']->value['date_add'], 'html', 'UTF-8'), 'full' => 0), $_smarty_tpl);
                ?>
</div>
			</div>
			<div style="width: 80%; float: left;">
				<div>
					<?php 
                unset($_smarty_tpl->tpl_vars['smarty']->value['section']['rating']);
                $_smarty_tpl->tpl_vars['smarty']->value['section']['rating']['loop'] = is_array($_loop = 6) ? count($_loop) : max(0, (int) $_loop);
                unset($_loop);
                $_smarty_tpl->tpl_vars['smarty']->value['section']['rating']['step'] = (int) 1 == 0 ? 1 : (int) 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['rating']['start'] = (int) 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['rating']['name'] = 'rating';
                $_smarty_tpl->tpl_vars['smarty']->value['section']['rating']['show'] = true;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['rating']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rating']['loop'];
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rating']['start'] < 0) {
            ?>
							<a class="color-myaccount" href="javascript:showOrder(1, <?php 
            echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']);
            ?>
, 'order-detail');"><?php 
            echo smartyTranslate(array('s' => '#'), $_smarty_tpl);
            echo sprintf("%06d", $_smarty_tpl->tpl_vars['order']->value['id_order']);
            ?>
</a>
						</td>
						<td class="history_date bold"><?php 
            echo Tools::dateFormat(array('date' => $_smarty_tpl->tpl_vars['order']->value['date_add'], 'full' => 0), $_smarty_tpl);
            ?>
</td>
						<td class="history_date bold"><?php 
            echo Tools::dateFormat(array('date' => $_smarty_tpl->tpl_vars['order']->value['expected_shipping_date'], 'full' => 0), $_smarty_tpl);
            ?>
</td>
						<td class="history_price" style="text-align:right;"><span class="price"><?php 
            echo Tools::displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['order']->value['total_paid_real'], 'currency' => $_smarty_tpl->tpl_vars['order']->value['id_currency'], 'no_utf8' => false, 'convert' => false), $_smarty_tpl);
            ?>
</span></td>
						<td class="history_method"><?php 
            echo smarty_modifier_escape($_smarty_tpl->tpl_vars['order']->value['payment'], 'htmlall', 'UTF-8');
            ?>
</td>
						<td class="history_state"><?php 
            if (isset($_smarty_tpl->tpl_vars['order']->value['order_state'])) {
                echo smarty_modifier_escape($_smarty_tpl->tpl_vars['order']->value['order_state_external'], 'htmlall', 'UTF-8');
            }
            ?>
                ?>

						<?php 
            } else {
                ?>
							<?php 
                echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['discountDetail']->value['minimal']), $_smarty_tpl);
                ?>

						<?php 
            }
            ?>
					</td>
					
					<td class="discount_expiration_date" style="text-align:center"><?php 
            echo Tools::dateFormat(array('date' => $_smarty_tpl->tpl_vars['discountDetail']->value['date_to']), $_smarty_tpl);
            ?>
</td>
				</tr>
			<?php 
        }
    }
    ?>
			</tbody>
		</table>
		<p>
			*<?php 
    echo smartyTranslate(array('s' => 'Tax included'), $_smarty_tpl);
    ?>

		</p>
 public function doruceni()
 {
     global $cookie, $smarty;
     $until_time = strtotime("Today, " . Configuration::get('BLANK_UNTILTIME'));
     $time_add = strtotime("Today, 00:00:00");
     $time = mktime();
     $day = date("w");
     $year1 = date('Y');
     $year2 = date('Y', strtotime('+1 year'));
     $add1 = 0;
     $add2 = 0;
     $holiday_date = explode(",", Configuration::get('BLANK_PUBLICHOLIDAYS'));
     $holiday = array();
     foreach ($holiday_date as $d) {
         $holiday[] = strtotime($d);
     }
     $holiday[] = easter_date((int) $year1);
     $d1 = $this->doruceni_recurse($time_add, (int) Configuration::get('BLANK_DELIVERYTIME'), 0, $holiday);
     $d2 = $this->doruceni_recurse($time_add, (int) Configuration::get('BLANK_DELIVERYTIME') + 1, 0, $holiday);
     if ($time <= $until_time || $this->isweekend($time_add)) {
         return Tools::dateFormat(array('date' => date("Y-m-d H:i:s", $d1)), $smarty);
     }
     return Tools::dateFormat(array('date' => date("Y-m-d H:i:s", $d2)), $smarty);
 }
    ?>
', { life: 3500 });<?php 
}
?>
	<?php 
if (isset($_smarty_tpl->getVariable('date_last_order', null, true, false)->value)) {
    ?>
$.jGrowl('<?php 
    echo smartyTranslate(array('s' => 'This product was bought last', 'mod' => 'producttooltip'), $_smarty_tpl);
    ?>
 <?php 
    echo Tools::dateFormat(array('date' => $_smarty_tpl->getVariable('date_last_order')->value, 'full' => 1), $_smarty_tpl);
    ?>
', { life: 3500 });<?php 
}
?>
	<?php 
if (isset($_smarty_tpl->getVariable('date_last_cart', null, true, false)->value)) {
    ?>
$.jGrowl('<?php 
    echo smartyTranslate(array('s' => 'This product was added to cart last', 'mod' => 'producttooltip'), $_smarty_tpl);
    ?>
 <?php 
    echo Tools::dateFormat(array('date' => $_smarty_tpl->getVariable('date_last_cart')->value, 'full' => 1), $_smarty_tpl);
    ?>
', { life: 3500 });<?php 
}
?>
});
</script>