<?php

/* opencartvip/template/extension/quickcheckout/shipping_method.twig */
class __TwigTemplate_6c65966e9107fd7ba51b5676564d1b4370de0dc13781ea081c30fae25340cce0 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
        if ((isset($context["error_warning"]) ? $context["error_warning"] : null)) {
            echo " 
<div class=\"alert alert-danger\">";
            // line 2
            echo (isset($context["error_warning"]) ? $context["error_warning"] : null);
            echo "</div>
";
        }
        // line 3
        echo " 
";
        // line 4
        if ((isset($context["shipping_methods"]) ? $context["shipping_methods"] : null)) {
            // line 5
            echo "<p>";
            echo (isset($context["text_shipping_method"]) ? $context["text_shipping_method"] : null);
            echo "</p>
";
            // line 6
            if ((isset($context["shipping"]) ? $context["shipping"] : null)) {
                // line 7
                echo "<table class=\"table table-hover table-striped\">
  ";
                // line 8
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable((isset($context["shipping_methods"]) ? $context["shipping_methods"] : null));
                foreach ($context['_seq'] as $context["key"] => $context["shipping_method"]) {
                    // line 9
                    echo "  <tr>
    <td colspan=\"3\">
\t  ";
                    // line 11
                    if ($this->getAttribute((isset($context["shipping_logo"]) ? $context["shipping_logo"] : null), $context["key"], array(), "array")) {
                        echo " 
\t  <img src=\"";
                        // line 12
                        echo $this->getAttribute((isset($context["shipping_logo"]) ? $context["shipping_logo"] : null), $context["key"], array(), "array");
                        echo "\" alt=\"";
                        echo $this->getAttribute($context["shipping_method"], "title", array());
                        echo "\" title=\"";
                        echo $this->getAttribute($context["shipping_method"], "title", array());
                        echo "\" />
\t  ";
                    } else {
                        // line 13
                        echo "   
\t  <b>";
                        // line 14
                        echo $this->getAttribute($context["shipping_method"], "title", array());
                        echo "</b>
\t  ";
                    }
                    // line 15
                    echo " 
\t</td>
  </tr>
  ";
                    // line 18
                    if ( !$this->getAttribute($context["shipping_method"], "error", array())) {
                        echo " 
  ";
                        // line 19
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["shipping_method"], "quote", array()));
                        foreach ($context['_seq'] as $context["_key"] => $context["quote"]) {
                            echo " 
  <tr>
    <td>";
                            // line 21
                            if (($this->getAttribute($context["quote"], "code", array()) == (isset($context["code"]) ? $context["code"] : null))) {
                                echo " 
      <input type=\"radio\" name=\"shipping_method\" value=\"";
                                // line 22
                                echo $this->getAttribute($context["quote"], "code", array());
                                echo "\" id=\"";
                                echo $this->getAttribute($context["quote"], "code", array());
                                echo "\" checked=\"checked\" />
      ";
                            } else {
                                // line 23
                                echo "   
      <input type=\"radio\" name=\"shipping_method\" value=\"";
                                // line 24
                                echo $this->getAttribute($context["quote"], "code", array());
                                echo "\" id=\"";
                                echo $this->getAttribute($context["quote"], "code", array());
                                echo "\" />
      ";
                            }
                            // line 25
                            echo "</td>
    <td><label for=\"";
                            // line 26
                            echo $this->getAttribute($context["quote"], "code", array());
                            echo "\">";
                            echo $this->getAttribute($context["quote"], "title", array());
                            echo "</label></td>
    <td style=\"text-align: right;\"><label for=\"";
                            // line 27
                            echo $this->getAttribute($context["quote"], "code", array());
                            echo "\">";
                            echo $this->getAttribute($context["quote"], "text", array());
                            echo "</label></td>
  </tr>
  ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['quote'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 30
                        echo "  ";
                    } else {
                        echo "   
  <tr>
    <td colspan=\"3\"><div class=\"error\">";
                        // line 32
                        echo $this->getAttribute($context["shipping_method"], "error", array());
                        echo "</div></td>
  </tr>
  ";
                    }
                    // line 35
                    echo "  ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['key'], $context['shipping_method'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 36
                echo "</table>
";
            } else {
                // line 37
                echo "   
  <select class=\"form-control\" name=\"shipping_method\">
    ";
                // line 39
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable((isset($context["shipping_methods"]) ? $context["shipping_methods"] : null));
                foreach ($context['_seq'] as $context["_key"] => $context["shipping_method"]) {
                    echo " 
      ";
                    // line 40
                    if ( !$this->getAttribute($context["shipping_method"], "error", array())) {
                        echo " 
\t\t";
                        // line 41
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["shipping_method"], "quote", array()));
                        foreach ($context['_seq'] as $context["_key"] => $context["quote"]) {
                            echo " 
\t\t  ";
                            // line 42
                            if (($this->getAttribute($context["quote"], "code", array()) == (isset($context["code"]) ? $context["code"] : null))) {
                                echo " 
\t\t    ";
                                // line 43
                                $context["code"] = $this->getAttribute($context["quote"], "code", array());
                                // line 44
                                echo "\t\t\t";
                                $context["exists"] = true;
                                echo " 
\t\t\t<option value=\"";
                                // line 45
                                echo $this->getAttribute($context["quote"], "code", array());
                                echo "\" selected=\"selected\">
\t\t  ";
                            } else {
                                // line 46
                                echo "   
\t\t\t<option value=\"";
                                // line 47
                                echo $this->getAttribute($context["quote"], "code", array());
                                echo "\">
\t\t  ";
                            }
                            // line 48
                            echo " 
\t\t  ";
                            // line 49
                            echo $this->getAttribute($context["quote"], "title", array());
                            echo "&nbsp;&nbsp;(";
                            echo $this->getAttribute($context["quote"], "text", array());
                            echo ")</option>
\t\t";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['quote'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 51
                        echo "\t  ";
                    }
                    // line 52
                    echo "    ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['shipping_method'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 53
                echo "  </select><br />
";
            }
            // line 55
            echo "<br />
";
        }
        // line 57
        if (((isset($context["delivery"]) ? $context["delivery"] : null) && (( !(isset($context["delivery_delivery_time"]) ? $context["delivery_delivery_time"] : null) || ((isset($context["delivery_delivery_time"]) ? $context["delivery_delivery_time"] : null) == "1")) || ((isset($context["delivery_delivery_time"]) ? $context["delivery_delivery_time"] : null) == "3")))) {
            echo " 
<div";
            // line 58
            echo (((isset($context["delivery_required"]) ? $context["delivery_required"] : null)) ? (" class=\"required\"") : (""));
            echo ">
  <label class=\"control-label\"><strong>";
            // line 59
            echo (isset($context["text_delivery"]) ? $context["text_delivery"] : null);
            echo "</strong></label>
  ";
            // line 60
            if (((isset($context["delivery_delivery_time"]) ? $context["delivery_delivery_time"] : null) == "1")) {
                echo " 
  <input type=\"text\" name=\"delivery_date\" value=\"";
                // line 61
                echo (isset($context["delivery_date"]) ? $context["delivery_date"] : null);
                echo "\" class=\"form-control date\" readonly=\"true\" style=\"background:#ffffff;\" />
  ";
            } else {
                // line 62
                echo "  
  <input type=\"text\" name=\"delivery_date\" value=\"";
                // line 63
                echo (isset($context["delivery_date"]) ? $context["delivery_date"] : null);
                echo "\" class=\"form-control date\" readonly=\"true\" style=\"background:#ffffff;\" />
  ";
            }
            // line 64
            echo " 
  ";
            // line 65
            if (((isset($context["delivery_delivery_time"]) ? $context["delivery_delivery_time"] : null) == "3")) {
                echo "<br />
    <select name=\"delivery_time\" class=\"form-control\">";
                // line 66
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable((isset($context["delivery_times"]) ? $context["delivery_times"] : null));
                foreach ($context['_seq'] as $context["_key"] => $context["quickcheckout_delivery_time"]) {
                    // line 67
                    echo "    ";
                    if ($this->getAttribute($context["quickcheckout_delivery_time"], (isset($context["language_id"]) ? $context["language_id"] : null), array(), "array")) {
                        echo " 
      ";
                        // line 68
                        if (((isset($context["delivery_time"]) ? $context["delivery_time"] : null) == $this->getAttribute($context["quickcheckout_delivery_time"], (isset($context["language_id"]) ? $context["language_id"] : null), array(), "array"))) {
                            echo " 
\t  <option value=\"";
                            // line 69
                            echo $this->getAttribute($context["quickcheckout_delivery_time"], (isset($context["language_id"]) ? $context["language_id"] : null), array(), "array");
                            echo "\" selected=\"selected\">";
                            echo $this->getAttribute($context["quickcheckout_delivery_time"], (isset($context["language_id"]) ? $context["language_id"] : null), array(), "array");
                            echo "</option>
\t  ";
                        } else {
                            // line 70
                            echo "   
\t  <option value=\"";
                            // line 71
                            echo $this->getAttribute($context["quickcheckout_delivery_time"], (isset($context["language_id"]) ? $context["language_id"] : null), array(), "array");
                            echo "\">";
                            echo $this->getAttribute($context["quickcheckout_delivery_time"], (isset($context["language_id"]) ? $context["language_id"] : null), array(), "array");
                            echo "</option>
      ";
                        }
                        // line 72
                        echo " 
\t";
                    }
                    // line 73
                    echo " 
    ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['quickcheckout_delivery_time'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 74
                echo "</select>
  ";
            }
            // line 76
            echo "</div>
";
        } elseif ((        // line 77
(isset($context["delivery_delivery_time"]) ? $context["delivery_delivery_time"] : null) && ((isset($context["delivery_delivery_time"]) ? $context["delivery_delivery_time"] : null) == "2"))) {
            echo " 
  <input type=\"text\" name=\"delivery_date\" value=\"\" class=\"hide\" />
  <select name=\"delivery_time\" class=\"hide\"><option value=\"\"></option></select>
  <strong>";
            // line 80
            echo (isset($context["text_estimated_delivery"]) ? $context["text_estimated_delivery"] : null);
            echo "</strong><br />
  ";
            // line 81
            echo (isset($context["estimated_delivery"]) ? $context["estimated_delivery"] : null);
            echo "<br />
  ";
            // line 82
            echo (isset($context["estimated_delivery_time"]) ? $context["estimated_delivery_time"] : null);
            echo " 
";
        } else {
            // line 83
            echo "   
  <input type=\"text\" name=\"delivery_date\" value=\"\" class=\"hide\" />
  <select name=\"delivery_time\" class=\"hide\"><option value=\"\"></option></select>
";
        }
        // line 87
        echo "
<script type=\"text/javascript\"><!--
\$('#shipping-method input[name=\\'shipping_method\\'], #shipping-method select[name=\\'shipping_method\\']').on('change', function() {
\t";
        // line 90
        if ( !(isset($context["logged"]) ? $context["logged"] : null)) {
            echo " 
\t\tif (\$('#payment-address input[name=\\'shipping_address\\']:checked').val()) {
\t\t\tvar post_data = \$('#payment-address input[type=\\'text\\'], #payment-address input[type=\\'checkbox\\']:checked, #payment-address input[type=\\'radio\\']:checked, #payment-address input[type=\\'hidden\\'], #payment-address select, #shipping-method input[type=\\'text\\'], #shipping-method input[type=\\'checkbox\\']:checked, #shipping-method input[type=\\'radio\\']:checked, #shipping-method input[type=\\'hidden\\'], #shipping-method select, #shipping-method textarea');
\t\t} else {
\t\t\tvar post_data = \$('#shipping-address input[type=\\'text\\'], #shipping-address input[type=\\'checkbox\\']:checked, #shipping-address input[type=\\'radio\\']:checked, #shipping-address input[type=\\'hidden\\'], #shipping-address select, #shipping-method input[type=\\'text\\'], #shipping-method input[type=\\'checkbox\\']:checked, #shipping-method input[type=\\'radio\\']:checked, #shipping-method input[type=\\'hidden\\'], #shipping-method select, #shipping-method textarea');
\t\t}

\t\t\$.ajax({
\t\t\turl: 'index.php?route=extension/quickcheckout/shipping_method/set',
\t\t\ttype: 'post',
\t\t\tdata: post_data,
\t\t\tdataType: 'html',
\t\t\tcache: false,
\t\t\tsuccess: function(html) {
\t\t\t\t";
            // line 104
            if ((isset($context["cart"]) ? $context["cart"] : null)) {
                echo " 
\t\t\t\tloadCart();
\t\t\t\t";
            }
            // line 106
            echo " 
\t\t\t\t
\t\t\t\t";
            // line 108
            if ((isset($context["shipping_reload"]) ? $context["shipping_reload"] : null)) {
                echo " 
\t\t\t\treloadPaymentMethod();
\t\t\t\t";
            }
            // line 110
            echo " 
\t\t\t},
\t\t\t";
            // line 112
            if ((isset($context["debug"]) ? $context["debug"] : null)) {
                echo " 
\t\t\terror: function(xhr, ajaxOptions, thrownError) {
\t\t\t\talert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
\t\t\t}
\t\t\t";
            }
            // line 116
            echo " 
\t\t});
\t";
        } else {
            // line 118
            echo "   
\t\tif (\$('#shipping-address input[name=\\'shipping_address\\']:checked').val() == 'new') {
\t\t\tvar url = 'index.php?route=extension/quickcheckout/shipping_method/set';
\t\t\tvar post_data = \$('#shipping-address input[type=\\'text\\'], #shipping-address input[type=\\'checkbox\\']:checked, #shipping-address input[type=\\'radio\\']:checked, #shipping-address input[type=\\'hidden\\'], #shipping-address select, #shipping-method input[type=\\'text\\'], #shipping-method input[type=\\'checkbox\\']:checked, #shipping-method input[type=\\'radio\\']:checked, #shipping-method input[type=\\'hidden\\'], #shipping-method select, #shipping-method textarea');
\t\t} else {
\t\t\tvar url = 'index.php?route=extension/quickcheckout/shipping_method/set&address_id=' + \$('#shipping-address select[name=\\'address_id\\']').val();
\t\t\tvar post_data = \$('#shipping-method input[type=\\'text\\'], #shipping-method input[type=\\'checkbox\\']:checked, #shipping-method input[type=\\'radio\\']:checked, #shipping-method input[type=\\'hidden\\'], #shipping-method select, #shipping-method textarea');
\t\t}
\t\t
\t\t\$.ajax({
\t\t\turl: url,
\t\t\ttype: 'post',
\t\t\tdata: post_data,
\t\t\tdataType: 'html',
\t\t\tcache: false,
\t\t\tsuccess: function(html) {
\t\t\t\t";
            // line 134
            if ((isset($context["cart"]) ? $context["cart"] : null)) {
                echo " 
\t\t\t\tloadCart();
\t\t\t\t";
            }
            // line 136
            echo " 
\t\t\t\t
\t\t\t\t";
            // line 138
            if ((isset($context["shipping_reload"]) ? $context["shipping_reload"] : null)) {
                echo " 
\t\t\t\tif (\$('#payment-address input[name=\\'payment_address\\']').val() == 'new') {
\t\t\t\t\treloadPaymentMethod();
\t\t\t\t} else {
\t\t\t\t\treloadPaymentMethodById(\$('#payment-address select[name=\\'address_id\\']').val());
\t\t\t\t}
\t\t\t\t";
            }
            // line 144
            echo " 
\t\t\t},
\t\t\t";
            // line 146
            if ((isset($context["debug"]) ? $context["debug"] : null)) {
                echo " 
\t\t\terror: function(xhr, ajaxOptions, thrownError) {
\t\t\t\talert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
\t\t\t}
\t\t\t";
            }
            // line 150
            echo " 
\t\t});
\t";
        }
        // line 153
        echo "});

\$(document).ready(function() {
\t\$('#shipping-method input[name=\\'shipping_method\\']:checked, #shipping-method select[name=\\'shipping_method\\']').trigger('change');
});

";
        // line 159
        if (((isset($context["delivery"]) ? $context["delivery"] : null) && ((isset($context["delivery_delivery_time"]) ? $context["delivery_delivery_time"] : null) == "1"))) {
            echo " 
\$(document).ready(function() {
\t\$('input[name=\\'delivery_date\\']').datetimepicker({
\t\tformat: 'YYYY-MM-DD HH:mm',
\t\tminDate: '";
            // line 163
            echo (isset($context["delivery_min"]) ? $context["delivery_min"] : null);
            echo "',
\t\tmaxDate: '";
            // line 164
            echo (isset($context["delivery_max"]) ? $context["delivery_max"] : null);
            echo "',
\t\tdisabledDates: [";
            // line 165
            echo (isset($context["delivery_unavailable"]) ? $context["delivery_unavailable"] : null);
            echo "],
\t\tenabledHours: [";
            // line 166
            echo (isset($context["hours"]) ? $context["hours"] : null);
            echo "],
\t\tignoreReadonly: true,
\t\t";
            // line 168
            if (((isset($context["delivery_days_of_week"]) ? $context["delivery_days_of_week"] : null) != "")) {
                echo " 
\t\tdaysOfWeekDisabled: [";
                // line 169
                echo (isset($context["delivery_days_of_week"]) ? $context["delivery_days_of_week"] : null);
                echo "]
\t\t";
            }
            // line 170
            echo " 
\t});
});
";
        } elseif ((        // line 173
(isset($context["delivery"]) ? $context["delivery"] : null) && (((isset($context["delivery_delivery_time"]) ? $context["delivery_delivery_time"] : null) == "3") || ((isset($context["delivery_delivery_time"]) ? $context["delivery_delivery_time"] : null) == "0")))) {
            echo " 
\t\$('input[name=\\'delivery_date\\']').datetimepicker({
\t\tformat: 'YYYY-MM-DD',
\t\tminDate: '";
            // line 176
            echo (isset($context["delivery_min"]) ? $context["delivery_min"] : null);
            echo "',
\t\tmaxDate: '";
            // line 177
            echo (isset($context["delivery_max"]) ? $context["delivery_max"] : null);
            echo "',
\t\tdisabledDates: [";
            // line 178
            echo (isset($context["delivery_unavailable"]) ? $context["delivery_unavailable"] : null);
            echo "],
\t\tignoreReadonly: true,
\t\t";
            // line 180
            if (((isset($context["delivery_days_of_week"]) ? $context["delivery_days_of_week"] : null) != "")) {
                echo " 
\t\tdaysOfWeekDisabled: [";
                // line 181
                echo (isset($context["delivery_days_of_week"]) ? $context["delivery_days_of_week"] : null);
                echo "]
\t\t";
            }
            // line 182
            echo " 
\t});
";
        }
        // line 185
        echo "//--></script>";
    }

    public function getTemplateName()
    {
        return "opencartvip/template/extension/quickcheckout/shipping_method.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  523 => 185,  518 => 182,  513 => 181,  509 => 180,  504 => 178,  500 => 177,  496 => 176,  490 => 173,  485 => 170,  480 => 169,  476 => 168,  471 => 166,  467 => 165,  463 => 164,  459 => 163,  452 => 159,  444 => 153,  439 => 150,  431 => 146,  427 => 144,  417 => 138,  413 => 136,  407 => 134,  389 => 118,  384 => 116,  376 => 112,  372 => 110,  366 => 108,  362 => 106,  356 => 104,  339 => 90,  334 => 87,  328 => 83,  323 => 82,  319 => 81,  315 => 80,  309 => 77,  306 => 76,  302 => 74,  295 => 73,  291 => 72,  284 => 71,  281 => 70,  274 => 69,  270 => 68,  265 => 67,  261 => 66,  257 => 65,  254 => 64,  249 => 63,  246 => 62,  241 => 61,  237 => 60,  233 => 59,  229 => 58,  225 => 57,  221 => 55,  217 => 53,  211 => 52,  208 => 51,  198 => 49,  195 => 48,  190 => 47,  187 => 46,  182 => 45,  177 => 44,  175 => 43,  171 => 42,  165 => 41,  161 => 40,  155 => 39,  151 => 37,  147 => 36,  141 => 35,  135 => 32,  129 => 30,  118 => 27,  112 => 26,  109 => 25,  102 => 24,  99 => 23,  92 => 22,  88 => 21,  81 => 19,  77 => 18,  72 => 15,  67 => 14,  64 => 13,  55 => 12,  51 => 11,  47 => 9,  43 => 8,  40 => 7,  38 => 6,  33 => 5,  31 => 4,  28 => 3,  23 => 2,  19 => 1,);
    }
}
/* {% if error_warning %} */
/* <div class="alert alert-danger">{{ error_warning }}</div>*/
/* {% endif %} */
/* {% if shipping_methods %}*/
/* <p>{{ text_shipping_method }}</p>*/
/* {% if shipping %}*/
/* <table class="table table-hover table-striped">*/
/*   {% for key,shipping_method in shipping_methods %}*/
/*   <tr>*/
/*     <td colspan="3">*/
/* 	  {% if shipping_logo[key] %} */
/* 	  <img src="{{ shipping_logo[key] }}" alt="{{ shipping_method.title }}" title="{{ shipping_method.title }}" />*/
/* 	  {% else %}   */
/* 	  <b>{{ shipping_method.title }}</b>*/
/* 	  {% endif %} */
/* 	</td>*/
/*   </tr>*/
/*   {% if not shipping_method.error %} */
/*   {% for quote in shipping_method.quote %} */
/*   <tr>*/
/*     <td>{% if quote.code == code %} */
/*       <input type="radio" name="shipping_method" value="{{ quote.code }}" id="{{ quote.code }}" checked="checked" />*/
/*       {% else %}   */
/*       <input type="radio" name="shipping_method" value="{{ quote.code }}" id="{{ quote.code }}" />*/
/*       {% endif %}</td>*/
/*     <td><label for="{{ quote.code }}">{{ quote.title }}</label></td>*/
/*     <td style="text-align: right;"><label for="{{ quote.code }}">{{ quote.text }}</label></td>*/
/*   </tr>*/
/*   {% endfor %}*/
/*   {% else %}   */
/*   <tr>*/
/*     <td colspan="3"><div class="error">{{ shipping_method.error }}</div></td>*/
/*   </tr>*/
/*   {% endif %}*/
/*   {% endfor %}*/
/* </table>*/
/* {% else %}   */
/*   <select class="form-control" name="shipping_method">*/
/*     {% for shipping_method in shipping_methods %} */
/*       {% if not shipping_method.error %} */
/* 		{% for quote in shipping_method.quote %} */
/* 		  {% if quote.code == code %} */
/* 		    {% set code = quote.code %}*/
/* 			{% set exists = true %} */
/* 			<option value="{{ quote.code }}" selected="selected">*/
/* 		  {% else %}   */
/* 			<option value="{{ quote.code }}">*/
/* 		  {% endif %} */
/* 		  {{ quote.title }}&nbsp;&nbsp;({{ quote.text }})</option>*/
/* 		{% endfor %}*/
/* 	  {% endif %}*/
/*     {% endfor %}*/
/*   </select><br />*/
/* {% endif %}*/
/* <br />*/
/* {% endif %}*/
/* {% if delivery and (not delivery_delivery_time or delivery_delivery_time == '1' or delivery_delivery_time == '3') %} */
/* <div{{ delivery_required ? ' class="required"' }}>*/
/*   <label class="control-label"><strong>{{ text_delivery }}</strong></label>*/
/*   {% if delivery_delivery_time == '1' %} */
/*   <input type="text" name="delivery_date" value="{{ delivery_date }}" class="form-control date" readonly="true" style="background:#ffffff;" />*/
/*   {% else %}  */
/*   <input type="text" name="delivery_date" value="{{ delivery_date }}" class="form-control date" readonly="true" style="background:#ffffff;" />*/
/*   {% endif %} */
/*   {% if delivery_delivery_time == '3' %}<br />*/
/*     <select name="delivery_time" class="form-control">{% for quickcheckout_delivery_time in delivery_times %}*/
/*     {% if quickcheckout_delivery_time[language_id] %} */
/*       {% if delivery_time == quickcheckout_delivery_time[language_id] %} */
/* 	  <option value="{{ quickcheckout_delivery_time[language_id] }}" selected="selected">{{ quickcheckout_delivery_time[language_id] }}</option>*/
/* 	  {% else %}   */
/* 	  <option value="{{ quickcheckout_delivery_time[language_id] }}">{{ quickcheckout_delivery_time[language_id] }}</option>*/
/*       {% endif %} */
/* 	{% endif %} */
/*     {% endfor %}</select>*/
/*   {% endif %}*/
/* </div>*/
/* {% elseif delivery_delivery_time and delivery_delivery_time == '2' %} */
/*   <input type="text" name="delivery_date" value="" class="hide" />*/
/*   <select name="delivery_time" class="hide"><option value=""></option></select>*/
/*   <strong>{{ text_estimated_delivery }}</strong><br />*/
/*   {{ estimated_delivery }}<br />*/
/*   {{ estimated_delivery_time }} */
/* {% else %}   */
/*   <input type="text" name="delivery_date" value="" class="hide" />*/
/*   <select name="delivery_time" class="hide"><option value=""></option></select>*/
/* {% endif %}*/
/* */
/* <script type="text/javascript"><!--*/
/* $('#shipping-method input[name=\'shipping_method\'], #shipping-method select[name=\'shipping_method\']').on('change', function() {*/
/* 	{% if not logged %} */
/* 		if ($('#payment-address input[name=\'shipping_address\']:checked').val()) {*/
/* 			var post_data = $('#payment-address input[type=\'text\'], #payment-address input[type=\'checkbox\']:checked, #payment-address input[type=\'radio\']:checked, #payment-address input[type=\'hidden\'], #payment-address select, #shipping-method input[type=\'text\'], #shipping-method input[type=\'checkbox\']:checked, #shipping-method input[type=\'radio\']:checked, #shipping-method input[type=\'hidden\'], #shipping-method select, #shipping-method textarea');*/
/* 		} else {*/
/* 			var post_data = $('#shipping-address input[type=\'text\'], #shipping-address input[type=\'checkbox\']:checked, #shipping-address input[type=\'radio\']:checked, #shipping-address input[type=\'hidden\'], #shipping-address select, #shipping-method input[type=\'text\'], #shipping-method input[type=\'checkbox\']:checked, #shipping-method input[type=\'radio\']:checked, #shipping-method input[type=\'hidden\'], #shipping-method select, #shipping-method textarea');*/
/* 		}*/
/* */
/* 		$.ajax({*/
/* 			url: 'index.php?route=extension/quickcheckout/shipping_method/set',*/
/* 			type: 'post',*/
/* 			data: post_data,*/
/* 			dataType: 'html',*/
/* 			cache: false,*/
/* 			success: function(html) {*/
/* 				{% if cart %} */
/* 				loadCart();*/
/* 				{% endif %} */
/* 				*/
/* 				{% if shipping_reload %} */
/* 				reloadPaymentMethod();*/
/* 				{% endif %} */
/* 			},*/
/* 			{% if debug %} */
/* 			error: function(xhr, ajaxOptions, thrownError) {*/
/* 				alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/* 			}*/
/* 			{% endif %} */
/* 		});*/
/* 	{% else %}   */
/* 		if ($('#shipping-address input[name=\'shipping_address\']:checked').val() == 'new') {*/
/* 			var url = 'index.php?route=extension/quickcheckout/shipping_method/set';*/
/* 			var post_data = $('#shipping-address input[type=\'text\'], #shipping-address input[type=\'checkbox\']:checked, #shipping-address input[type=\'radio\']:checked, #shipping-address input[type=\'hidden\'], #shipping-address select, #shipping-method input[type=\'text\'], #shipping-method input[type=\'checkbox\']:checked, #shipping-method input[type=\'radio\']:checked, #shipping-method input[type=\'hidden\'], #shipping-method select, #shipping-method textarea');*/
/* 		} else {*/
/* 			var url = 'index.php?route=extension/quickcheckout/shipping_method/set&address_id=' + $('#shipping-address select[name=\'address_id\']').val();*/
/* 			var post_data = $('#shipping-method input[type=\'text\'], #shipping-method input[type=\'checkbox\']:checked, #shipping-method input[type=\'radio\']:checked, #shipping-method input[type=\'hidden\'], #shipping-method select, #shipping-method textarea');*/
/* 		}*/
/* 		*/
/* 		$.ajax({*/
/* 			url: url,*/
/* 			type: 'post',*/
/* 			data: post_data,*/
/* 			dataType: 'html',*/
/* 			cache: false,*/
/* 			success: function(html) {*/
/* 				{% if cart %} */
/* 				loadCart();*/
/* 				{% endif %} */
/* 				*/
/* 				{% if shipping_reload %} */
/* 				if ($('#payment-address input[name=\'payment_address\']').val() == 'new') {*/
/* 					reloadPaymentMethod();*/
/* 				} else {*/
/* 					reloadPaymentMethodById($('#payment-address select[name=\'address_id\']').val());*/
/* 				}*/
/* 				{% endif %} */
/* 			},*/
/* 			{% if debug %} */
/* 			error: function(xhr, ajaxOptions, thrownError) {*/
/* 				alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/* 			}*/
/* 			{% endif %} */
/* 		});*/
/* 	{% endif %}*/
/* });*/
/* */
/* $(document).ready(function() {*/
/* 	$('#shipping-method input[name=\'shipping_method\']:checked, #shipping-method select[name=\'shipping_method\']').trigger('change');*/
/* });*/
/* */
/* {% if delivery and delivery_delivery_time == '1' %} */
/* $(document).ready(function() {*/
/* 	$('input[name=\'delivery_date\']').datetimepicker({*/
/* 		format: 'YYYY-MM-DD HH:mm',*/
/* 		minDate: '{{ delivery_min }}',*/
/* 		maxDate: '{{ delivery_max }}',*/
/* 		disabledDates: [{{ delivery_unavailable }}],*/
/* 		enabledHours: [{{ hours }}],*/
/* 		ignoreReadonly: true,*/
/* 		{% if delivery_days_of_week != '' %} */
/* 		daysOfWeekDisabled: [{{ delivery_days_of_week }}]*/
/* 		{% endif %} */
/* 	});*/
/* });*/
/* {% elseif delivery and (delivery_delivery_time == '3' or delivery_delivery_time == '0') %} */
/* 	$('input[name=\'delivery_date\']').datetimepicker({*/
/* 		format: 'YYYY-MM-DD',*/
/* 		minDate: '{{ delivery_min }}',*/
/* 		maxDate: '{{ delivery_max }}',*/
/* 		disabledDates: [{{ delivery_unavailable }}],*/
/* 		ignoreReadonly: true,*/
/* 		{% if delivery_days_of_week != '' %} */
/* 		daysOfWeekDisabled: [{{ delivery_days_of_week }}]*/
/* 		{% endif %} */
/* 	});*/
/* {% endif %}*/
/* //--></script>*/
