File "2527fdb108ec8be83deee82170bd10e93f22b676bffdbe88015a1e169597b8e5.php"
Full path: /home/cakedeco/retaildirectonline.co.uk/system/storage/cache/25/2527fdb108ec8be83deee82170bd10e93f22b676bffdbe88015a1e169597b8e5.php
File
size: 166.2 B (166.2 KB bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
<?php
/* tt_madison1/template/product/ocquickview/product.twig */
class __TwigTemplate_31f549c59d7590b093d9d523b60ab000d4c9efefa1bd6e4ccb4027c29e20e4b7 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<link href=\"catalog/view/javascript/jquery/magnific/magnific-popup.css\" type=\"text/css\" rel=\"stylesheet\" media=\"screen\" />
<link href=\"catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css\" type=\"text/css\" rel=\"stylesheet\" media=\"screen\" />
<script src=\"catalog/view/javascript/jquery/magnific/jquery.magnific-popup.min.js\" type=\"text/javascript\"></script>
<script src=\"catalog/view/javascript/jquery/datetimepicker/moment/moment.min.js\" type=\"text/javascript\"></script>
<script src=\"catalog/view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js\" type=\"text/javascript\"></script>
<script src=\"catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js\" type=\"text/javascript\"></script>
<link href=\"catalog/view/theme/tt_madison1/stylesheet/ocquickview/ocquickview.css\" type=\"text/css\" rel=\"stylesheet\" media=\"screen\" />
<script src=\"catalog/view/javascript/cloudzoom/zoom.js\" ></script>
";
// line 9
if ((isset($context["use_swatches"]) ? $context["use_swatches"] : null)) {
// line 10
echo "<link href=\"catalog/view/theme/tt_madison1/stylesheet/occolorswatches/swatches.css\" type=\"text/css\" rel=\"stylesheet\" media=\"screen\" />
<script src=\"catalog/view/javascript/occolorswatches/swatches.js\" type=\"text/javascript\"></script>
";
}
// line 13
if ((isset($context["use_zoom"]) ? $context["use_zoom"] : null)) {
// line 14
echo "<link href=\"catalog/view/theme/tt_madison1/stylesheet/oczoom/zoom.css\" type=\"text/css\" rel=\"stylesheet\" media=\"screen\" />
<link href=\"catalog/view/javascript/cloudzoom/css/cloud-zoom.css\" type=\"text/css\" rel=\"stylesheet\" media=\"screen\" />
";
}
// line 17
echo "<div class=\"container\">
<div class=\"row\">
<div id=\"content\" class=\"col-sm-12\">
<div class=\"row\">
<div class=\"col-sm-5\">
";
// line 22
if ((isset($context["use_zoom"]) ? $context["use_zoom"] : null)) {
// line 23
echo " <input type=\"hidden\" id=\"check-use-zoom\" value=\"1\" />
<input type=\"hidden\" id=\"light-box-position\" value=\"1\" />
<input type=\"hidden\" id=\"product-identify\" value=\"";
// line 25
echo (isset($context["product_id"]) ? $context["product_id"] : null);
echo "\" />
";
// line 26
if ((isset($context["use_swatches"]) ? $context["use_swatches"] : null)) {
// line 27
echo " <div class=\"product-zoom-image\">
";
// line 28
if ((isset($context["thumb"]) ? $context["thumb"] : null)) {
// line 29
echo " <a href=\"";
echo (isset($context["popup"]) ? $context["popup"] : null);
echo "\" class=\"cloud-zoom main-image\" id=\"product-cloud-zoom\" style=\"width: ";
echo $this->getAttribute((isset($context["thumb_dimension"]) ? $context["thumb_dimension"] : null), "width", array());
echo "px; height: ";
echo $this->getAttribute((isset($context["thumb_dimension"]) ? $context["thumb_dimension"] : null), "height", array());
echo "px;\"
rel=\"";
// line 30
if ($this->getAttribute((isset($context["zoom_config"]) ? $context["zoom_config"] : null), "bg_status", array())) {
echo " tint:'";
echo $this->getAttribute((isset($context["zoom_config"]) ? $context["zoom_config"] : null), "bg_color", array());
echo "',tintOpacity:";
echo $this->getAttribute((isset($context["zoom_config"]) ? $context["zoom_config"] : null), "bg_opacity", array());
echo ",";
}
// line 31
echo " ";
if ($this->getAttribute((isset($context["zoom_config"]) ? $context["zoom_config"] : null), "title_status", array())) {
echo " showTitle: true ";
} else {
echo " showTitle: false ";
}
echo ",
zoomWidth:";
// line 32
echo $this->getAttribute((isset($context["thumb_dimension"]) ? $context["thumb_dimension"] : null), "width", array());
echo ",zoomHeight:";
echo $this->getAttribute((isset($context["thumb_dimension"]) ? $context["thumb_dimension"] : null), "height", array());
echo ",
";
// line 33
if (($this->getAttribute((isset($context["zoom_config"]) ? $context["zoom_config"] : null), "position", array()) == "inside")) {
echo " position:'inside', adjustX: 0 ";
} else {
echo " adjustX: ";
echo $this->getAttribute((isset($context["zoom_config"]) ? $context["zoom_config"] : null), "space", array());
echo " ";
}
echo "\">
<img src=\"";
// line 34
echo (isset($context["thumb"]) ? $context["thumb"] : null);
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" alt=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" />
</a>
";
}
// line 37
echo " </div>
<div class=\"additional-images owl-carousel owl-theme\">
<!-- ";
// line 39
if ((isset($context["thumb"]) ? $context["thumb"] : null)) {
echo " -->
<!-- <div class=\"item\"> -->
<!-- <a class=\"cloud-zoom-gallery sub-image\" id=\"product-image-default\" href=\"";
// line 41
echo (isset($context["popup"]) ? $context["popup"] : null);
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" -->
<!-- rel=\"useZoom: 'product-cloud-zoom', smallImage: '";
// line 42
echo (isset($context["thumb"]) ? $context["thumb"] : null);
echo "'\" data-pos=\"1\"> -->
<!-- <img src=\"";
// line 43
echo (isset($context["small_image"]) ? $context["small_image"] : null);
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" alt=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" /> -->
<!-- </a> -->
<!-- </div> -->
<!-- ";
}
// line 46
echo " -->
";
// line 47
if ((isset($context["images"]) ? $context["images"] : null)) {
// line 48
echo " ";
$context["img_count"] = 2;
// line 49
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["images"]) ? $context["images"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 50
echo " <div class=\"item\">
<a class=\"cloud-zoom-gallery sub-image\" id=\"product-image-options-";
// line 51
echo $this->getAttribute($context["image"], "product_option_value_id", array());
echo "\" href=\"";
echo $this->getAttribute($context["image"], "popup", array());
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\"
rel=\"useZoom: 'product-cloud-zoom', smallImage: '";
// line 52
echo $this->getAttribute($context["image"], "product_image_option", array());
echo "'\" data-pos=\"";
echo (isset($context["img_count"]) ? $context["img_count"] : null);
echo "\">
<img src=\"";
// line 53
echo $this->getAttribute($context["image"], "thumb", array());
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" alt=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" />
</a>
</div>
";
// line 56
$context["img_count"] = ((isset($context["img_count"]) ? $context["img_count"] : null) + 1);
// line 57
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 58
echo " ";
}
// line 59
echo " </div>
";
} else {
// line 62
echo " <div class=\"product-zoom-image\">
";
// line 63
if ((isset($context["thumb"]) ? $context["thumb"] : null)) {
// line 64
echo " <a href=\"";
echo (isset($context["popup"]) ? $context["popup"] : null);
echo "\" class=\"cloud-zoom main-image\" id=\"product-cloud-zoom\" style=\"width: ";
echo $this->getAttribute((isset($context["thumb_dimension"]) ? $context["thumb_dimension"] : null), "width", array());
echo "px; height: ";
echo $this->getAttribute((isset($context["thumb_dimension"]) ? $context["thumb_dimension"] : null), "height", array());
echo "px;\"
rel=\"";
// line 65
if ($this->getAttribute((isset($context["zoom_config"]) ? $context["zoom_config"] : null), "bg_status", array())) {
echo " tint:'";
echo $this->getAttribute((isset($context["zoom_config"]) ? $context["zoom_config"] : null), "bg_color", array());
echo "',tintOpacity:";
echo $this->getAttribute((isset($context["zoom_config"]) ? $context["zoom_config"] : null), "bg_opacity", array());
echo ",";
}
// line 66
echo " ";
if ($this->getAttribute((isset($context["zoom_config"]) ? $context["zoom_config"] : null), "title_status", array())) {
echo " showTitle: true ";
} else {
echo " showTitle: false ";
}
echo ",
zoomWidth:";
// line 67
echo $this->getAttribute((isset($context["thumb_dimension"]) ? $context["thumb_dimension"] : null), "width", array());
echo ",zoomHeight:";
echo $this->getAttribute((isset($context["thumb_dimension"]) ? $context["thumb_dimension"] : null), "height", array());
echo ",
";
// line 68
if (($this->getAttribute((isset($context["zoom_config"]) ? $context["zoom_config"] : null), "position", array()) == "inside")) {
echo " position:'inside', adjustX: 0 ";
} else {
echo " adjustX: ";
echo $this->getAttribute((isset($context["zoom_config"]) ? $context["zoom_config"] : null), "space", array());
echo " ";
}
echo "\">
<img src=\"";
// line 69
echo (isset($context["thumb"]) ? $context["thumb"] : null);
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" alt=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" />
</a>
";
}
// line 72
echo " </div>
<div class=\"additional-images owl-carousel owl-theme\">
";
// line 74
if ((isset($context["thumb"]) ? $context["thumb"] : null)) {
// line 75
echo " <div class=\"item\">
<a class=\"cloud-zoom-gallery sub-image\" href=\"";
// line 76
echo (isset($context["popup"]) ? $context["popup"] : null);
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\"
rel=\"useZoom: 'product-cloud-zoom', smallImage: '";
// line 77
echo (isset($context["thumb"]) ? $context["thumb"] : null);
echo "'\" data-pos=\"1\">
<img src=\"";
// line 78
echo (isset($context["small_image"]) ? $context["small_image"] : null);
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" alt=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" />
</a>
</div>
";
}
// line 82
echo " ";
if ((isset($context["images"]) ? $context["images"] : null)) {
// line 83
echo " ";
$context["img_count"] = 2;
// line 84
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["images"]) ? $context["images"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 85
echo " <div class=\"item\">
<a class=\"cloud-zoom-gallery sub-image\" href=\"";
// line 86
echo $this->getAttribute($context["image"], "popup", array());
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\"
rel=\"useZoom: 'product-cloud-zoom', smallImage: '";
// line 87
echo $this->getAttribute($context["image"], "product_image_option", array());
echo "'\" data-pos=\"";
echo (isset($context["img_count"]) ? $context["img_count"] : null);
echo "\">
<img src=\"";
// line 88
echo $this->getAttribute($context["image"], "thumb", array());
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" alt=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" />
</a>
</div>
";
// line 91
$context["img_count"] = ((isset($context["img_count"]) ? $context["img_count"] : null) + 1);
// line 92
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 93
echo " ";
}
// line 94
echo " </div>
";
}
// line 96
echo " ";
} else {
// line 97
echo " <input type=\"hidden\" id=\"check-use-zoom\" value=\"0\" />
";
// line 98
if ((isset($context["use_swatches"]) ? $context["use_swatches"] : null)) {
// line 99
echo " ";
if (((isset($context["thumb"]) ? $context["thumb"] : null) || (isset($context["images"]) ? $context["images"] : null))) {
// line 100
echo " <ul class=\"thumbnails\" id=\"swatches-image-container\">
";
// line 101
if ((isset($context["thumb"]) ? $context["thumb"] : null)) {
// line 102
echo " <li><a class=\"thumbnail swatches-image\" href=\"";
echo (isset($context["popup"]) ? $context["popup"] : null);
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\"><img src=\"";
echo (isset($context["thumb"]) ? $context["thumb"] : null);
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" alt=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" /></a></li>
";
}
// line 104
echo " ";
if ((isset($context["images"]) ? $context["images"] : null)) {
// line 105
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["images"]) ? $context["images"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 106
echo " <li class=\"image-additional\"><a class=\"thumbnail\" href=\"";
echo $this->getAttribute($context["image"], "popup", array());
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\"> <img src=\"";
echo $this->getAttribute($context["image"], "thumb", array());
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" alt=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" /></a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 108
echo " ";
}
// line 109
echo " </ul>
";
// line 110
if ((isset($context["thumb"]) ? $context["thumb"] : null)) {
// line 111
echo " <input type=\"hidden\" id=\"product-image-default\" data-thumb=\"";
echo (isset($context["thumb"]) ? $context["thumb"] : null);
echo "\" data-popup=\"";
echo (isset($context["popup"]) ? $context["popup"] : null);
echo "\" />
";
}
// line 113
echo " ";
if ((isset($context["images"]) ? $context["images"] : null)) {
// line 114
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["images"]) ? $context["images"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 115
echo " <input type=\"hidden\" id=\"product-image-options-";
echo $this->getAttribute($context["image"], "product_option_value_id", array());
echo "\" data-thumb=\"";
echo $this->getAttribute($context["image"], "product_image_option", array());
echo "\" data-popup=\"";
echo $this->getAttribute($context["image"], "popup", array());
echo "\" />
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 117
echo " ";
}
// line 118
echo " ";
}
// line 119
echo " ";
} else {
// line 120
echo " ";
if (((isset($context["thumb"]) ? $context["thumb"] : null) || (isset($context["images"]) ? $context["images"] : null))) {
// line 121
echo " <ul class=\"thumbnails\">
";
// line 122
if ((isset($context["thumb"]) ? $context["thumb"] : null)) {
// line 123
echo " <li><a class=\"thumbnail\" href=\"";
echo (isset($context["popup"]) ? $context["popup"] : null);
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\"><img src=\"";
echo (isset($context["thumb"]) ? $context["thumb"] : null);
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" alt=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" /></a></li>
";
}
// line 125
echo " ";
if ((isset($context["images"]) ? $context["images"] : null)) {
// line 126
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["images"]) ? $context["images"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 127
echo " <li class=\"image-additional\"><a class=\"thumbnail\" href=\"";
echo $this->getAttribute($context["image"], "popup", array());
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\"> <img src=\"";
echo $this->getAttribute($context["image"], "thumb", array());
echo "\" title=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" alt=\"";
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "\" /></a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 129
echo " ";
}
// line 130
echo " </ul>
";
}
// line 132
echo " ";
}
// line 133
echo " ";
}
// line 134
echo "
</div>
<div class=\"col-sm-7 product-info-main\">
<h1 class=\"product-name\">";
// line 137
echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
echo "</h1>\t
\t\t\t\t\t
\t\t\t\t\t";
// line 139
if ((isset($context["review_status"]) ? $context["review_status"] : null)) {
// line 140
echo " <div class=\"ratings\">
\t\t\t\t\t\t\t<div class=\"rating-box\">
\t\t\t\t\t\t\t";
// line 142
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, 5));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 143
echo "\t\t\t\t\t\t\t\t";
if (((isset($context["rating"]) ? $context["rating"] : null) == $context["i"])) {
// line 144
echo "\t\t\t\t\t\t\t\t";
$context["class_r"] = ("rating" . $context["i"]);
// line 145
echo "\t\t\t\t\t\t\t\t<div class=\"";
echo (isset($context["class_r"]) ? $context["class_r"] : null);
echo "\">rating</div>
\t\t\t\t\t\t\t\t";
}
// line 147
echo "\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 148
echo "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t
\t\t\t\t\t\t</div>\t
";
}
// line 152
echo "\t\t\t\t\t<ul class=\"list-unstyled\">
";
// line 153
if ((isset($context["price"]) ? $context["price"] : null)) {
// line 154
echo "\t\t\t\t\t\t\t
\t\t\t\t\t\t\t";
// line 155
if ((isset($context["tax"]) ? $context["tax"] : null)) {
// line 156
echo "\t\t\t\t\t\t\t<li>";
echo (isset($context["text_tax"]) ? $context["text_tax"] : null);
echo " <span class=\"ex-text\">";
echo (isset($context["tax"]) ? $context["tax"] : null);
echo "</span></li>
\t\t\t\t\t\t\t";
}
// line 158
echo "\t\t\t\t\t\t\t";
if ((isset($context["points"]) ? $context["points"] : null)) {
// line 159
echo "\t\t\t\t\t\t\t<li>";
echo (isset($context["text_points"]) ? $context["text_points"] : null);
echo " <span>";
echo (isset($context["points"]) ? $context["points"] : null);
echo "</span></li>
\t\t\t\t\t\t\t";
}
// line 161
echo "\t\t\t\t\t\t\t";
if ((isset($context["discounts"]) ? $context["discounts"] : null)) {
// line 162
echo "\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t <hr>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t";
// line 165
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["discounts"]) ? $context["discounts"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["discount"]) {
// line 166
echo "\t\t\t\t\t\t\t<li>";
echo $this->getAttribute($context["discount"], "quantity", array());
echo (isset($context["text_discount"]) ? $context["text_discount"] : null);
echo $this->getAttribute($context["discount"], "price", array());
echo "</li>
\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['discount'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 168
echo "\t\t\t\t\t\t\t";
}
// line 169
echo "\t\t\t\t\t\t\t
\t\t\t\t\t\t";
}
// line 171
echo "\t\t\t\t\t\t";
if ((isset($context["manufacturer"]) ? $context["manufacturer"] : null)) {
// line 172
echo " <li>";
echo (isset($context["text_manufacturer"]) ? $context["text_manufacturer"] : null);
echo " <a href=\"";
echo (isset($context["manufacturers"]) ? $context["manufacturers"] : null);
echo "\">";
echo (isset($context["manufacturer"]) ? $context["manufacturer"] : null);
echo "</a></li>
";
}
// line 174
echo " <li>";
echo (isset($context["text_model"]) ? $context["text_model"] : null);
echo " <span>";
echo (isset($context["model"]) ? $context["model"] : null);
echo "</span></li>
";
// line 175
if ((isset($context["reward"]) ? $context["reward"] : null)) {
// line 176
echo " <li>";
echo (isset($context["text_reward"]) ? $context["text_reward"] : null);
echo " <span>";
echo (isset($context["reward"]) ? $context["reward"] : null);
echo "</span></li>
";
}
// line 178
echo " <li>";
echo (isset($context["text_stock"]) ? $context["text_stock"] : null);
echo " <span>";
echo (isset($context["stock"]) ? $context["stock"] : null);
echo "</span></li>
\t\t\t\t\t\t
</ul>
<p class=\"short-des\">";
// line 181
echo (isset($context["short_description"]) ? $context["short_description"] : null);
echo "</p>
\t\t\t\t\t";
// line 182
if ((isset($context["price"]) ? $context["price"] : null)) {
// line 183
echo "\t\t\t\t\t\t";
if ( !(isset($context["special"]) ? $context["special"] : null)) {
// line 184
echo "\t\t\t\t\t\t<div class=\"price-box box-regular\">
\t\t\t\t\t\t\t<span class=\"regular-price\">
\t\t\t\t\t\t\t\t<span class=\"price\">";
// line 186
echo (isset($context["price"]) ? $context["price"] : null);
echo "</span>
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
} else {
// line 190
echo "\t\t\t\t\t\t<div class=\"price-box box-special\">
\t\t\t\t\t\t\t<p class=\"special-price\"><span class=\"price\">";
// line 191
echo (isset($context["special"]) ? $context["special"] : null);
echo "</span></p>
\t\t\t\t\t\t\t<p class=\"old-price\"><span class=\"price\">";
// line 192
echo (isset($context["price"]) ? $context["price"] : null);
echo "</span></p>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 195
echo "\t\t\t\t\t";
}
echo "\t
\t\t\t\t\t
<div id=\"product\">
";
// line 199
if ((isset($context["options"]) ? $context["options"] : null)) {
// line 200
echo "
<h3>";
// line 201
echo (isset($context["text_option"]) ? $context["text_option"] : null);
echo "</h3>
";
// line 202
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["options"]) ? $context["options"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
// line 203
echo " ";
if ((isset($context["use_swatches"]) ? $context["use_swatches"] : null)) {
// line 204
echo " ";
if (($this->getAttribute($context["option"], "type", array()) == "select")) {
// line 205
echo " ";
if (($this->getAttribute($context["option"], "option_id", array()) == (isset($context["swatches_option"]) ? $context["swatches_option"] : null))) {
// line 206
echo " <div class=\"form-group";
if ($this->getAttribute($context["option"], "required", array())) {
echo " required ";
}
echo "\">
<label class=\"control-label\" for=\"input-option";
// line 207
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\">";
echo $this->getAttribute($context["option"], "name", array());
echo "</label>
<ul class=\"ul-swatches-colors\" data-product-option=\"";
// line 208
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\" data-type=\"select\">
";
// line 209
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["option"], "product_option_value", array()));
foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
// line 210
echo " <li class=\"swatches-options\">
<a href=\"javascript:void(0);\" onclick=\"swatches.changeOption(\$(this));\" title=\"";
// line 211
echo $this->getAttribute($context["option_value"], "name", array());
echo " ";
if ($this->getAttribute($context["option_value"], "price", array())) {
echo "(";
echo $this->getAttribute($context["option_value"], "price_prefix", array());
echo $this->getAttribute($context["option_value"], "price", array());
echo ")";
}
echo "\"
style=\"";
// line 212
if ($this->getAttribute($context["option_value"], "image", array())) {
echo " width: ";
echo (isset($context["icon_swatches_width"]) ? $context["icon_swatches_width"] : null);
echo "px; height: ";
echo (isset($context["icon_swatches_height"]) ? $context["icon_swatches_height"] : null);
echo "px;
background-image: url('";
// line 213
echo $this->getAttribute($context["option_value"], "image", array());
echo "') ";
}
echo "\"
data-product-option-value-id=\"";
// line 214
echo $this->getAttribute($context["option_value"], "product_option_value_id", array());
echo "\">";
if ( !$this->getAttribute($context["option_value"], "image", array())) {
echo " ";
echo $this->getAttribute($context["option_value"], "name", array());
echo " ";
}
echo "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 217
echo " <li class=\"swatches-info\"></li>
</ul>
<select name=\"option[";
// line 219
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "]\" id=\"input-option";
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\" class=\"form-control option-swatches\">
<option value=\"0\">";
// line 220
echo (isset($context["text_select"]) ? $context["text_select"] : null);
echo "</option>
";
// line 221
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["option"], "product_option_value", array()));
foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
// line 222
echo " <option value=\"";
echo $this->getAttribute($context["option_value"], "product_option_value_id", array());
echo "\">";
echo $this->getAttribute($context["option_value"], "name", array());
echo "
";
// line 223
if ($this->getAttribute($context["option_value"], "price", array())) {
// line 224
echo " (";
echo $this->getAttribute($context["option_value"], "price_prefix", array());
echo $this->getAttribute($context["option_value"], "price", array());
echo ")
";
}
// line 225
echo " </option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 227
echo " </select>
</div>
";
} else {
// line 230
echo " <div class=\"form-group";
if ($this->getAttribute($context["option"], "required", array())) {
echo " required ";
}
echo "\">
<label class=\"control-label\" for=\"input-option";
// line 231
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\">";
echo $this->getAttribute($context["option"], "name", array());
echo "</label>
<select name=\"option[";
// line 232
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "]\" id=\"input-option";
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\" class=\"form-control\">
<option value=\"\">";
// line 233
echo (isset($context["text_select"]) ? $context["text_select"] : null);
echo "</option>
";
// line 234
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["option"], "product_option_value", array()));
foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
// line 235
echo " <option value=\"";
echo $this->getAttribute($context["option_value"], "product_option_value_id", array());
echo "\">";
echo $this->getAttribute($context["option_value"], "name", array());
echo "
";
// line 236
if ($this->getAttribute($context["option_value"], "price", array())) {
// line 237
echo " (";
echo $this->getAttribute($context["option_value"], "price_prefix", array());
echo $this->getAttribute($context["option_value"], "price", array());
echo ")
";
}
// line 238
echo " </option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 240
echo " </select>
</div>
";
}
// line 243
echo " ";
}
// line 244
echo " ";
if (($this->getAttribute($context["option"], "type", array()) == "radio")) {
// line 245
echo " ";
if (($this->getAttribute($context["option"], "option_id", array()) == (isset($context["swatches_option"]) ? $context["swatches_option"] : null))) {
// line 246
echo " <div class=\"form-group";
if ($this->getAttribute($context["option"], "required", array())) {
echo " required ";
}
echo "\">
<label class=\"control-label\">";
// line 247
echo $this->getAttribute($context["option"], "name", array());
echo "</label>
<ul class=\"ul-swatches-colors\" data-product-option=\"";
// line 248
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\" data-type=\"radio\">
";
// line 249
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["option"], "product_option_value", array()));
foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
// line 250
echo " <li class=\"swatches-options\">
<a href=\"javascript:void(0);\" onclick=\"swatches.changeOption(\$(this));\" title=\"";
// line 251
echo $this->getAttribute($context["option_value"], "name", array());
echo " ";
if ($this->getAttribute($context["option_value"], "price", array())) {
echo "(";
echo $this->getAttribute($context["option_value"], "price_prefix", array());
echo $this->getAttribute($context["option_value"], "price", array());
echo ")";
}
echo "\"
style=\"";
// line 252
if ($this->getAttribute($context["option_value"], "image", array())) {
echo " width: ";
echo (isset($context["icon_swatches_width"]) ? $context["icon_swatches_width"] : null);
echo "px; height: ";
echo (isset($context["icon_swatches_height"]) ? $context["icon_swatches_height"] : null);
echo "px;
background-image: url('";
// line 253
echo $this->getAttribute($context["option_value"], "image", array());
echo "') ";
}
echo "\"
data-product-option-value-id=\"";
// line 254
echo $this->getAttribute($context["option_value"], "product_option_value_id", array());
echo "\">";
if ( !$this->getAttribute($context["option_value"], "image", array())) {
echo " ";
echo $this->getAttribute($context["option_value"], "name", array());
echo " ";
}
echo "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 257
echo " <li class=\"swatches-info\"></li>
</ul>
<div class=\"option-swatches\" id=\"input-option";
// line 259
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\"> ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["option"], "product_option_value", array()));
foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
// line 260
echo " <div class=\"radio\">
<label>
<input type=\"radio\" class=\"radio-option-value\" id=\"radio-option-value-";
// line 262
echo $this->getAttribute($context["option_value"], "product_option_value_id", array());
echo "\" name=\"option[";
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "]\" value=\"";
echo $this->getAttribute($context["option_value"], "product_option_value_id", array());
echo "\" />
";
// line 263
if ($this->getAttribute($context["option_value"], "image", array())) {
echo " <img src=\"";
echo $this->getAttribute($context["option_value"], "image", array());
echo "\" alt=\"";
echo $this->getAttribute($context["option_value"], "name", array());
echo " ";
if ($this->getAttribute($context["option_value"], "price", array())) {
echo " ";
echo $this->getAttribute($context["option_value"], "price_prefix", array());
echo " ";
echo $this->getAttribute($context["option_value"], "price", array());
echo " ";
}
echo "\" class=\"img-thumbnail\" /> ";
}
// line 264
echo " ";
echo $this->getAttribute($context["option_value"], "name", array());
echo "
";
// line 265
if ($this->getAttribute($context["option_value"], "price", array())) {
// line 266
echo " (";
echo $this->getAttribute($context["option_value"], "price_prefix", array());
echo $this->getAttribute($context["option_value"], "price", array());
echo ")
";
}
// line 267
echo " </label>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 269
echo " </div>
</div>
";
} else {
// line 272
echo " <div class=\"form-group";
if ($this->getAttribute($context["option"], "required", array())) {
echo " required ";
}
echo "\">
<label class=\"control-label\">";
// line 273
echo $this->getAttribute($context["option"], "name", array());
echo "</label>
<div id=\"input-option";
// line 274
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\"> ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["option"], "product_option_value", array()));
foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
// line 275
echo " <div class=\"radio\">
<label>
<input type=\"radio\" name=\"option[";
// line 277
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "]\" value=\"";
echo $this->getAttribute($context["option_value"], "product_option_value_id", array());
echo "\" />
";
// line 278
if ($this->getAttribute($context["option_value"], "image", array())) {
echo " <img src=\"";
echo $this->getAttribute($context["option_value"], "image", array());
echo "\" alt=\"";
echo $this->getAttribute($context["option_value"], "name", array());
echo " ";
if ($this->getAttribute($context["option_value"], "price", array())) {
echo " ";
echo $this->getAttribute($context["option_value"], "price_prefix", array());
echo " ";
echo $this->getAttribute($context["option_value"], "price", array());
echo " ";
}
echo "\" class=\"img-thumbnail\" /> ";
}
// line 279
echo " ";
echo $this->getAttribute($context["option_value"], "name", array());
echo "
";
// line 280
if ($this->getAttribute($context["option_value"], "price", array())) {
// line 281
echo " (";
echo $this->getAttribute($context["option_value"], "price_prefix", array());
echo $this->getAttribute($context["option_value"], "price", array());
echo ")
";
}
// line 282
echo " </label>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 284
echo " </div>
</div>
";
}
// line 287
echo " ";
}
// line 288
echo " ";
} else {
// line 289
echo " ";
if (($this->getAttribute($context["option"], "type", array()) == "select")) {
// line 290
echo " <div class=\"form-group";
if ($this->getAttribute($context["option"], "required", array())) {
echo " required ";
}
echo "\">
<label class=\"control-label\" for=\"input-option";
// line 291
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\">";
echo $this->getAttribute($context["option"], "name", array());
echo "</label>
<select name=\"option[";
// line 292
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "]\" id=\"input-option";
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\" class=\"form-control\">
<option value=\"\">";
// line 293
echo (isset($context["text_select"]) ? $context["text_select"] : null);
echo "</option>
";
// line 294
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["option"], "product_option_value", array()));
foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
// line 295
echo " <option value=\"";
echo $this->getAttribute($context["option_value"], "product_option_value_id", array());
echo "\">";
echo $this->getAttribute($context["option_value"], "name", array());
echo "
";
// line 296
if ($this->getAttribute($context["option_value"], "price", array())) {
// line 297
echo " (";
echo $this->getAttribute($context["option_value"], "price_prefix", array());
echo $this->getAttribute($context["option_value"], "price", array());
echo ")
";
}
// line 298
echo " </option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 300
echo " </select>
</div>
";
}
// line 303
echo " ";
if (($this->getAttribute($context["option"], "type", array()) == "radio")) {
// line 304
echo " <div class=\"form-group";
if ($this->getAttribute($context["option"], "required", array())) {
echo " required ";
}
echo "\">
<label class=\"control-label\">";
// line 305
echo $this->getAttribute($context["option"], "name", array());
echo "</label>
<div id=\"input-option";
// line 306
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\"> ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["option"], "product_option_value", array()));
foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
// line 307
echo " <div class=\"radio\">
<label>
<input type=\"radio\" name=\"option[";
// line 309
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "]\" value=\"";
echo $this->getAttribute($context["option_value"], "product_option_value_id", array());
echo "\" />
";
// line 310
if ($this->getAttribute($context["option_value"], "image", array())) {
echo " <img src=\"";
echo $this->getAttribute($context["option_value"], "image", array());
echo "\" alt=\"";
echo $this->getAttribute($context["option_value"], "name", array());
echo " ";
if ($this->getAttribute($context["option_value"], "price", array())) {
echo " ";
echo $this->getAttribute($context["option_value"], "price_prefix", array());
echo " ";
echo $this->getAttribute($context["option_value"], "price", array());
echo " ";
}
echo "\" class=\"img-thumbnail\" /> ";
}
// line 311
echo " ";
echo $this->getAttribute($context["option_value"], "name", array());
echo "
";
// line 312
if ($this->getAttribute($context["option_value"], "price", array())) {
// line 313
echo " (";
echo $this->getAttribute($context["option_value"], "price_prefix", array());
echo $this->getAttribute($context["option_value"], "price", array());
echo ")
";
}
// line 314
echo " </label>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 316
echo " </div>
</div>
";
}
// line 319
echo " ";
}
// line 320
echo " ";
if (($this->getAttribute($context["option"], "type", array()) == "checkbox")) {
// line 321
echo " <div class=\"form-group";
if ($this->getAttribute($context["option"], "required", array())) {
echo " required ";
}
echo "\">
<label class=\"control-label\">";
// line 322
echo $this->getAttribute($context["option"], "name", array());
echo "</label>
<div id=\"input-option";
// line 323
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\"> ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["option"], "product_option_value", array()));
foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
// line 324
echo " <div class=\"checkbox\">
<label>
<input type=\"checkbox\" name=\"option[";
// line 326
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "][]\" value=\"";
echo $this->getAttribute($context["option_value"], "product_option_value_id", array());
echo "\" />
";
// line 327
if ($this->getAttribute($context["option_value"], "image", array())) {
echo " <img src=\"";
echo $this->getAttribute($context["option_value"], "image", array());
echo "\" alt=\"";
echo $this->getAttribute($context["option_value"], "name", array());
echo " ";
if ($this->getAttribute($context["option_value"], "price", array())) {
echo " ";
echo $this->getAttribute($context["option_value"], "price_prefix", array());
echo " ";
echo $this->getAttribute($context["option_value"], "price", array());
echo " ";
}
echo "\" class=\"img-thumbnail\" /> ";
}
// line 328
echo " ";
echo $this->getAttribute($context["option_value"], "name", array());
echo "
";
// line 329
if ($this->getAttribute($context["option_value"], "price", array())) {
// line 330
echo " (";
echo $this->getAttribute($context["option_value"], "price_prefix", array());
echo $this->getAttribute($context["option_value"], "price", array());
echo ")
";
}
// line 331
echo " </label>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 333
echo " </div>
</div>
";
}
// line 336
echo " ";
if (($this->getAttribute($context["option"], "type", array()) == "text")) {
// line 337
echo " <div class=\"form-group";
if ($this->getAttribute($context["option"], "required", array())) {
echo " required ";
}
echo "\">
<label class=\"control-label\" for=\"input-option";
// line 338
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\">";
echo $this->getAttribute($context["option"], "name", array());
echo "</label>
<input type=\"text\" name=\"option[";
// line 339
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "]\" value=\"";
echo $this->getAttribute($context["option"], "value", array());
echo "\" placeholder=\"";
echo $this->getAttribute($context["option"], "name", array());
echo "\" id=\"input-option";
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\" class=\"form-control\" />
</div>
";
}
// line 342
echo " ";
if (($this->getAttribute($context["option"], "type", array()) == "textarea")) {
// line 343
echo " <div class=\"form-group";
if ($this->getAttribute($context["option"], "required", array())) {
echo " required ";
}
echo "\">
<label class=\"control-label\" for=\"input-option";
// line 344
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\">";
echo $this->getAttribute($context["option"], "name", array());
echo "</label>
<textarea name=\"option[";
// line 345
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "]\" rows=\"5\" placeholder=\"";
echo $this->getAttribute($context["option"], "name", array());
echo "\" id=\"input-option";
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\" class=\"form-control\">";
echo $this->getAttribute($context["option"], "value", array());
echo "</textarea>
</div>
";
}
// line 348
echo " ";
if (($this->getAttribute($context["option"], "type", array()) == "file")) {
// line 349
echo " <div class=\"form-group";
if ($this->getAttribute($context["option"], "required", array())) {
echo " required ";
}
echo "\">
<label class=\"control-label\">";
// line 350
echo $this->getAttribute($context["option"], "name", array());
echo "</label>
<button type=\"button\" id=\"button-upload";
// line 351
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\" data-loading-text=\"";
echo (isset($context["text_loading"]) ? $context["text_loading"] : null);
echo "\" class=\"btn btn-default btn-block\"><i class=\"fa fa-upload\"></i> ";
echo (isset($context["button_upload"]) ? $context["button_upload"] : null);
echo "</button>
<input type=\"hidden\" name=\"option[";
// line 352
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "]\" value=\"\" id=\"input-option";
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\" />
</div>
";
}
// line 355
echo " ";
if (($this->getAttribute($context["option"], "type", array()) == "date")) {
// line 356
echo " <div class=\"form-group";
if ($this->getAttribute($context["option"], "required", array())) {
echo " required ";
}
echo "\">
<label class=\"control-label\" for=\"input-option";
// line 357
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\">";
echo $this->getAttribute($context["option"], "name", array());
echo "</label>
<div class=\"input-group date\">
<input type=\"text\" name=\"option[";
// line 359
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "]\" value=\"";
echo $this->getAttribute($context["option"], "value", array());
echo "\" data-date-format=\"YYYY-MM-DD\" id=\"input-option";
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\" class=\"form-control\" />
<span class=\"input-group-btn\">
<button class=\"btn btn-default\" type=\"button\"><i class=\"fa fa-calendar\"></i></button>
</span></div>
</div>
";
}
// line 365
echo " ";
if (($this->getAttribute($context["option"], "type", array()) == "datetime")) {
// line 366
echo " <div class=\"form-group";
if ($this->getAttribute($context["option"], "required", array())) {
echo " required ";
}
echo "\">
<label class=\"control-label\" for=\"input-option";
// line 367
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\">";
echo $this->getAttribute($context["option"], "name", array());
echo "</label>
<div class=\"input-group datetime\">
<input type=\"text\" name=\"option[";
// line 369
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "]\" value=\"";
echo $this->getAttribute($context["option"], "value", array());
echo "\" data-date-format=\"YYYY-MM-DD HH:mm\" id=\"input-option";
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\" class=\"form-control\" />
<span class=\"input-group-btn\">
<button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
</span></div>
</div>
";
}
// line 375
echo " ";
if (($this->getAttribute($context["option"], "type", array()) == "time")) {
// line 376
echo " <div class=\"form-group";
if ($this->getAttribute($context["option"], "required", array())) {
echo " required ";
}
echo "\">
<label class=\"control-label\" for=\"input-option";
// line 377
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\">";
echo $this->getAttribute($context["option"], "name", array());
echo "</label>
<div class=\"input-group time\">
<input type=\"text\" name=\"option[";
// line 379
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "]\" value=\"";
echo $this->getAttribute($context["option"], "value", array());
echo "\" data-date-format=\"HH:mm\" id=\"input-option";
echo $this->getAttribute($context["option"], "product_option_id", array());
echo "\" class=\"form-control\" />
<span class=\"input-group-btn\">
<button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
</span></div>
</div>
";
}
// line 385
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 386
echo " ";
}
// line 387
echo " ";
if ((isset($context["recurrings"]) ? $context["recurrings"] : null)) {
// line 388
echo " <hr>
<h3>";
// line 389
echo (isset($context["text_payment_recurring"]) ? $context["text_payment_recurring"] : null);
echo "</h3>
<div class=\"form-group required\">
<select name=\"recurring_id\" class=\"form-control\">
<option value=\"\">";
// line 392
echo (isset($context["text_select"]) ? $context["text_select"] : null);
echo "</option>
";
// line 393
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["recurrings"]) ? $context["recurrings"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["recurring"]) {
// line 394
echo " <option value=\"";
echo $this->getAttribute($context["recurring"], "recurring_id", array());
echo "\">";
echo $this->getAttribute($context["recurring"], "name", array());
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['recurring'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 396
echo " </select>
<div class=\"help-block\" id=\"recurring-description\"></div>
</div>
";
}
// line 400
echo " <div class=\"form-group\">
<label class=\"control-label\" for=\"input-quantity\">";
// line 401
echo (isset($context["entry_qty"]) ? $context["entry_qty"] : null);
echo "</label>
<input type=\"text\" name=\"quantity\" value=\"";
// line 402
echo (isset($context["minimum"]) ? $context["minimum"] : null);
echo "\" size=\"2\" id=\"input-quantity\" class=\"form-control\" />
<input type=\"hidden\" name=\"product_id\" value=\"";
// line 403
echo (isset($context["product_id"]) ? $context["product_id"] : null);
echo "\" />
<button type=\"button\" id=\"button-cart\" data-loading-text=\"";
// line 405
echo (isset($context["text_loading"]) ? $context["text_loading"] : null);
echo "\" class=\"btn button button-cart\" title=\"";
echo (isset($context["button_cart"]) ? $context["button_cart"] : null);
echo "\">";
echo (isset($context["button_cart"]) ? $context["button_cart"] : null);
echo "</button>
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-default button btn-compare\" title=\"";
// line 407
echo (isset($context["button_compare"]) ? $context["button_compare"] : null);
echo "\" onclick=\"compare.add('";
echo (isset($context["product_id"]) ? $context["product_id"] : null);
echo "');\">";
echo (isset($context["button_compare"]) ? $context["button_compare"] : null);
echo "</button>
\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-default button btn-wishlist\" title=\"";
// line 408
echo (isset($context["button_wishlist"]) ? $context["button_wishlist"] : null);
echo "\" onclick=\"wishlist.add('";
echo (isset($context["product_id"]) ? $context["product_id"] : null);
echo "');\">";
echo (isset($context["button_wishlist"]) ? $context["button_wishlist"] : null);
echo "</button>
\t\t\t\t\t </div>
";
// line 410
if (((isset($context["minimum"]) ? $context["minimum"] : null) > 1)) {
// line 411
echo " <div class=\"alert alert-info\"><i class=\"fa fa-info-circle\"></i> ";
echo (isset($context["text_minimum"]) ? $context["text_minimum"] : null);
echo "</div>
";
}
// line 412
echo "</div>
\t\t\t\t\t\t";
// line 413
if ((isset($context["tags"]) ? $context["tags"] : null)) {
// line 414
echo "\t\t\t\t\t\t\t<p>";
echo (isset($context["text_tags"]) ? $context["text_tags"] : null);
echo "
\t\t\t\t\t\t\t\t";
// line 415
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, twig_length_filter($this->env, (isset($context["tags"]) ? $context["tags"] : null))));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 416
echo "\t\t\t\t\t\t\t\t\t";
if (($context["i"] < (twig_length_filter($this->env, (isset($context["tags"]) ? $context["tags"] : null)) - 1))) {
echo " <a href=\"";
echo $this->getAttribute($this->getAttribute((isset($context["tags"]) ? $context["tags"] : null), $context["i"], array(), "array"), "href", array());
echo "\">";
echo $this->getAttribute($this->getAttribute((isset($context["tags"]) ? $context["tags"] : null), $context["i"], array(), "array"), "tag", array());
echo "</a>,
\t\t\t\t\t\t\t\t\t";
} else {
// line 417
echo " <a href=\"";
echo $this->getAttribute($this->getAttribute((isset($context["tags"]) ? $context["tags"] : null), $context["i"], array(), "array"), "href", array());
echo "\">";
echo $this->getAttribute($this->getAttribute((isset($context["tags"]) ? $context["tags"] : null), $context["i"], array(), "array"), "tag", array());
echo "</a> ";
}
// line 418
echo "\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo " </p>
\t\t\t\t\t\t";
}
// line 420
echo "\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t</div>
</div>
\t\t\t<div class=\"product-info-detailed\">
\t\t\t\t<ul class=\"nav nav-tabs\">
\t\t\t\t\t<li class=\"active\"><a href=\"#tab-description\" data-toggle=\"tab\">";
// line 426
echo (isset($context["tab_description"]) ? $context["tab_description"] : null);
echo "</a></li>
\t\t\t\t\t";
// line 427
if ((isset($context["attribute_groups"]) ? $context["attribute_groups"] : null)) {
// line 428
echo "\t\t\t\t\t\t<li><a href=\"#tab-specification\" data-toggle=\"tab\">";
echo (isset($context["tab_attribute"]) ? $context["tab_attribute"] : null);
echo "</a></li>
\t\t\t\t\t";
}
// line 430
echo "\t\t\t\t\t";
if ((isset($context["review_status"]) ? $context["review_status"] : null)) {
// line 431
echo "\t\t\t\t\t\t<li><a href=\"#tab-review\" data-toggle=\"tab\">";
echo (isset($context["tab_review"]) ? $context["tab_review"] : null);
echo "</a></li>
\t\t\t\t\t";
}
// line 433
echo "\t\t\t\t</ul>
\t\t\t\t<div class=\"tab-content\">
\t\t\t\t\t<div class=\"tab-pane active\" id=\"tab-description\">";
// line 435
echo (isset($context["description"]) ? $context["description"] : null);
echo "</div>
\t\t\t\t\t";
// line 436
if ((isset($context["attribute_groups"]) ? $context["attribute_groups"] : null)) {
// line 437
echo "\t\t\t\t\t\t<div class=\"tab-pane\" id=\"tab-specification\">
\t\t\t\t\t\t\t<table class=\"table table-bordered\">
\t\t\t\t\t\t\t\t";
// line 439
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["attribute_groups"]) ? $context["attribute_groups"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["attribute_group"]) {
// line 440
echo "\t\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\"><strong>";
// line 442
echo $this->getAttribute($context["attribute_group"], "name", array());
echo "</strong></td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t";
// line 446
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["attribute_group"], "attribute", array()));
foreach ($context['_seq'] as $context["_key"] => $context["attribute"]) {
// line 447
echo "\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 448
echo $this->getAttribute($context["attribute"], "name", array());
echo "</td>
\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 449
echo $this->getAttribute($context["attribute"], "text", array());
echo "</td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attribute'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 452
echo "\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attribute_group'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 454
echo "\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 457
echo "\t\t\t\t\t";
if ((isset($context["review_status"]) ? $context["review_status"] : null)) {
// line 458
echo "\t\t\t\t\t\t<div class=\"tab-pane\" id=\"tab-review\">
\t\t\t\t\t\t\t<form class=\"form-horizontal\" id=\"form-review\">
\t\t\t\t\t\t\t\t<div id=\"review\"></div>
\t\t\t\t\t\t\t\t<h2>";
// line 461
echo (isset($context["text_write"]) ? $context["text_write"] : null);
echo "</h2>
\t\t\t\t\t\t\t\t";
// line 462
if ((isset($context["review_guest"]) ? $context["review_guest"] : null)) {
// line 463
echo "\t\t\t\t\t\t\t\t\t<div class=\"form-group required\">
\t\t\t\t\t\t\t\t\t\t<div class=\"col-sm-12\">
\t\t\t\t\t\t\t\t\t\t\t<label class=\"control-label\" for=\"input-name\">";
// line 465
echo (isset($context["entry_name"]) ? $context["entry_name"] : null);
echo "</label>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"name\" value=\"";
// line 466
echo (isset($context["customer_name"]) ? $context["customer_name"] : null);
echo "\" id=\"input-name\" class=\"form-control\" />
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"form-group required\">
\t\t\t\t\t\t\t\t\t\t<div class=\"col-sm-12\">
\t\t\t\t\t\t\t\t\t\t\t<label class=\"control-label\" for=\"input-review\">";
// line 471
echo (isset($context["entry_review"]) ? $context["entry_review"] : null);
echo "</label>
\t\t\t\t\t\t\t\t\t\t\t<textarea name=\"text\" rows=\"5\" id=\"input-review\" class=\"form-control\"></textarea>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"help-block\">";
// line 473
echo (isset($context["text_note"]) ? $context["text_note"] : null);
echo "</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"form-group required\">
\t\t\t\t\t\t\t\t\t\t<div class=\"col-sm-12\">
\t\t\t\t\t\t\t\t\t\t\t<label class=\"control-label\">";
// line 478
echo (isset($context["entry_rating"]) ? $context["entry_rating"] : null);
echo "</label>
\t\t\t\t\t\t\t\t\t\t\t ";
// line 479
echo (isset($context["entry_bad"]) ? $context["entry_bad"] : null);
echo "
\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"rating\" value=\"1\" />
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"rating\" value=\"2\" />
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"rating\" value=\"3\" />
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"rating\" value=\"4\" />
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"rating\" value=\"5\" />
\t\t\t\t\t\t\t\t\t\t\t ";
// line 489
echo (isset($context["entry_good"]) ? $context["entry_good"] : null);
echo "</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t";
// line 491
echo (isset($context["captcha"]) ? $context["captcha"] : null);
echo "
\t\t\t\t\t\t\t\t\t<div class=\"buttons clearfix\">
\t\t\t\t\t\t\t\t\t\t<div class=\"pull-right\">
\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" id=\"button-review\" data-loading-text=\"";
// line 494
echo (isset($context["text_loading"]) ? $context["text_loading"] : null);
echo "\" class=\"btn btn-primary\">";
echo (isset($context["button_continue"]) ? $context["button_continue"] : null);
echo "</button>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t";
} else {
// line 498
echo "\t\t\t\t\t\t\t\t\t";
echo (isset($context["text_login"]) ? $context["text_login"] : null);
echo "
\t\t\t\t\t\t\t\t";
}
// line 500
echo "\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 502
echo "
\t\t\t\t</div>
\t\t\t</div>
</div>
</div>
</div>
<script type=\"text/javascript\"><!--
\$('.cloud-zoom, .cloud-zoom-gallery').CloudZoom();
oczoom.initAdditionalImagesOwl();
\$('.product-zoom-image').on('click', function () {
var pos = \$('#light-box-position').val();
oczoom.openLightBox(pos);
});
\$('.sub-image').on('click', function () {
var pos = \$(this).data('pos');
\$('#light-box-position').val(pos);
});
\$('select[name=\\'recurring_id\\'], input[name=\"quantity\"]').change(function(){
\$.ajax({
url: 'index.php?route=product/product/getRecurringDescription',
type: 'post',
data: \$('input[name=\\'product_id\\'], input[name=\\'quantity\\'], select[name=\\'recurring_id\\']'),
dataType: 'json',
beforeSend: function() {
\$('#recurring-description').html('');
},
success: function(json) {
\$('.alert-dismissible, .text-danger').remove();
if (json['success']) {
\$('#recurring-description').html(json['success']);
}
}
});
});
//--></script>
<script type=\"text/javascript\"><!--
\$('#button-cart').on('click', function() {
\$.ajax({
url: 'index.php?route=checkout/cart/add',
type: 'post',
data: \$('#product input[type=\\'text\\'], #product input[type=\\'hidden\\'], #product input[type=\\'radio\\']:checked, #product input[type=\\'checkbox\\']:checked, #product select, #product textarea'),
dataType: 'json',
beforeSend: function() {
\$('#button-cart').button('loading');
},
complete: function() {
\$('#button-cart').button('reset');
},
success: function(json) {
\$('.alert-dismissible, .text-danger').remove();
\$('.form-group').removeClass('has-error');
if (json['error']) {
if (json['error']['option']) {
for (i in json['error']['option']) {
var element = \$('#input-option' + i.replace('_', '-'));
if (element.parent().hasClass('input-group')) {
element.parent().after('<div class=\"text-danger\">' + json['error']['option'][i] + '</div>');
} else {
element.after('<div class=\"text-danger\">' + json['error']['option'][i] + '</div>');
}
}
}
if (json['error']['recurring']) {
\$('select[name=\\'recurring_id\\']').after('<div class=\"text-danger\">' + json['error']['recurring'] + '</div>');
}
// Highlight any found errors
\$('.text-danger').parent().addClass('has-error');
}
if (json['success']) {
\$('#quickview-content').prepend('<div class=\"alert alert-success alert-dismissible\">' + json['success'] + '<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button></div>');
\$('#cart > button').html('<span id=\"cart-total\">' + json['total'] + '</span>');
\t\t\t\t\t\t
\$('#quickview-content').animate({ scrollTop: 0 }, 'slow');
\$('#cart > ul').load('index.php?route=common/cart/info ul li');
}
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
}
});
});
//--></script>
<script type=\"text/javascript\"><!--
\$('.date').datetimepicker({
language: document.cookie.match(new RegExp('language=([^;]+)'))[1],
pickTime: false
});
\$('.datetime').datetimepicker({
language: document.cookie.match(new RegExp('language=([^;]+)'))[1],
pickDate: true,
pickTime: true
});
\$('.time').datetimepicker({
language: document.cookie.match(new RegExp('language=([^;]+)'))[1],
pickDate: false
});
\$('button[id^=\\'button-upload\\']').on('click', function() {
var node = this;
\$('#form-upload').remove();
\$('body').prepend('<form enctype=\"multipart/form-data\" id=\"form-upload\" style=\"display: none;\"><input type=\"file\" name=\"file\" /></form>');
\$('#form-upload input[name=\\'file\\']').trigger('click');
if (typeof timer != 'undefined') {
clearInterval(timer);
}
timer = setInterval(function() {
if (\$('#form-upload input[name=\\'file\\']').val() != '') {
clearInterval(timer);
\$.ajax({
url: 'index.php?route=tool/upload',
type: 'post',
dataType: 'json',
data: new FormData(\$('#form-upload')[0]),
cache: false,
contentType: false,
processData: false,
beforeSend: function() {
\$(node).button('loading');
},
complete: function() {
\$(node).button('reset');
},
success: function(json) {
\$('.text-danger').remove();
if (json['error']) {
\$(node).parent().find('input').after('<div class=\"text-danger\">' + json['error'] + '</div>');
}
if (json['success']) {
alert(json['success']);
\$(node).parent().find('input').val(json['code']);
}
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
}
});
}
}, 500);
});
//--></script>
<script type=\"text/javascript\"><!--
\$('#review').delegate('.pagination a', 'click', function(e) {
e.preventDefault();
\$('#review').fadeOut('slow');
\$('#review').load(this.href);
\$('#review').fadeIn('slow');
});
\$('#review').load('index.php?route=product/product/review&product_id=";
// line 679
echo (isset($context["product_id"]) ? $context["product_id"] : null);
echo "');
\$('#button-review').on('click', function() {
\$.ajax({
url: 'index.php?route=product/product/write&product_id=";
// line 683
echo (isset($context["product_id"]) ? $context["product_id"] : null);
echo "',
type: 'post',
dataType: 'json',
data: \$(\"#form-review\").serialize(),
beforeSend: function() {
\$('#button-review').button('loading');
},
complete: function() {
\$('#button-review').button('reset');
},
success: function(json) {
\$('.alert-dismissible').remove();
if (json['error']) {
\$('#review').after('<div class=\"alert alert-danger alert-dismissible\"><i class=\"fa fa-exclamation-circle\"></i> ' + json['error'] + '</div>');
}
if (json['success']) {
\$('#review').after('<div class=\"alert alert-success alert-dismissible\"><i class=\"fa fa-check-circle\"></i> ' + json['success'] + '</div>');
\$('input[name=\\'name\\']').val('');
\$('textarea[name=\\'text\\']').val('');
\$('input[name=\\'rating\\']:checked').prop('checked', false);
}
}
});
});
\$(document).ready(function() {
\$('.thumbnails').magnificPopup({
type:'image',
delegate: 'a',
gallery: {
enabled: true
}
});
});
function addWishlist(product_id) {
\$.ajax({
url: 'index.php?route=account/wishlist/add',
type: 'post',
data: 'product_id=' + product_id,
dataType: 'json',
success: function(json) {
\$('.alert-dismissible').remove();
if (json['redirect']) {
location = json['redirect'];
}
if (json['success']) {
\$('#quickview-content').prepend('<div class=\"alert alert-success alert-dismissible\"><i class=\"fa fa-check-circle\"></i> ' + json['success'] + ' <button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button></div>');
}
\$('#wishlist-total span').html(json['total']);
\$('#wishlist-total').attr('title', json['total']);
\$('#quickview-content').animate({ scrollTop: 0 }, 'slow');
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
}
});
}
function addCompare(product_id) {
\$.ajax({
url: 'index.php?route=product/compare/add',
type: 'post',
data: 'product_id=' + product_id,
dataType: 'json',
success: function(json) {
\$('.alert-dismissible').remove();
if (json['success']) {
\$('#quickview-content').prepend('<div class=\"alert alert-success alert-dismissible\"><i class=\"fa fa-check-circle\"></i> ' + json['success'] + ' <button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button></div>');
\$('#compare-total').html(json['total']);
\$('#quickview-content').animate({ scrollTop: 0 }, 'slow');
}
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
}
});
}
//--></script>
";
}
public function getTemplateName()
{
return "tt_madison1/template/product/ocquickview/product.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1972 => 683, 1965 => 679, 1786 => 502, 1781 => 500, 1775 => 498, 1766 => 494, 1760 => 491, 1755 => 489, 1742 => 479, 1738 => 478, 1730 => 473, 1725 => 471, 1717 => 466, 1713 => 465, 1709 => 463, 1707 => 462, 1703 => 461, 1698 => 458, 1695 => 457, 1690 => 454, 1683 => 452, 1674 => 449, 1670 => 448, 1667 => 447, 1663 => 446, 1656 => 442, 1652 => 440, 1648 => 439, 1644 => 437, 1642 => 436, 1638 => 435, 1634 => 433, 1628 => 431, 1625 => 430, 1619 => 428, 1617 => 427, 1613 => 426, 1605 => 420, 1596 => 418, 1589 => 417, 1579 => 416, 1575 => 415, 1570 => 414, 1568 => 413, 1565 => 412, 1559 => 411, 1557 => 410, 1548 => 408, 1540 => 407, 1531 => 405, 1526 => 403, 1522 => 402, 1518 => 401, 1515 => 400, 1509 => 396, 1498 => 394, 1494 => 393, 1490 => 392, 1484 => 389, 1481 => 388, 1478 => 387, 1475 => 386, 1469 => 385, 1456 => 379, 1449 => 377, 1442 => 376, 1439 => 375, 1426 => 369, 1419 => 367, 1412 => 366, 1409 => 365, 1396 => 359, 1389 => 357, 1382 => 356, 1379 => 355, 1371 => 352, 1363 => 351, 1359 => 350, 1352 => 349, 1349 => 348, 1337 => 345, 1331 => 344, 1324 => 343, 1321 => 342, 1309 => 339, 1303 => 338, 1296 => 337, 1293 => 336, 1288 => 333, 1280 => 331, 1273 => 330, 1271 => 329, 1266 => 328, 1250 => 327, 1244 => 326, 1240 => 324, 1234 => 323, 1230 => 322, 1223 => 321, 1220 => 320, 1217 => 319, 1212 => 316, 1204 => 314, 1197 => 313, 1195 => 312, 1190 => 311, 1174 => 310, 1168 => 309, 1164 => 307, 1158 => 306, 1154 => 305, 1147 => 304, 1144 => 303, 1139 => 300, 1132 => 298, 1125 => 297, 1123 => 296, 1116 => 295, 1112 => 294, 1108 => 293, 1102 => 292, 1096 => 291, 1089 => 290, 1086 => 289, 1083 => 288, 1080 => 287, 1075 => 284, 1067 => 282, 1060 => 281, 1058 => 280, 1053 => 279, 1037 => 278, 1031 => 277, 1027 => 275, 1021 => 274, 1017 => 273, 1010 => 272, 1005 => 269, 997 => 267, 990 => 266, 988 => 265, 983 => 264, 967 => 263, 959 => 262, 955 => 260, 949 => 259, 945 => 257, 930 => 254, 924 => 253, 916 => 252, 905 => 251, 902 => 250, 898 => 249, 894 => 248, 890 => 247, 883 => 246, 880 => 245, 877 => 244, 874 => 243, 869 => 240, 862 => 238, 855 => 237, 853 => 236, 846 => 235, 842 => 234, 838 => 233, 832 => 232, 826 => 231, 819 => 230, 814 => 227, 807 => 225, 800 => 224, 798 => 223, 791 => 222, 787 => 221, 783 => 220, 777 => 219, 773 => 217, 758 => 214, 752 => 213, 744 => 212, 733 => 211, 730 => 210, 726 => 209, 722 => 208, 716 => 207, 709 => 206, 706 => 205, 703 => 204, 700 => 203, 696 => 202, 692 => 201, 689 => 200, 687 => 199, 679 => 195, 673 => 192, 669 => 191, 666 => 190, 659 => 186, 655 => 184, 652 => 183, 650 => 182, 646 => 181, 637 => 178, 629 => 176, 627 => 175, 620 => 174, 610 => 172, 607 => 171, 603 => 169, 600 => 168, 589 => 166, 585 => 165, 580 => 162, 577 => 161, 569 => 159, 566 => 158, 558 => 156, 556 => 155, 553 => 154, 551 => 153, 548 => 152, 542 => 148, 536 => 147, 530 => 145, 527 => 144, 524 => 143, 520 => 142, 516 => 140, 514 => 139, 509 => 137, 504 => 134, 501 => 133, 498 => 132, 494 => 130, 491 => 129, 474 => 127, 469 => 126, 466 => 125, 452 => 123, 450 => 122, 447 => 121, 444 => 120, 441 => 119, 438 => 118, 435 => 117, 422 => 115, 417 => 114, 414 => 113, 406 => 111, 404 => 110, 401 => 109, 398 => 108, 381 => 106, 376 => 105, 373 => 104, 359 => 102, 357 => 101, 354 => 100, 351 => 99, 349 => 98, 346 => 97, 343 => 96, 339 => 94, 336 => 93, 330 => 92, 328 => 91, 318 => 88, 312 => 87, 306 => 86, 303 => 85, 298 => 84, 295 => 83, 292 => 82, 281 => 78, 277 => 77, 271 => 76, 268 => 75, 266 => 74, 262 => 72, 252 => 69, 242 => 68, 236 => 67, 227 => 66, 219 => 65, 210 => 64, 208 => 63, 205 => 62, 200 => 59, 197 => 58, 191 => 57, 189 => 56, 179 => 53, 173 => 52, 165 => 51, 162 => 50, 157 => 49, 154 => 48, 152 => 47, 149 => 46, 138 => 43, 134 => 42, 128 => 41, 123 => 39, 119 => 37, 109 => 34, 99 => 33, 93 => 32, 84 => 31, 76 => 30, 67 => 29, 65 => 28, 62 => 27, 60 => 26, 56 => 25, 52 => 23, 50 => 22, 43 => 17, 38 => 14, 36 => 13, 31 => 10, 29 => 9, 19 => 1,);
}
}
/* <link href="catalog/view/javascript/jquery/magnific/magnific-popup.css" type="text/css" rel="stylesheet" media="screen" />*/
/* <link href="catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet" media="screen" />*/
/* <script src="catalog/view/javascript/jquery/magnific/jquery.magnific-popup.min.js" type="text/javascript"></script>*/
/* <script src="catalog/view/javascript/jquery/datetimepicker/moment/moment.min.js" type="text/javascript"></script>*/
/* <script src="catalog/view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js" type="text/javascript"></script>*/
/* <script src="catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>*/
/* <link href="catalog/view/theme/tt_madison1/stylesheet/ocquickview/ocquickview.css" type="text/css" rel="stylesheet" media="screen" />*/
/* <script src="catalog/view/javascript/cloudzoom/zoom.js" ></script>*/
/* {% if use_swatches %}*/
/* <link href="catalog/view/theme/tt_madison1/stylesheet/occolorswatches/swatches.css" type="text/css" rel="stylesheet" media="screen" />*/
/* <script src="catalog/view/javascript/occolorswatches/swatches.js" type="text/javascript"></script>*/
/* {% endif %}*/
/* {% if use_zoom %}*/
/* <link href="catalog/view/theme/tt_madison1/stylesheet/oczoom/zoom.css" type="text/css" rel="stylesheet" media="screen" />*/
/* <link href="catalog/view/javascript/cloudzoom/css/cloud-zoom.css" type="text/css" rel="stylesheet" media="screen" />*/
/* {% endif %}*/
/* <div class="container">*/
/* <div class="row">*/
/* <div id="content" class="col-sm-12">*/
/* <div class="row">*/
/* <div class="col-sm-5">*/
/* {% if use_zoom %}*/
/* <input type="hidden" id="check-use-zoom" value="1" />*/
/* <input type="hidden" id="light-box-position" value="1" />*/
/* <input type="hidden" id="product-identify" value="{{ product_id }}" />*/
/* {% if use_swatches %}*/
/* <div class="product-zoom-image">*/
/* {% if thumb %}*/
/* <a href="{{ popup }}" class="cloud-zoom main-image" id="product-cloud-zoom" style="width: {{ thumb_dimension.width }}px; height: {{ thumb_dimension.height }}px;"*/
/* rel="{% if zoom_config.bg_status %} tint:'{{ zoom_config.bg_color }}',tintOpacity:{{ zoom_config.bg_opacity }},{% endif %}*/
/* {% if zoom_config.title_status %} showTitle: true {% else %} showTitle: false {% endif %},*/
/* zoomWidth:{{ thumb_dimension.width }},zoomHeight:{{ thumb_dimension.height }},*/
/* {% if zoom_config.position == 'inside' %} position:'inside', adjustX: 0 {% else %} adjustX: {{ zoom_config.space }} {% endif %}">*/
/* <img src="{{ thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" />*/
/* </a>*/
/* {% endif %}*/
/* </div>*/
/* <div class="additional-images owl-carousel owl-theme">*/
/* <!-- {% if thumb %} -->*/
/* <!-- <div class="item"> -->*/
/* <!-- <a class="cloud-zoom-gallery sub-image" id="product-image-default" href="{{ popup }}" title="{{ heading_title }}" -->*/
/* <!-- rel="useZoom: 'product-cloud-zoom', smallImage: '{{ thumb }}'" data-pos="1"> -->*/
/* <!-- <img src="{{ small_image }}" title="{{ heading_title }}" alt="{{ heading_title }}" /> -->*/
/* <!-- </a> -->*/
/* <!-- </div> -->*/
/* <!-- {% endif %} -->*/
/* {% if images %}*/
/* {% set img_count = 2 %}*/
/* {% for image in images %}*/
/* <div class="item">*/
/* <a class="cloud-zoom-gallery sub-image" id="product-image-options-{{ image.product_option_value_id }}" href="{{ image.popup }}" title="{{ heading_title }}"*/
/* rel="useZoom: 'product-cloud-zoom', smallImage: '{{ image.product_image_option }}'" data-pos="{{ img_count }}">*/
/* <img src="{{ image.thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" />*/
/* </a>*/
/* </div>*/
/* {% set img_count = img_count + 1 %}*/
/* {% endfor %}*/
/* {% endif %}*/
/* </div>*/
/* */
/* {% else %}*/
/* <div class="product-zoom-image">*/
/* {% if thumb %}*/
/* <a href="{{ popup }}" class="cloud-zoom main-image" id="product-cloud-zoom" style="width: {{ thumb_dimension.width }}px; height: {{ thumb_dimension.height }}px;"*/
/* rel="{% if zoom_config.bg_status %} tint:'{{ zoom_config.bg_color }}',tintOpacity:{{ zoom_config.bg_opacity }},{% endif %}*/
/* {% if zoom_config.title_status %} showTitle: true {% else %} showTitle: false {% endif %},*/
/* zoomWidth:{{ thumb_dimension.width }},zoomHeight:{{ thumb_dimension.height }},*/
/* {% if zoom_config.position == 'inside' %} position:'inside', adjustX: 0 {% else %} adjustX: {{ zoom_config.space }} {% endif %}">*/
/* <img src="{{ thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" />*/
/* </a>*/
/* {% endif %}*/
/* </div>*/
/* <div class="additional-images owl-carousel owl-theme">*/
/* {% if thumb %}*/
/* <div class="item">*/
/* <a class="cloud-zoom-gallery sub-image" href="{{ popup }}" title="{{ heading_title }}"*/
/* rel="useZoom: 'product-cloud-zoom', smallImage: '{{ thumb }}'" data-pos="1">*/
/* <img src="{{ small_image }}" title="{{ heading_title }}" alt="{{ heading_title }}" />*/
/* </a>*/
/* </div>*/
/* {% endif %}*/
/* {% if images %}*/
/* {% set img_count = 2 %}*/
/* {% for image in images %}*/
/* <div class="item">*/
/* <a class="cloud-zoom-gallery sub-image" href="{{ image.popup }}" title="{{ heading_title }}"*/
/* rel="useZoom: 'product-cloud-zoom', smallImage: '{{ image.product_image_option }}'" data-pos="{{ img_count }}">*/
/* <img src="{{ image.thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" />*/
/* </a>*/
/* </div>*/
/* {% set img_count = img_count + 1 %}*/
/* {% endfor %}*/
/* {% endif %}*/
/* </div>*/
/* {% endif %}*/
/* {% else %}*/
/* <input type="hidden" id="check-use-zoom" value="0" />*/
/* {% if use_swatches %}*/
/* {% if thumb or images %}*/
/* <ul class="thumbnails" id="swatches-image-container">*/
/* {% if thumb %}*/
/* <li><a class="thumbnail swatches-image" href="{{ popup }}" title="{{ heading_title }}"><img src="{{ thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" /></a></li>*/
/* {% endif %}*/
/* {% if images %}*/
/* {% for image in images %}*/
/* <li class="image-additional"><a class="thumbnail" href="{{ image.popup }}" title="{{ heading_title }}"> <img src="{{ image.thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" /></a></li>*/
/* {% endfor %}*/
/* {% endif %}*/
/* </ul>*/
/* {% if thumb %}*/
/* <input type="hidden" id="product-image-default" data-thumb="{{ thumb }}" data-popup="{{ popup }}" />*/
/* {% endif %}*/
/* {% if images %}*/
/* {% for image in images %}*/
/* <input type="hidden" id="product-image-options-{{ image.product_option_value_id }}" data-thumb="{{ image.product_image_option }}" data-popup="{{ image.popup }}" />*/
/* {% endfor %}*/
/* {% endif %}*/
/* {% endif %}*/
/* {% else %}*/
/* {% if thumb or images %}*/
/* <ul class="thumbnails">*/
/* {% if thumb %}*/
/* <li><a class="thumbnail" href="{{ popup }}" title="{{ heading_title }}"><img src="{{ thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" /></a></li>*/
/* {% endif %}*/
/* {% if images %}*/
/* {% for image in images %}*/
/* <li class="image-additional"><a class="thumbnail" href="{{ image.popup }}" title="{{ heading_title }}"> <img src="{{ image.thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" /></a></li>*/
/* {% endfor %}*/
/* {% endif %}*/
/* </ul>*/
/* {% endif %}*/
/* {% endif %}*/
/* {% endif %}*/
/* */
/* </div>*/
/* <div class="col-sm-7 product-info-main">*/
/* <h1 class="product-name">{{ heading_title }}</h1> */
/* */
/* {% if review_status %}*/
/* <div class="ratings">*/
/* <div class="rating-box">*/
/* {% for i in 0..5 %}*/
/* {% if rating == i %}*/
/* {% set class_r = "rating"~i %}*/
/* <div class="{{ class_r }}">rating</div>*/
/* {% endif %}*/
/* {% endfor %}*/
/* </div>*/
/* */
/* </div> */
/* {% endif %}*/
/* <ul class="list-unstyled">*/
/* {% if price %}*/
/* */
/* {% if tax %}*/
/* <li>{{ text_tax }} <span class="ex-text">{{ tax }}</span></li>*/
/* {% endif %}*/
/* {% if points %}*/
/* <li>{{ text_points }} <span>{{ points }}</span></li>*/
/* {% endif %}*/
/* {% if discounts %}*/
/* <li>*/
/* <hr>*/
/* </li>*/
/* {% for discount in discounts %}*/
/* <li>{{ discount.quantity }}{{ text_discount }}{{ discount.price }}</li>*/
/* {% endfor %}*/
/* {% endif %}*/
/* */
/* {% endif %}*/
/* {% if manufacturer %}*/
/* <li>{{ text_manufacturer }} <a href="{{ manufacturers }}">{{ manufacturer }}</a></li>*/
/* {% endif %}*/
/* <li>{{ text_model }} <span>{{ model }}</span></li>*/
/* {% if reward %}*/
/* <li>{{ text_reward }} <span>{{ reward }}</span></li>*/
/* {% endif %}*/
/* <li>{{ text_stock }} <span>{{ stock }}</span></li>*/
/* */
/* </ul>*/
/* <p class="short-des">{{ short_description }}</p>*/
/* {% if price %}*/
/* {% if not special %}*/
/* <div class="price-box box-regular">*/
/* <span class="regular-price">*/
/* <span class="price">{{ price }}</span>*/
/* </span>*/
/* </div>*/
/* {% else %}*/
/* <div class="price-box box-special">*/
/* <p class="special-price"><span class="price">{{ special }}</span></p>*/
/* <p class="old-price"><span class="price">{{ price }}</span></p>*/
/* </div>*/
/* {% endif %}*/
/* {% endif %} */
/* */
/* */
/* <div id="product">*/
/* {% if options %}*/
/* */
/* <h3>{{ text_option }}</h3>*/
/* {% for option in options %}*/
/* {% if use_swatches %}*/
/* {% if option.type == 'select' %}*/
/* {% if option.option_id == swatches_option %}*/
/* <div class="form-group{% if option.required %} required {% endif %}">*/
/* <label class="control-label" for="input-option{{ option.product_option_id }}">{{ option.name }}</label>*/
/* <ul class="ul-swatches-colors" data-product-option="{{ option.product_option_id }}" data-type="select">*/
/* {% for option_value in option.product_option_value %}*/
/* <li class="swatches-options">*/
/* <a href="javascript:void(0);" onclick="swatches.changeOption($(this));" title="{{ option_value.name }} {% if option_value.price %}({{ option_value.price_prefix }}{{ option_value.price }}){% endif %}"*/
/* style="{% if option_value.image %} width: {{ icon_swatches_width }}px; height: {{ icon_swatches_height }}px;*/
/* background-image: url('{{ option_value.image }}') {% endif %}"*/
/* data-product-option-value-id="{{ option_value.product_option_value_id }}">{% if not option_value.image %} {{ option_value.name }} {% endif %}</a>*/
/* </li>*/
/* {% endfor %}*/
/* <li class="swatches-info"></li>*/
/* </ul>*/
/* <select name="option[{{ option.product_option_id }}]" id="input-option{{ option.product_option_id }}" class="form-control option-swatches">*/
/* <option value="0">{{ text_select }}</option>*/
/* {% for option_value in option.product_option_value %}*/
/* <option value="{{ option_value.product_option_value_id }}">{{ option_value.name }}*/
/* {% if option_value.price %}*/
/* ({{ option_value.price_prefix }}{{ option_value.price }})*/
/* {% endif %} </option>*/
/* {% endfor %}*/
/* </select>*/
/* </div>*/
/* {% else %}*/
/* <div class="form-group{% if option.required %} required {% endif %}">*/
/* <label class="control-label" for="input-option{{ option.product_option_id }}">{{ option.name }}</label>*/
/* <select name="option[{{ option.product_option_id }}]" id="input-option{{ option.product_option_id }}" class="form-control">*/
/* <option value="">{{ text_select }}</option>*/
/* {% for option_value in option.product_option_value %}*/
/* <option value="{{ option_value.product_option_value_id }}">{{ option_value.name }}*/
/* {% if option_value.price %}*/
/* ({{ option_value.price_prefix }}{{ option_value.price }})*/
/* {% endif %} </option>*/
/* {% endfor %}*/
/* </select>*/
/* </div>*/
/* {% endif %}*/
/* {% endif %}*/
/* {% if option.type == 'radio' %}*/
/* {% if option.option_id == swatches_option %}*/
/* <div class="form-group{% if option.required %} required {% endif %}">*/
/* <label class="control-label">{{ option.name }}</label>*/
/* <ul class="ul-swatches-colors" data-product-option="{{ option.product_option_id }}" data-type="radio">*/
/* {% for option_value in option.product_option_value %}*/
/* <li class="swatches-options">*/
/* <a href="javascript:void(0);" onclick="swatches.changeOption($(this));" title="{{ option_value.name }} {% if option_value.price %}({{ option_value.price_prefix }}{{ option_value.price }}){% endif %}"*/
/* style="{% if option_value.image %} width: {{ icon_swatches_width }}px; height: {{ icon_swatches_height }}px;*/
/* background-image: url('{{ option_value.image }}') {% endif %}"*/
/* data-product-option-value-id="{{ option_value.product_option_value_id }}">{% if not option_value.image %} {{ option_value.name }} {% endif %}</a>*/
/* </li>*/
/* {% endfor %}*/
/* <li class="swatches-info"></li>*/
/* </ul>*/
/* <div class="option-swatches" id="input-option{{ option.product_option_id }}"> {% for option_value in option.product_option_value %}*/
/* <div class="radio">*/
/* <label>*/
/* <input type="radio" class="radio-option-value" id="radio-option-value-{{ option_value.product_option_value_id }}" name="option[{{ option.product_option_id }}]" value="{{ option_value.product_option_value_id }}" />*/
/* {% if option_value.image %} <img src="{{ option_value.image }}" alt="{{ option_value.name }} {% if option_value.price %} {{ option_value.price_prefix }} {{ option_value.price }} {% endif %}" class="img-thumbnail" /> {% endif %}*/
/* {{ option_value.name }}*/
/* {% if option_value.price %}*/
/* ({{ option_value.price_prefix }}{{ option_value.price }})*/
/* {% endif %} </label>*/
/* </div>*/
/* {% endfor %} </div>*/
/* </div>*/
/* {% else %}*/
/* <div class="form-group{% if option.required %} required {% endif %}">*/
/* <label class="control-label">{{ option.name }}</label>*/
/* <div id="input-option{{ option.product_option_id }}"> {% for option_value in option.product_option_value %}*/
/* <div class="radio">*/
/* <label>*/
/* <input type="radio" name="option[{{ option.product_option_id }}]" value="{{ option_value.product_option_value_id }}" />*/
/* {% if option_value.image %} <img src="{{ option_value.image }}" alt="{{ option_value.name }} {% if option_value.price %} {{ option_value.price_prefix }} {{ option_value.price }} {% endif %}" class="img-thumbnail" /> {% endif %}*/
/* {{ option_value.name }}*/
/* {% if option_value.price %}*/
/* ({{ option_value.price_prefix }}{{ option_value.price }})*/
/* {% endif %} </label>*/
/* </div>*/
/* {% endfor %} </div>*/
/* </div>*/
/* {% endif %}*/
/* {% endif %}*/
/* {% else %}*/
/* {% if option.type == 'select' %}*/
/* <div class="form-group{% if option.required %} required {% endif %}">*/
/* <label class="control-label" for="input-option{{ option.product_option_id }}">{{ option.name }}</label>*/
/* <select name="option[{{ option.product_option_id }}]" id="input-option{{ option.product_option_id }}" class="form-control">*/
/* <option value="">{{ text_select }}</option>*/
/* {% for option_value in option.product_option_value %}*/
/* <option value="{{ option_value.product_option_value_id }}">{{ option_value.name }}*/
/* {% if option_value.price %}*/
/* ({{ option_value.price_prefix }}{{ option_value.price }})*/
/* {% endif %} </option>*/
/* {% endfor %}*/
/* </select>*/
/* </div>*/
/* {% endif %}*/
/* {% if option.type == 'radio' %}*/
/* <div class="form-group{% if option.required %} required {% endif %}">*/
/* <label class="control-label">{{ option.name }}</label>*/
/* <div id="input-option{{ option.product_option_id }}"> {% for option_value in option.product_option_value %}*/
/* <div class="radio">*/
/* <label>*/
/* <input type="radio" name="option[{{ option.product_option_id }}]" value="{{ option_value.product_option_value_id }}" />*/
/* {% if option_value.image %} <img src="{{ option_value.image }}" alt="{{ option_value.name }} {% if option_value.price %} {{ option_value.price_prefix }} {{ option_value.price }} {% endif %}" class="img-thumbnail" /> {% endif %}*/
/* {{ option_value.name }}*/
/* {% if option_value.price %}*/
/* ({{ option_value.price_prefix }}{{ option_value.price }})*/
/* {% endif %} </label>*/
/* </div>*/
/* {% endfor %} </div>*/
/* </div>*/
/* {% endif %}*/
/* {% endif %}*/
/* {% if option.type == 'checkbox' %}*/
/* <div class="form-group{% if option.required %} required {% endif %}">*/
/* <label class="control-label">{{ option.name }}</label>*/
/* <div id="input-option{{ option.product_option_id }}"> {% for option_value in option.product_option_value %}*/
/* <div class="checkbox">*/
/* <label>*/
/* <input type="checkbox" name="option[{{ option.product_option_id }}][]" value="{{ option_value.product_option_value_id }}" />*/
/* {% if option_value.image %} <img src="{{ option_value.image }}" alt="{{ option_value.name }} {% if option_value.price %} {{ option_value.price_prefix }} {{ option_value.price }} {% endif %}" class="img-thumbnail" /> {% endif %}*/
/* {{ option_value.name }}*/
/* {% if option_value.price %}*/
/* ({{ option_value.price_prefix }}{{ option_value.price }})*/
/* {% endif %} </label>*/
/* </div>*/
/* {% endfor %} </div>*/
/* </div>*/
/* {% endif %}*/
/* {% if option.type == 'text' %}*/
/* <div class="form-group{% if option.required %} required {% endif %}">*/
/* <label class="control-label" for="input-option{{ option.product_option_id }}">{{ option.name }}</label>*/
/* <input type="text" name="option[{{ option.product_option_id }}]" value="{{ option.value }}" placeholder="{{ option.name }}" id="input-option{{ option.product_option_id }}" class="form-control" />*/
/* </div>*/
/* {% endif %}*/
/* {% if option.type == 'textarea' %}*/
/* <div class="form-group{% if option.required %} required {% endif %}">*/
/* <label class="control-label" for="input-option{{ option.product_option_id }}">{{ option.name }}</label>*/
/* <textarea name="option[{{ option.product_option_id }}]" rows="5" placeholder="{{ option.name }}" id="input-option{{ option.product_option_id }}" class="form-control">{{ option.value }}</textarea>*/
/* </div>*/
/* {% endif %}*/
/* {% if option.type == 'file' %}*/
/* <div class="form-group{% if option.required %} required {% endif %}">*/
/* <label class="control-label">{{ option.name }}</label>*/
/* <button type="button" id="button-upload{{ option.product_option_id }}" data-loading-text="{{ text_loading }}" class="btn btn-default btn-block"><i class="fa fa-upload"></i> {{ button_upload }}</button>*/
/* <input type="hidden" name="option[{{ option.product_option_id }}]" value="" id="input-option{{ option.product_option_id }}" />*/
/* </div>*/
/* {% endif %}*/
/* {% if option.type == 'date' %}*/
/* <div class="form-group{% if option.required %} required {% endif %}">*/
/* <label class="control-label" for="input-option{{ option.product_option_id }}">{{ option.name }}</label>*/
/* <div class="input-group date">*/
/* <input type="text" name="option[{{ option.product_option_id }}]" value="{{ option.value }}" data-date-format="YYYY-MM-DD" id="input-option{{ option.product_option_id }}" class="form-control" />*/
/* <span class="input-group-btn">*/
/* <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button>*/
/* </span></div>*/
/* </div>*/
/* {% endif %}*/
/* {% if option.type == 'datetime' %}*/
/* <div class="form-group{% if option.required %} required {% endif %}">*/
/* <label class="control-label" for="input-option{{ option.product_option_id }}">{{ option.name }}</label>*/
/* <div class="input-group datetime">*/
/* <input type="text" name="option[{{ option.product_option_id }}]" value="{{ option.value }}" data-date-format="YYYY-MM-DD HH:mm" id="input-option{{ option.product_option_id }}" class="form-control" />*/
/* <span class="input-group-btn">*/
/* <button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button>*/
/* </span></div>*/
/* </div>*/
/* {% endif %}*/
/* {% if option.type == 'time' %}*/
/* <div class="form-group{% if option.required %} required {% endif %}">*/
/* <label class="control-label" for="input-option{{ option.product_option_id }}">{{ option.name }}</label>*/
/* <div class="input-group time">*/
/* <input type="text" name="option[{{ option.product_option_id }}]" value="{{ option.value }}" data-date-format="HH:mm" id="input-option{{ option.product_option_id }}" class="form-control" />*/
/* <span class="input-group-btn">*/
/* <button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button>*/
/* </span></div>*/
/* </div>*/
/* {% endif %}*/
/* {% endfor %}*/
/* {% endif %}*/
/* {% if recurrings %}*/
/* <hr>*/
/* <h3>{{ text_payment_recurring }}</h3>*/
/* <div class="form-group required">*/
/* <select name="recurring_id" class="form-control">*/
/* <option value="">{{ text_select }}</option>*/
/* {% for recurring in recurrings %}*/
/* <option value="{{ recurring.recurring_id }}">{{ recurring.name }}</option>*/
/* {% endfor %}*/
/* </select>*/
/* <div class="help-block" id="recurring-description"></div>*/
/* </div>*/
/* {% endif %}*/
/* <div class="form-group">*/
/* <label class="control-label" for="input-quantity">{{ entry_qty }}</label>*/
/* <input type="text" name="quantity" value="{{ minimum }}" size="2" id="input-quantity" class="form-control" />*/
/* <input type="hidden" name="product_id" value="{{ product_id }}" />*/
/* */
/* <button type="button" id="button-cart" data-loading-text="{{ text_loading }}" class="btn button button-cart" title="{{ button_cart }}">{{ button_cart }}</button>*/
/* */
/* <button type="button" class="btn btn-default button btn-compare" title="{{ button_compare }}" onclick="compare.add('{{ product_id }}');">{{ button_compare }}</button>*/
/* <button type="button" class="btn btn-default button btn-wishlist" title="{{ button_wishlist }}" onclick="wishlist.add('{{ product_id }}');">{{ button_wishlist }}</button>*/
/* </div>*/
/* {% if minimum > 1 %}*/
/* <div class="alert alert-info"><i class="fa fa-info-circle"></i> {{ text_minimum }}</div>*/
/* {% endif %}</div>*/
/* {% if tags %}*/
/* <p>{{ text_tags }}*/
/* {% for i in 0..tags|length %}*/
/* {% if i < (tags|length - 1) %} <a href="{{ tags[i].href }}">{{ tags[i].tag }}</a>,*/
/* {% else %} <a href="{{ tags[i].href }}">{{ tags[i].tag }}</a> {% endif %}*/
/* {% endfor %} </p>*/
/* {% endif %}*/
/* */
/* */
/* </div>*/
/* </div>*/
/* <div class="product-info-detailed">*/
/* <ul class="nav nav-tabs">*/
/* <li class="active"><a href="#tab-description" data-toggle="tab">{{ tab_description }}</a></li>*/
/* {% if attribute_groups %}*/
/* <li><a href="#tab-specification" data-toggle="tab">{{ tab_attribute }}</a></li>*/
/* {% endif %}*/
/* {% if review_status %}*/
/* <li><a href="#tab-review" data-toggle="tab">{{ tab_review }}</a></li>*/
/* {% endif %}*/
/* </ul>*/
/* <div class="tab-content">*/
/* <div class="tab-pane active" id="tab-description">{{ description }}</div>*/
/* {% if attribute_groups %}*/
/* <div class="tab-pane" id="tab-specification">*/
/* <table class="table table-bordered">*/
/* {% for attribute_group in attribute_groups %}*/
/* <thead>*/
/* <tr>*/
/* <td colspan="2"><strong>{{ attribute_group.name }}</strong></td>*/
/* </tr>*/
/* </thead>*/
/* <tbody>*/
/* {% for attribute in attribute_group.attribute %}*/
/* <tr>*/
/* <td>{{ attribute.name }}</td>*/
/* <td>{{ attribute.text }}</td>*/
/* </tr>*/
/* {% endfor %}*/
/* </tbody>*/
/* {% endfor %}*/
/* </table>*/
/* </div>*/
/* {% endif %}*/
/* {% if review_status %}*/
/* <div class="tab-pane" id="tab-review">*/
/* <form class="form-horizontal" id="form-review">*/
/* <div id="review"></div>*/
/* <h2>{{ text_write }}</h2>*/
/* {% if review_guest %}*/
/* <div class="form-group required">*/
/* <div class="col-sm-12">*/
/* <label class="control-label" for="input-name">{{ entry_name }}</label>*/
/* <input type="text" name="name" value="{{ customer_name }}" id="input-name" class="form-control" />*/
/* </div>*/
/* </div>*/
/* <div class="form-group required">*/
/* <div class="col-sm-12">*/
/* <label class="control-label" for="input-review">{{ entry_review }}</label>*/
/* <textarea name="text" rows="5" id="input-review" class="form-control"></textarea>*/
/* <div class="help-block">{{ text_note }}</div>*/
/* </div>*/
/* </div>*/
/* <div class="form-group required">*/
/* <div class="col-sm-12">*/
/* <label class="control-label">{{ entry_rating }}</label>*/
/* {{ entry_bad }} */
/* <input type="radio" name="rating" value="1" />*/
/* */
/* <input type="radio" name="rating" value="2" />*/
/* */
/* <input type="radio" name="rating" value="3" />*/
/* */
/* <input type="radio" name="rating" value="4" />*/
/* */
/* <input type="radio" name="rating" value="5" />*/
/* {{ entry_good }}</div>*/
/* </div>*/
/* {{ captcha }}*/
/* <div class="buttons clearfix">*/
/* <div class="pull-right">*/
/* <button type="button" id="button-review" data-loading-text="{{ text_loading }}" class="btn btn-primary">{{ button_continue }}</button>*/
/* </div>*/
/* </div>*/
/* {% else %}*/
/* {{ text_login }}*/
/* {% endif %}*/
/* </form>*/
/* </div>*/
/* {% endif %} */
/* </div>*/
/* </div>*/
/* */
/* </div>*/
/* </div>*/
/* </div>*/
/* <script type="text/javascript"><!--*/
/* $('.cloud-zoom, .cloud-zoom-gallery').CloudZoom();*/
/* */
/* oczoom.initAdditionalImagesOwl();*/
/* */
/* $('.product-zoom-image').on('click', function () {*/
/* var pos = $('#light-box-position').val();*/
/* */
/* oczoom.openLightBox(pos);*/
/* });*/
/* */
/* $('.sub-image').on('click', function () {*/
/* var pos = $(this).data('pos');*/
/* $('#light-box-position').val(pos);*/
/* });*/
/* */
/* $('select[name=\'recurring_id\'], input[name="quantity"]').change(function(){*/
/* $.ajax({*/
/* url: 'index.php?route=product/product/getRecurringDescription',*/
/* type: 'post',*/
/* data: $('input[name=\'product_id\'], input[name=\'quantity\'], select[name=\'recurring_id\']'),*/
/* dataType: 'json',*/
/* beforeSend: function() {*/
/* $('#recurring-description').html('');*/
/* },*/
/* success: function(json) {*/
/* $('.alert-dismissible, .text-danger').remove();*/
/* */
/* if (json['success']) {*/
/* $('#recurring-description').html(json['success']);*/
/* }*/
/* }*/
/* });*/
/* });*/
/* //--></script>*/
/* <script type="text/javascript"><!--*/
/* $('#button-cart').on('click', function() {*/
/* $.ajax({*/
/* url: 'index.php?route=checkout/cart/add',*/
/* type: 'post',*/
/* data: $('#product input[type=\'text\'], #product input[type=\'hidden\'], #product input[type=\'radio\']:checked, #product input[type=\'checkbox\']:checked, #product select, #product textarea'),*/
/* dataType: 'json',*/
/* beforeSend: function() {*/
/* $('#button-cart').button('loading');*/
/* },*/
/* complete: function() {*/
/* $('#button-cart').button('reset');*/
/* },*/
/* success: function(json) {*/
/* $('.alert-dismissible, .text-danger').remove();*/
/* $('.form-group').removeClass('has-error');*/
/* */
/* if (json['error']) {*/
/* if (json['error']['option']) {*/
/* for (i in json['error']['option']) {*/
/* var element = $('#input-option' + i.replace('_', '-'));*/
/* */
/* if (element.parent().hasClass('input-group')) {*/
/* element.parent().after('<div class="text-danger">' + json['error']['option'][i] + '</div>');*/
/* } else {*/
/* element.after('<div class="text-danger">' + json['error']['option'][i] + '</div>');*/
/* }*/
/* }*/
/* }*/
/* */
/* if (json['error']['recurring']) {*/
/* $('select[name=\'recurring_id\']').after('<div class="text-danger">' + json['error']['recurring'] + '</div>');*/
/* }*/
/* */
/* // Highlight any found errors*/
/* $('.text-danger').parent().addClass('has-error');*/
/* }*/
/* */
/* if (json['success']) {*/
/* $('#quickview-content').prepend('<div class="alert alert-success alert-dismissible">' + json['success'] + '<button type="button" class="close" data-dismiss="alert">×</button></div>');*/
/* */
/* $('#cart > button').html('<span id="cart-total">' + json['total'] + '</span>');*/
/* */
/* */
/* $('#quickview-content').animate({ scrollTop: 0 }, 'slow');*/
/* */
/* $('#cart > ul').load('index.php?route=common/cart/info ul li');*/
/* }*/
/* },*/
/* error: function(xhr, ajaxOptions, thrownError) {*/
/* alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/* }*/
/* });*/
/* });*/
/* //--></script>*/
/* <script type="text/javascript"><!--*/
/* $('.date').datetimepicker({*/
/* language: document.cookie.match(new RegExp('language=([^;]+)'))[1],*/
/* pickTime: false*/
/* });*/
/* */
/* $('.datetime').datetimepicker({*/
/* language: document.cookie.match(new RegExp('language=([^;]+)'))[1],*/
/* pickDate: true,*/
/* pickTime: true*/
/* });*/
/* */
/* $('.time').datetimepicker({*/
/* language: document.cookie.match(new RegExp('language=([^;]+)'))[1],*/
/* pickDate: false*/
/* });*/
/* */
/* $('button[id^=\'button-upload\']').on('click', function() {*/
/* var node = this;*/
/* */
/* $('#form-upload').remove();*/
/* */
/* $('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input type="file" name="file" /></form>');*/
/* */
/* $('#form-upload input[name=\'file\']').trigger('click');*/
/* */
/* if (typeof timer != 'undefined') {*/
/* clearInterval(timer);*/
/* }*/
/* */
/* timer = setInterval(function() {*/
/* if ($('#form-upload input[name=\'file\']').val() != '') {*/
/* clearInterval(timer);*/
/* */
/* $.ajax({*/
/* url: 'index.php?route=tool/upload',*/
/* type: 'post',*/
/* dataType: 'json',*/
/* data: new FormData($('#form-upload')[0]),*/
/* cache: false,*/
/* contentType: false,*/
/* processData: false,*/
/* beforeSend: function() {*/
/* $(node).button('loading');*/
/* },*/
/* complete: function() {*/
/* $(node).button('reset');*/
/* },*/
/* success: function(json) {*/
/* $('.text-danger').remove();*/
/* */
/* if (json['error']) {*/
/* $(node).parent().find('input').after('<div class="text-danger">' + json['error'] + '</div>');*/
/* }*/
/* */
/* if (json['success']) {*/
/* alert(json['success']);*/
/* */
/* $(node).parent().find('input').val(json['code']);*/
/* }*/
/* },*/
/* error: function(xhr, ajaxOptions, thrownError) {*/
/* alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/* }*/
/* });*/
/* }*/
/* }, 500);*/
/* });*/
/* //--></script>*/
/* <script type="text/javascript"><!--*/
/* $('#review').delegate('.pagination a', 'click', function(e) {*/
/* e.preventDefault();*/
/* */
/* $('#review').fadeOut('slow');*/
/* */
/* $('#review').load(this.href);*/
/* */
/* $('#review').fadeIn('slow');*/
/* });*/
/* */
/* $('#review').load('index.php?route=product/product/review&product_id={{ product_id }}');*/
/* */
/* $('#button-review').on('click', function() {*/
/* $.ajax({*/
/* url: 'index.php?route=product/product/write&product_id={{ product_id }}',*/
/* type: 'post',*/
/* dataType: 'json',*/
/* data: $("#form-review").serialize(),*/
/* beforeSend: function() {*/
/* $('#button-review').button('loading');*/
/* },*/
/* complete: function() {*/
/* $('#button-review').button('reset');*/
/* },*/
/* success: function(json) {*/
/* $('.alert-dismissible').remove();*/
/* */
/* if (json['error']) {*/
/* $('#review').after('<div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> ' + json['error'] + '</div>');*/
/* }*/
/* */
/* if (json['success']) {*/
/* $('#review').after('<div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> ' + json['success'] + '</div>');*/
/* */
/* $('input[name=\'name\']').val('');*/
/* $('textarea[name=\'text\']').val('');*/
/* $('input[name=\'rating\']:checked').prop('checked', false);*/
/* }*/
/* }*/
/* });*/
/* });*/
/* */
/* $(document).ready(function() {*/
/* $('.thumbnails').magnificPopup({*/
/* type:'image',*/
/* delegate: 'a',*/
/* gallery: {*/
/* enabled: true*/
/* }*/
/* });*/
/* });*/
/* */
/* function addWishlist(product_id) {*/
/* $.ajax({*/
/* url: 'index.php?route=account/wishlist/add',*/
/* type: 'post',*/
/* data: 'product_id=' + product_id,*/
/* dataType: 'json',*/
/* success: function(json) {*/
/* $('.alert-dismissible').remove();*/
/* */
/* if (json['redirect']) {*/
/* location = json['redirect'];*/
/* }*/
/* */
/* if (json['success']) {*/
/* $('#quickview-content').prepend('<div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> ' + json['success'] + ' <button type="button" class="close" data-dismiss="alert">×</button></div>');*/
/* }*/
/* */
/* $('#wishlist-total span').html(json['total']);*/
/* $('#wishlist-total').attr('title', json['total']);*/
/* */
/* $('#quickview-content').animate({ scrollTop: 0 }, 'slow');*/
/* },*/
/* error: function(xhr, ajaxOptions, thrownError) {*/
/* alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/* }*/
/* });*/
/* }*/
/* */
/* function addCompare(product_id) {*/
/* $.ajax({*/
/* url: 'index.php?route=product/compare/add',*/
/* type: 'post',*/
/* data: 'product_id=' + product_id,*/
/* dataType: 'json',*/
/* success: function(json) {*/
/* $('.alert-dismissible').remove();*/
/* */
/* if (json['success']) {*/
/* $('#quickview-content').prepend('<div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> ' + json['success'] + ' <button type="button" class="close" data-dismiss="alert">×</button></div>');*/
/* */
/* $('#compare-total').html(json['total']);*/
/* */
/* $('#quickview-content').animate({ scrollTop: 0 }, 'slow');*/
/* }*/
/* },*/
/* error: function(xhr, ajaxOptions, thrownError) {*/
/* alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/* }*/
/* });*/
/* }*/
/* //--></script>*/
/* */