<div id="HOOK_TOP_PAYMENT"><?php 
echo $_smarty_tpl->getVariable('HOOK_TOP_PAYMENT')->value;
?>
</div>

<?php 
if ($_smarty_tpl->getVariable('HOOK_PAYMENT')->value) {
    ?>
	<?php 
    if (!$_smarty_tpl->getVariable('opc')->value) {
        ?>
<h4><?php 
        echo smartyTranslate(array('s' => 'Please select your preferred payment method to pay the amount of'), $_smarty_tpl);
        ?>
&nbsp;<span class="price"><?php 
        echo Product::convertPrice(array('price' => $_smarty_tpl->getVariable('total_price')->value), $_smarty_tpl);
        ?>
</span> <?php 
        if ($_smarty_tpl->getVariable('taxes_enabled')->value) {
            echo smartyTranslate(array('s' => '(tax incl.)'), $_smarty_tpl);
        }
        ?>
</h4><br /><?php 
    }
    ?>
	<?php 
    if ($_smarty_tpl->getVariable('opc')->value) {
        ?>
<div id="opc_payment_methods-content"><?php 
    }
    ?>
			<br/>
			<?php 
    if ($_smarty_tpl->getVariable('show_wrapping')->value) {
        ?>
				<?php 
        $_smarty_tpl->tpl_vars['blockcart_cart_flag'] = new Smarty_variable(constant('Cart::ONLY_WRAPPING'), null, null);
        ?>
				<span><?php 
        echo smartyTranslate(array('s' => 'Wrapping', 'mod' => 'blockcart'), $_smarty_tpl);
        ?>
</span>
				<span id="cart_block_wrapping_cost" class="price cart_block_wrapping_cost"><?php 
        if ($_smarty_tpl->getVariable('priceDisplay')->value == 1) {
            echo Product::convertPrice(array('price' => $_smarty_tpl->getVariable('cart')->value->getOrderTotal(false, $_smarty_tpl->getVariable('blockcart_cart_flag')->value)), $_smarty_tpl);
        } else {
            echo Product::convertPrice(array('price' => $_smarty_tpl->getVariable('cart')->value->getOrderTotal(true, $_smarty_tpl->getVariable('blockcart_cart_flag')->value)), $_smarty_tpl);
        }
        ?>
</span>
				<br/>
			<?php 
    }
    ?>
			<?php 
    if ($_smarty_tpl->getVariable('show_tax')->value && isset($_smarty_tpl->getVariable('tax_cost', null, true, false)->value)) {
        ?>
				<span><?php 
        echo smartyTranslate(array('s' => 'Tax', 'mod' => 'blockcart'), $_smarty_tpl);
        ?>
</span>
				<span id="cart_block_tax_cost" class="price ajax_cart_tax_cost"><?php 
		"link":            "<?php 
            echo $_smarty_tpl->getVariable('link')->value->getPageLink('order.php', true);
            ?>
?deleteDiscount=<?php 
            echo $_smarty_tpl->tpl_vars['discount']->value['id_discount'];
            ?>
",
		"price":           "-<?php 
            if ($_smarty_tpl->tpl_vars['discount']->value['value_real'] != '!') {
                if ($_smarty_tpl->getVariable('priceDisplay')->value == 1) {
                    ob_start();
                    echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['discount']->value['value_tax_exc']), $_smarty_tpl);
                    echo html_entity_decode(ob_get_clean(), 2, 'UTF-8');
                } else {
                    ob_start();
                    echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['discount']->value['value_real']), $_smarty_tpl);
                    echo html_entity_decode(ob_get_clean(), 2, 'UTF-8');
                }
            }
            ?>
"
	}
	<?php 
            if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['discounts']['last']) {
                ?>
,<?php 
            }
        }
    }
}
?>
"><?php 
echo smartyTranslate(array('s' => 'products', 'mod' => 'blockuserinfo'), $this);
?>
</span>
				<span class="ajax_cart_total<?php 
if ($this->_tpl_vars['cart_qties'] == 0) {
    ?>
 hidden<?php 
}
?>
"><?php 
if ($this->_tpl_vars['cart_qties'] > 0) {
    if ($this->_tpl_vars['priceDisplay'] == 1) {
        echo Product::convertPrice(array('price' => $this->_tpl_vars['cart']->getOrderTotal(false, 4)), $this);
    } else {
        echo Product::convertPrice(array('price' => $this->_tpl_vars['cart']->getOrderTotal(true, 4)), $this);
    }
}
?>
</span>
				<span class="ajax_cart_no_product<?php 
