/prestashop/_/cache/smarty/compile/85/ae/58/85ae5825f0ecc116df7cd025321b82c10742acf0.file.order-address-product-line.tpl.php
PHP | 154 lines | 153 code | 1 blank | 0 comment | 28 complexity | 84b5a4414b3d8d71d8b1bca643410f68 MD5 | raw file
- <?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:07:01
- compiled from "C:\xampp\htdocs\prestashop\prestashop\_\themes\default-bootstrap\order-address-product-line.tpl" */ ?>
- <?php /*%%SmartyHeaderCode:993257c495e51a39d2-70439195%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
- $_valid = $_smarty_tpl->decodeProperties(array (
- 'file_dependency' =>
- array (
- '85ae5825f0ecc116df7cd025321b82c10742acf0' =>
- array (
- 0 => 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\themes\\default-bootstrap\\order-address-product-line.tpl',
- 1 => 1472500917,
- 2 => 'file',
- ),
- ),
- 'nocache_hash' => '993257c495e51a39d2-70439195',
- 'function' =>
- array (
- ),
- 'variables' =>
- array (
- 'product' => 0,
- 'productLast' => 0,
- 'productFirst' => 0,
- 'productId' => 0,
- 'productAttributeId' => 0,
- 'customizedDatas' => 0,
- 'quantityDisplayed' => 0,
- 'odd' => 0,
- 'link' => 0,
- 'smallSize' => 0,
- 'cannotModify' => 0,
- 'token_cart' => 0,
- 'delivery' => 0,
- 'address_list' => 0,
- 'address' => 0,
- ),
- 'has_nocache_code' => false,
- 'version' => 'Smarty-3.1.19',
- 'unifunc' => 'content_57c495e5b71b09_42080471',
- ),false); /*/%%SmartyHeaderCode%%*/?>
- <?php if ($_valid && !is_callable('content_57c495e5b71b09_42080471')) {function content_57c495e5b71b09_42080471($_smarty_tpl) {?>
- <tr id="product_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
- _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
- _0_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
- " class="<?php if ($_smarty_tpl->tpl_vars['productLast']->value) {?>last_item<?php } elseif ($_smarty_tpl->tpl_vars['productFirst']->value) {?>first_item<?php }?> <?php if (isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])&&$_smarty_tpl->tpl_vars['quantityDisplayed']->value==0) {?>alternate_item<?php }?> cart_item <?php if ($_smarty_tpl->tpl_vars['odd']->value) {?>odd<?php } else { ?>even<?php }?>">
- <td class="cart_product">
- <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'],$_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['category']), ENT_QUOTES, 'UTF-8', true);?>
- "><img src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['id_image'],'small_default'), ENT_QUOTES, 'UTF-8', true);?>
- " alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
- " <?php if (isset($_smarty_tpl->tpl_vars['smallSize']->value)) {?>width="<?php echo $_smarty_tpl->tpl_vars['smallSize']->value['width'];?>
- " height="<?php echo $_smarty_tpl->tpl_vars['smallSize']->value['height'];?>
- " <?php }?> /></a>
- </td>
- <td class="cart_description">
- <p class="product-name"><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'],$_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['category']), ENT_QUOTES, 'UTF-8', true);?>
- "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
- </a></p>
- <?php if (isset($_smarty_tpl->tpl_vars['product']->value['attributes'])&&$_smarty_tpl->tpl_vars['product']->value['attributes']) {?><small><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'],$_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['category']), ENT_QUOTES, 'UTF-8', true);?>
- "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['attributes'], ENT_QUOTES, 'UTF-8', true);?>
- </a></small><?php }?>
- </td>
- <td class="cart_ref"><?php if ($_smarty_tpl->tpl_vars['product']->value['reference']) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['reference'], ENT_QUOTES, 'UTF-8', true);?>
- <?php } else { ?>--<?php }?></td>
- <td class="cart_avail"><?php if ($_smarty_tpl->tpl_vars['product']->value['stock_quantity']>0) {?><span class="label label-success"><?php echo smartyTranslate(array('s'=>'In Stock'),$_smarty_tpl);?>
- </span><?php } else { ?><span class="label label-warning"><?php echo smartyTranslate(array('s'=>'Out of Stock'),$_smarty_tpl);?>
- </span><?php }?></td>
- <td class="cart_quantity <?php if (isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])&&$_smarty_tpl->tpl_vars['quantityDisplayed']->value==0) {?> text-center <?php }?>">
- <?php if (isset($_smarty_tpl->tpl_vars['cannotModify']->value)&&$_smarty_tpl->tpl_vars['cannotModify']->value==1) {?>
- <span><?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value==0&&isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) {?><?php echo count($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]);?>
- <?php } else { ?><?php echo $_smarty_tpl->tpl_vars['product']->value['cart_quantity']-$_smarty_tpl->tpl_vars['quantityDisplayed']->value;?>
- <?php }?></span>
- <?php } else { ?>
- <?php if (!isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])||$_smarty_tpl->tpl_vars['quantityDisplayed']->value>0) {?>
- <input type="hidden" value="<?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value==0&&isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) {?><?php echo count($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]);?>
- <?php } else { ?><?php echo $_smarty_tpl->tpl_vars['product']->value['cart_quantity']-$_smarty_tpl->tpl_vars['quantityDisplayed']->value;?>
- <?php }?>" name="quantity_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
- _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
- _0_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
- _hidden" />
- <input size="2" type="text" class="cart_quantity_input form-control grey" value="<?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value==0&&isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) {?><?php echo count($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]);?>
- <?php } else { ?><?php echo $_smarty_tpl->tpl_vars['product']->value['cart_quantity']-$_smarty_tpl->tpl_vars['quantityDisplayed']->value;?>
- <?php }?>" name="quantity_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
- _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
- _0_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
- " />
- <div class="cart_quantity_button">
- <?php if ($_smarty_tpl->tpl_vars['product']->value['minimal_quantity']<($_smarty_tpl->tpl_vars['product']->value['cart_quantity']-$_smarty_tpl->tpl_vars['quantityDisplayed']->value)||$_smarty_tpl->tpl_vars['product']->value['minimal_quantity']<=1) {?>
- <a rel="nofollow" class="cart_quantity_down btn btn-default button-minus" id="cart_quantity_down_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
- _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
- _0_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
- " href="<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);?>
- <?php $_tmp19=ob_get_clean();?><?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);?>
- <?php $_tmp20=ob_get_clean();?><?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
- <?php $_tmp21=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart',true,null,"add=1&id_product=".$_tmp19."&ipa=".$_tmp20."&id_address_delivery=".$_tmp21."&op=down&token=".((string)$_smarty_tpl->tpl_vars['token_cart']->value)), ENT_QUOTES, 'UTF-8', true);?>
- " title="<?php echo smartyTranslate(array('s'=>'Subtract'),$_smarty_tpl);?>
- "><span><i class="icon-minus"></i></span></a>
- <?php } else { ?>
- <a class="cart_quantity_down btn btn-default button-minus disabled" href="#" id="cart_quantity_down_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
- _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
- _0_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
- " title="<?php echo smartyTranslate(array('s'=>'You must purchase a minimum of %d of this product.','sprintf'=>$_smarty_tpl->tpl_vars['product']->value['minimal_quantity']),$_smarty_tpl);?>
- "><span><i class="icon-minus"></i></span></a>
- <?php }?>
- <a rel="nofollow" class="cart_quantity_up btn btn-default button-plus" id="cart_quantity_up_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
- _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
- _0_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
- " href="<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);?>
- <?php $_tmp22=ob_get_clean();?><?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);?>
- <?php $_tmp23=ob_get_clean();?><?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
- <?php $_tmp24=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart',true,null,"add=1&id_product=".$_tmp22."&ipa=".$_tmp23."&id_address_delivery=".$_tmp24."&token=".((string)$_smarty_tpl->tpl_vars['token_cart']->value)), ENT_QUOTES, 'UTF-8', true);?>
- " title="<?php echo smartyTranslate(array('s'=>'Add'),$_smarty_tpl);?>
- "><span><i class="icon-plus"></i></span></a>
- </div>
- <?php }?>
- <?php }?>
- </td>
- <td>
- <form method="post" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart',true,null,"token=".((string)$_smarty_tpl->tpl_vars['token_cart']->value)), ENT_QUOTES, 'UTF-8', true);?>
- ">
- <div class="selector2">
- <input type="hidden" name="id_product" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
- " />
- <input type="hidden" name="id_product_attribute" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
- " />
- <select name="address_delivery" id="select_address_delivery_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
- _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
- _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
- " class="cart_address_delivery form-control">
- <?php if ($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']==0&&$_smarty_tpl->tpl_vars['delivery']->value->id==0) {?>
- <option></option>
- <?php }?>
- <option value="-1"><?php echo smartyTranslate(array('s'=>'Create a new address'),$_smarty_tpl);?>
- </option>
- <?php $_smarty_tpl->tpl_vars['address'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['address']->_loop = false;
- $_from = $_smarty_tpl->tpl_vars['address_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
- foreach ($_from as $_smarty_tpl->tpl_vars['address']->key => $_smarty_tpl->tpl_vars['address']->value) {
- $_smarty_tpl->tpl_vars['address']->_loop = true;
- ?>
- <option value="<?php echo $_smarty_tpl->tpl_vars['address']->value['id_address'];?>
- "
- <?php if (($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']>0&&$_smarty_tpl->tpl_vars['product']->value['id_address_delivery']==$_smarty_tpl->tpl_vars['address']->value['id_address'])||($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']==0&&$_smarty_tpl->tpl_vars['address']->value['id_address']==$_smarty_tpl->tpl_vars['delivery']->value->id)) {?>
- selected="selected"
- <?php }?>
- >
- <?php echo $_smarty_tpl->tpl_vars['address']->value['alias'];?>
- </option>
- <?php } ?>
- <option value="-2"><?php echo smartyTranslate(array('s'=>'Ship to multiple addresses'),$_smarty_tpl);?>
- </option>
- </select>
- </div>
- </form>
- </td>
- </tr><?php }} ?>