bebeboutik/modules/giftvoucher/giftvoucher-header.tpl

28 lines
839 B
Smarty
Raw Normal View History

2016-01-04 12:49:26 +01:00
<!-- MODULE Gift Voucher -->
2017-03-08 16:10:35 +01:00
<link href="{$base_dir_ssl}modules/giftvoucher/giftvoucher.css" rel="stylesheet" type="text/css" />
2016-01-04 12:49:26 +01:00
<script type="text/javascript">
var giftvoucher_products = "{$GIFT_VOUCHER_PRODUCTS}";
var giftvoucher_mode = "{$GIFT_VOUCHER_MODE}";
var giftvoucher_baseDir = "{$content_dir}";
{literal}
if (giftvoucher_baseDir.indexOf("http") == -1) {
giftvoucher_baseDir = window.location.protocol + '//' + window.location.host;
}
$(document).ready(function(){
$("input[name^='processAddress']").each(function(i) { // multi-steps payment
giftvoucher.checkAll();
});
if ($("#opc_payment_methods").length) { // opc
giftvoucher.checkAll();
};
});
{/literal}
</script>
2017-03-08 16:10:35 +01:00
<script type="text/javascript" src="{$base_dir_ssl}modules/giftvoucher/giftvoucher.js?v=3"></script>
2016-01-04 12:49:26 +01:00
<!-- /MODULE Gift Voucher -->