if ($this->_tpl_vars['cart_qties'] > 0) {
    ?>
 hidden<?php 
}
?>
"><?php 
echo smartyTranslate(array('s' => '(empty)', 'mod' => 'blockuserinfo'), $this);
?>
</span>
		</li>
            ?>
</a></h3>
			</div>																				 
			<div class="right_block">
				<?php 
            if (!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value && (isset($_smarty_tpl->tpl_vars['product']->value['show_price']) && $_smarty_tpl->tpl_vars['product']->value['show_price'] || isset($_smarty_tpl->tpl_vars['product']->value['available_for_order']) && $_smarty_tpl->tpl_vars['product']->value['available_for_order'])) {
                ?>
				<div>
					<?php 
                if (isset($_smarty_tpl->tpl_vars['product']->value['show_price']) && $_smarty_tpl->tpl_vars['product']->value['show_price'] && !isset($_smarty_tpl->getVariable('restricted_country_mode', null, true, false)->value)) {
                    ?>
<span class="price"><?php 
                    if (!$_smarty_tpl->getVariable('priceDisplay')->value) {
                        echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value['price']), $_smarty_tpl);
                    } else {
                        echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value['price_tax_exc']), $_smarty_tpl);
                    }
                    ?>
</span><?php 
                }
                ?>
				</div>
				<?php 
            }
            ?>
				<a class="button" href="<?php 
            echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['link'], 'htmlall', 'UTF-8');
            ?>
" title="<?php 
            echo smartyTranslate(array('s' => 'View'), $_smarty_tpl);
            ?>
					<h4><span class="product_name"><?php 
                    echo $this->_tpl_vars['product']['details']->name;
                    ?>
</span><?php 
                    if (isset($this->_tpl_vars['product']['details']->new) && $this->_tpl_vars['product']['details']->new) {
                        ?>
<span class="new"><?php 
                        echo smartyTranslate(array('s' => 'new'), $this);
                        ?>
</span><?php 
                    }
                    ?>
</h4>
					<div class="prices">
						<p class="price"><?php 
                    echo Product::convertPrice(array('price' => $this->_tpl_vars['product']['details']->getPrice(true, $this->_tpl_vars['product']['details']->getDefaultAttribute($this->_tpl_vars['product']['id_product']))), $this);
                    ?>
</p>
							<?php 
                    if ($this->_tpl_vars['product']['details']->on_sale) {
                        ?>
							<span class="on_sale"><?php 
                        echo smartyTranslate(array('s' => 'On sale!'), $this);
                        ?>
</span>
						<?php 
                    } elseif (($this->_tpl_vars['product']['details']->reduction_price != 0 || $this->_tpl_vars['product']['details']->reduction_percent != 0) && ($this->_tpl_vars['product']['details']->reduction_from == $this->_tpl_vars['product']['details']->reduction_to || (is_array($_tmp = time()) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d')) <= $this->_tpl_vars['product']['details']->reduction_to && (is_array($_tmp = time()) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d')) >= $this->_tpl_vars['product']['details']->reduction_from)) {
                        ?>
							<span class="discount"><?php 
                        echo smartyTranslate(array('s' => 'Price lowered!'), $this);
                        ?>
                ?>
</span><?php 
                if ($this->_tpl_vars['priceDisplay'] == 2) {
                    ?>
 <?php 
                    echo smartyTranslate(array('s' => 'Tax inc.', 'mod' => 'homefeatured'), $this);
                }
                ?>
</p><?php 
            }
            ?>
						<?php 
            if ($this->_tpl_vars['priceDisplay']) {
                ?>
<p class="price_container"><span class="price"><?php 
                echo Product::convertPrice(array('price' => $this->_tpl_vars['product']['price_tax_exc']), $this);
                ?>
</span><?php 
                if ($this->_tpl_vars['priceDisplay'] == 2) {
                    ?>
 <?php 
                    echo smartyTranslate(array('s' => 'Tax exc.', 'mod' => 'homefeatured'), $this);
                }
                ?>
</p><?php 
            }
            ?>
						<a class="button" href="<?php 
            echo $this->_tpl_vars['product']['link'];
            ?>
" title="<?php 
}
?>
	</td>
	<td class="cart_unit">
		<span class="price" id="product_price_<?php 
echo $_smarty_tpl->getVariable('product')->value['id_product'];
?>
_<?php 
echo $_smarty_tpl->getVariable('product')->value['id_product_attribute'];
?>
">
			<?php 
