99 lines
3.2 KiB
Smarty
99 lines
3.2 KiB
Smarty
{**
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This file is licenced under the Software License Agreement.
|
|
* With the purchase or the installation of the software in your application
|
|
* you accept the licence agreement.
|
|
*
|
|
* You must not modify, adapt or create derivative works of this source code
|
|
*
|
|
* @author PrestaHelp.com
|
|
* @copyright 2019 PrestaHelp
|
|
* @license LICENSE.txt
|
|
*}
|
|
|
|
{if $version < '1.6'}
|
|
<style type="text/css">
|
|
.btn {
|
|
display: inline-block;
|
|
font-weight: 400;
|
|
white-space: nowrap;
|
|
vertical-align: middle;
|
|
cursor: pointer;
|
|
border-radius: 0;
|
|
padding: .5rem 1rem;
|
|
border: 1px solid transparent;
|
|
}
|
|
.btn-success {
|
|
border-color: #4cbb6c;
|
|
background-color: #4cbb6c;
|
|
color: #fff;
|
|
}
|
|
</style>
|
|
{/if}
|
|
|
|
<script type="text/javascript">
|
|
var inpostkey = '{$paczkomaty}';
|
|
var inpostkey_cod = '{$paczkomaty_cod}';
|
|
var inpostkey_week = '{$paczkomaty_week}';
|
|
var inpostkey_week_cod = '{$paczkomaty_week_cod}';
|
|
var courierkey = '{$courier}';
|
|
var courierkey_cod = '{$courier_cod}';
|
|
var alertPoint = "{l s='You must choose a delivery point of inpost' mod='inpostship'}";
|
|
var cart = '{$cart_id}';
|
|
var pointDir = '{$pointDir}';
|
|
var baseDirShop = '{$baseDirShop}';
|
|
var opc = '{if isset($pos)}{$opc}{else}0{/if}';
|
|
var box_pos = '{if isset($pos)}{$box_pos}{else}0{/if}';
|
|
var shop_version = '{$version}';
|
|
var selectedPointInfo = '{$selectedPointInfo}';
|
|
var testMap = '{$testMap}';
|
|
var id = 0;
|
|
var module_img_dir = '{$module_dir_img}';
|
|
var imap = '{$imap}';
|
|
var imgm = '{$imgm}';
|
|
var testMap = 0;
|
|
var weekPrice = '{$weekPrice}';
|
|
var showWeek = '{$showWeek}';
|
|
var isTable = '{$isTable}';
|
|
var checkoutInpost = '{$checkout}';
|
|
var mapBox = '{$map_box}';
|
|
var mapShow = '{$map_show}';
|
|
var pTypes = '{$pTypes}';
|
|
var nps = '{$snp}';
|
|
let imw = '{$imw}',
|
|
geoWidget = '{$geowidget}',
|
|
geoWidgetToken = '{$geowidget_token}',
|
|
sandbox = '{$sandbox}';
|
|
|
|
if (shop_version < '1.7') {
|
|
if ($("#cgv").length) {
|
|
// $("#cgv").unbind('click', inpostCGV).bind('click', inpostCGV);
|
|
} else {
|
|
$("button.standard-checkout").unbind('click', inpostCGV).bind('click', inpostCGV);
|
|
$("button.continue").unbind('click', inpostCGV).bind('click', inpostCGV);
|
|
}
|
|
$('.delivery_option_radio').off('click', '.delivery_option_radio', inpostBindRadio);
|
|
$('.delivery_option_radio').on('click', '.delivery_option_radio', inpostBindRadio);
|
|
initInpost($('.delivery_option_radio' + ":checked"));
|
|
}
|
|
</script>
|
|
{if $geowidget == 4}
|
|
<div class="modal fade" id="inpostshipmodal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title" id="myModalLabel">INPOST</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<b>{l s='You must choose a delivery point of inpost' mod='inpostship'}</b>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">{l s='Close' mod='inpostship'}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/if}
|