if (!$_smarty_tpl->getVariable('priceDisplay')->value) {
    echo Product::convertPrice(array('price' => $_smarty_tpl->getVariable('product')->value['price_wt']), $_smarty_tpl);
} else {
    echo Product::convertPrice(array('price' => $_smarty_tpl->getVariable('product')->value['price']), $_smarty_tpl);
}
?>
		</span>
	</td>
	<td class="cart_quantity"<?php 
if (isset($_smarty_tpl->getVariable('customizedDatas', null, true, false)->value[$_smarty_tpl->getVariable('productId', null, true, false)->value][$_smarty_tpl->getVariable('productAttributeId', null, true, false)->value]) && $_smarty_tpl->getVariable('quantityDisplayed')->value == 0) {
    ?>
 <?php 
}
?>
 style="text-align: center;">
		<?php 
if (isset($_smarty_tpl->getVariable('customizedDatas', null, true, false)->value[$_smarty_tpl->getVariable('productId', null, true, false)->value][$_smarty_tpl->getVariable('productAttributeId', null, true, false)->value]) && $_smarty_tpl->getVariable('quantityDisplayed')->value == 0) {
    ?>
			<span id="cart_quantity_custom_<?php 
                    ?>
						<?php 
                    if (!$this->_tpl_vars['priceDisplay'] || $this->_tpl_vars['priceDisplay'] == 2) {
                        echo Product::convertPrice(array('price' => $this->_tpl_vars['discount']['value_real'] * -1), $this);
                        if ($this->_tpl_vars['priceDisplay'] == 2) {
                            ?>
 <?php 
                            echo smartyTranslate(array('s' => '+Tx'), $this);
                            ?>
<br /><?php 
                        }
                    }
                    ?>
						<?php 
                    if ($this->_tpl_vars['priceDisplay']) {
                        echo Product::convertPrice(array('price' => $this->_tpl_vars['discount']['value_tax_exc'] * -1), $this);
                        if ($this->_tpl_vars['priceDisplay'] == 2) {
                            ?>
 <?php 
                            echo smartyTranslate(array('s' => '-Tx'), $this);
                        }
                    }
                    ?>
					<?php 
                }
                ?>
				</span></td>
			</tr>
		<?php 
            }
        }
            }
            ?>
					</td>
					<td class="discount_minimum" style="text-align:center">
						<?php 
            if ($_smarty_tpl->tpl_vars['discountDetail']->value['minimal'] == 0) {
                ?>
							<?php 
                echo smartyTranslate(array('s' => 'none'), $_smarty_tpl);
                ?>

						<?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 
        }
    }
            foreach ($_from as $this->_tpl_vars['quantity_discount']) {
                $this->_foreach['quantity_discounts']['iteration']++;
                ?>
				<td>
				<?php 
                if ((is_array($_tmp = $this->_tpl_vars['quantity_discount']['id_discount_type']) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)) == 1) {
                    ?>
					-<?php 
                    echo is_array($_tmp = $this->_tpl_vars['quantity_discount']['value']) ? $this->_run_mod_handler('floatval', true, $_tmp) : floatval($_tmp);
                    ?>
%
				<?php 
                } else {
                    ?>
					-<?php 
                    echo Product::convertPrice(array('price' => is_array($_tmp = $this->_tpl_vars['quantity_discount']['value']) ? $this->_run_mod_handler('floatval', true, $_tmp) : floatval($_tmp)), $this);
                    ?>

				<?php 
                }
                ?>
				</td>
				<?php 
            }
        }
        unset($_from);
        ?>
			</tr>
	</table>
</div>
<?php 
		'nameDescription': '<?php 
            echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['discount']['name']) ? $this->_run_mod_handler('cat', true, $_tmp, ' : ') : smarty_modifier_cat($_tmp, ' : ')) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['discount']['description']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['discount']['description'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 18, '...') : smarty_modifier_truncate($_tmp, 18, '...');
            ?>
',
		'link':            '<?php 
            echo $this->_tpl_vars['base_dir_ssl'];
            ?>
order.php?deleteDiscount=<?php 
            echo $this->_tpl_vars['discount']['id_discount'];
            ?>
',
		'price':           '-<?php 
            if ($this->_tpl_vars['priceDisplay'] == 1) {
                echo is_array($_tmp = Product::convertPrice(array('price' => $this->_tpl_vars['discount']['value_tax_exc']), $this)) ? $this->_run_mod_handler('html_entity_decode', true, $_tmp, 2, 'UTF-8') : html_entity_decode($_tmp, 2, 'UTF-8');
            } else {
                echo is_array($_tmp = Product::convertPrice(array('price' => $this->_tpl_vars['discount']['value_real']), $this)) ? $this->_run_mod_handler('html_entity_decode', true, $_tmp, 2, 'UTF-8') : html_entity_decode($_tmp, 2, 'UTF-8');
            }
            ?>
'
	}
	<?php 
            if (!($this->_foreach['discounts']['iteration'] == $this->_foreach['discounts']['total'])) {
                ?>
,<?php 
            }
        }
    }
    unset($_from);
}
?>
],
								                  	</span>
													<span class="product_info">
								                       	<span class="price"><?php 
                        if (!$_smarty_tpl->getVariable('priceDisplay')->value) {
                            echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['productitem']->value['price']), $_smarty_tpl);
                        } else {
                            echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['productitem']->value['price_tax_exc']), $_smarty_tpl);
                        }
                        ?>
</span>
								                       	<?php 
                        if ($_smarty_tpl->tpl_vars['productitem']->value['price_without_reduction'] - $_smarty_tpl->tpl_vars['productitem']->value['price'] > 1) {
                            ?>
									                       	<span class="strike_price">MRP <?php 
                            if (!$_smarty_tpl->getVariable('priceDisplay')->value) {
                                echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['productitem']->value['price_without_reduction']), $_smarty_tpl);
                                ?>
 <?php 
                            }
                            ?>
</span>
									                       	<span class="clear" style="display:block;color:#DA0F00;">(<?php 
                            echo round(($_smarty_tpl->tpl_vars['productitem']->value['price_without_reduction'] - $_smarty_tpl->tpl_vars['productitem']->value['price']) / $_smarty_tpl->tpl_vars['productitem']->value['price_without_reduction'] * 100);
                            ?>
% Off)</span>
															
														<?php 
                        }
                        ?>
													</span>
												</a>
            ?>
" title="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['orderProduct']->value['name']);
            ?>
">
					<?php 
            echo smarty_modifier_escape(smarty_modifier_truncate($_smarty_tpl->tpl_vars['orderProduct']->value['name'], 15, '...'), 'htmlall', 'UTF-8');
            ?>

					</a><br />
					<?php 
            if ($_smarty_tpl->getVariable('crossDisplayPrice')->value && $_smarty_tpl->tpl_vars['orderProduct']->value['show_price'] == 1 && !isset($_smarty_tpl->getVariable('restricted_country_mode', null, true, false)->value) && !$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value) {
                ?>
						<span class="price_display">
							<span class="price"><?php 
                echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['orderProduct']->value['displayed_price']), $_smarty_tpl);
                ?>
</span>
						</span><br />
					<?php 
            } else {
                ?>
						<br />
					<?php 
            }
            ?>
					<a title="<?php 
            echo smartyTranslate(array('s' => 'View', 'mod' => 'crossselling'), $_smarty_tpl);
            ?>
" href="<?php 
            echo $_smarty_tpl->tpl_vars['orderProduct']->value['link'];
		<tr>
			<?php 
        $_smarty_tpl->tpl_vars['quantity_discount'] = new Smarty_Variable();
        $_from = $_smarty_tpl->getVariable('quantity_discounts')->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        if ($_smarty_tpl->_count($_from) > 0) {
            foreach ($_from as $_smarty_tpl->tpl_vars['quantity_discount']->key => $_smarty_tpl->tpl_vars['quantity_discount']->value) {
                ?>
				<td>
				<?php 
                if ($_smarty_tpl->tpl_vars['quantity_discount']->value['price'] != 0 || $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_type'] == 'amount') {
                    ?>
					-<?php 
                    echo Product::convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value'])), $_smarty_tpl);
                    ?>

				<?php 
                } else {
                    ?>
					-<?php 
                    echo floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value']);
                    ?>
%
				<?php 
                }
                ?>
				</td>
			<?php 
            }
    ?>
				<?php 
    if (!$this->_tpl_vars['priceDisplay'] || $this->_tpl_vars['priceDisplay'] == 2) {
        echo Product::convertPrice(array('price' => $this->_tpl_vars['product']['total_wt']), $this);
        if ($this->_tpl_vars['priceDisplay'] == 2) {
            ?>
 <?php 
            echo smartyTranslate(array('s' => '+Tx'), $this);
        }
    }
    if ($this->_tpl_vars['priceDisplay'] == 2) {
        ?>
<br /><?php 
    }
    ?>
				<?php 
    if ($this->_tpl_vars['priceDisplay']) {
        echo Product::convertPrice(array('price' => $this->_tpl_vars['product']['total']), $this);
        if ($this->_tpl_vars['priceDisplay'] == 2) {
            ?>
 <?php 
            echo smartyTranslate(array('s' => '-Tx'), $this);
        }
    }
    ?>
			<?php 
}
?>
		</span>
	</td>
</tr>