first commit

This commit is contained in:
2024-11-11 18:46:54 +01:00
commit a630d17338
25634 changed files with 4923715 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
/**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,29 @@
{**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*}
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="modal-body">
{$cmsContent nofilter}
</div>
</div>
</div>

View File

@@ -0,0 +1,35 @@
{**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*}
<div class="clearfix form-group">
<label class="label-control">{l s='State' mod='wkonepagecheckout'}</label>
<select name="wk_delivery_address_state" class="form-control wk_address_state" data-attr="delivery" >
{foreach $states as $state}
<option
{if isset($delivery_address)}
{if $delivery_address->id_state == $state.id_state}selected="selected"{/if}
{else if isset($cartAddress)}
{if $cartAddress->id_state == $state.id_state}selected="selected"{/if}
{/if}
value="{$state.id_state}">
{$state.name}
</option>
{/foreach}
</select>
</div>

View File

@@ -0,0 +1,35 @@
{**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*}
<div class="clearfix form-group">
<label class="label-control">{l s='State' mod='wkonepagecheckout'}</label>
<select name="wk_invoice_address_state" class="form-control wk_address_state" data-attr="invoice">
{foreach $states as $state}
<option
{if isset($delivery_address)}
{if $delivery_address->id_state == $state.id_state}selected="selected"{/if}
{else if isset($cartAddress)}
{if $cartAddress->id_state == $state.id_state}selected="selected"{/if}
{/if}
value="{$state.id_state}">
{$state.name}
</option>
{/foreach}
</select>
</div>

View File

@@ -0,0 +1,65 @@
{**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*}
<div class="wk-address-block">
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link active" href="#wk-existing-delivery" data-toggle="tab">
{l s='Delivery Address' mod='wkonepagecheckout'}
</a>
</li>
<!--<li class="nav-item wk-disabled-invoice {if !Configuration::get('WK_CHECKOUT_DELIVERY_AS_INVOICE')}disabled{/if}">
<a class="nav-link" href="#wk-existing-invoice" {if !Configuration::get('WK_CHECKOUT_DELIVERY_AS_INVOICE')}data-toggle="tab"{/if}>
{l s='Invoice Address' mod='wkonepagecheckout'}
</a>
</li>-->
</ul>
<div class="tab-content" id="tab-content">
<div class="tab-pane fade in active" id="wk-existing-delivery">
{block name='wk_existing_delivery_address'}
{include file="module:wkonepagecheckout/views/templates/front/content/_partials/wk_existing_delivery_address.tpl"}
{/block}
<!-- Add new delivery address -->
<div class="box {if $customer.addresses|count > 0}wkhide{/if}" id="wk-new-delivery">
{block name='wk_delivery_address'}
{include file="module:wkonepagecheckout/views/templates/front/content/_partials/wk_delivery_address.tpl"}
{/block}
</div>
</div>
<div class="tab-pane fade" id="wk-existing-invoice">
{block name='wk_existing_invoice_address'}
{include file="module:wkonepagecheckout/views/templates/front/content/_partials/wk_existing_invoice_address.tpl"}
{/block}
<!-- Add new invoice address -->
<div class="box {if $customer.addresses|count > 0}wkhide{/if}" id="wk-new-invoice">
{block name='wk_invoice_address'}
{include file="module:wkonepagecheckout/views/templates/front/content/_partials/wk_invoice_address.tpl"}
{/block}
</div>
</div>
</div>
<div id="hook-display-after-carrier">
{hook h='displayAfterCarrier'}
</div>
</div>

View File

@@ -0,0 +1,57 @@
{**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*}
<div id="product-modal">
<div class="modal fade js-product-images-modal" id="wk-product-modal-{$product.id_product}">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
{assign var=imagesCount value=$product.images|count}
<figure>
<img class="js-modal-product-cover-{$product.id_product} product-cover-modal" width="{$product.cover.large.width}" src="{$product.cover.large.url}" alt="{$product.cover.legend}" title="{$product.cover.legend}" itemprop="image">
<figcaption class="image-caption">
{block name='product_description_short'}
<div id="product-description-short" itemprop="description">{$product.description_short nofilter}</div>
{/block}
</figcaption>
</figure>
<aside id="thumbnails" class="thumbnails js-thumbnails text-xs-center">
{block name='product_images'}
<div class="js-modal-mask mask {if $imagesCount <= 5} nomargin {/if}">
<ul class="product-images js-modal-product-images">
{foreach from=$product.images item=image}
<li class="thumb-container">
<img data-id-product="{$product.id_product}" data-image-large-src="{$image.large.url}" class="thumb js-modal-thumb" src="{$image.medium.url}" alt="{$image.legend}" title="{$image.legend}" width="{$image.medium.width}" itemprop="image">
</li>
{/foreach}
</ul>
</div>
{/block}
{if $imagesCount > 5}
<div class="arrows js-modal-arrows">
<i class="material-icons arrow-up js-modal-arrow-up">&#xE5C7;</i>
<i class="material-icons arrow-down js-modal-arrow-down">&#xE5C5;</i>
</div>
{/if}
</aside>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,150 @@
{**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*}
<script src="https://apis.google.com/js/api:client.js"></script>
<div id="wkonepagecheckoutBlock">
<a onclick="return fblogin();" class="btn button button-small" href="javascript:void(0)" id="customFbBtn">
<span><img title="{l s='Connect with Facebook' mod='wkonepagecheckout'}" alt="{l s='Facebook' mod='wkonepagecheckout'}" src="{$icon_path}facebook_icon.png"> <b class="btn_text">{l s='Login' mod='wkonepagecheckout'}</b></span>
</a>
<a id="customGmailBtn" href="javascript:void(0)" class="btn button button-small">
<span><img title="{l s='Connect with Google' mod='wkonepagecheckout'}" alt="{l s='Google' mod='wkonepagecheckout'}" width="30" height="30" src="{$icon_path}google_icon.png"> <b class="btn_text">{l s='Login' mod='wkonepagecheckout'}</b></span>
</a>
</div>
<script type="text/javascript">
var error_msg = '{l s='User cancelled login or did not fully authorize.' js=1 mod='wkonepagecheckout'}';
var firstNameReq = '{l s='First name not found.' js=1 mod='wkonepagecheckout'}';
var lastNameReq = '{l s='last name not found.' js=1 mod='wkonepagecheckout'}';
var emailReq = '{l s='Email not found.' js=1 mod='wkonepagecheckout'}';
// do not write this code on js file because there is facebook library issue on js file
// signin with google start
// Load the google SDK asynchronously
var googleUser = {};
var startApp = function() {
gapi.load('auth2', function(){
// Retrieve the singleton for the GoogleAuth library and set up the client.
auth2 = gapi.auth2.init({
client_id: "{$wk_google_app_client_id}",
cookiepolicy: 'single_host_origin',
// Request scopes in addition to 'profile' and 'email'
});
attachSignin(document.getElementById('customGmailBtn'));
});
};
// this function called when user will allow access their info
function attachSignin(element) {
auth2.attachClickHandler(element, {},
function(googleUser) {
checkAndLogin(googleUser.getBasicProfile().getGivenName(), googleUser.getBasicProfile().getFamilyName(), googleUser.getBasicProfile().getEmail());
}, function(error) {
alert(error_msg);
}
);
}
// signin with google end here
// signin with facebook start here
// Load the facebook SDK asynchronously start
window.fbAsyncInit = function() {
FB.init({
appId : "{$wk_fb_app_id}",
cookie : true,
xfbml : true,
status : true,
version : "v{$wk_fb_app_version}"
});
};
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
// Load the facebook SDK asynchronously end
// when login button clicked this function will called
function fblogin(){
FB.login(function(response) {
if (response.status == 'connected') {
FB.api('/me?fields=first_name,last_name,email', function(response) {
// Validate and call checkAndLogin
var isValidated = validateFacebookResponse(response);
if (isValidated == true) {
checkAndLogin(response.first_name, response.last_name, response.email);
}
});
} else {
alert(error_msg);
}
}, { scope: 'public_profile, email' });
return false;
}
// validate facebook user details
function validateFacebookResponse(response)
{
if (response.first_name == '' || response.first_name === undefined) {
deleteFacebookPermissions();
alert(error_msg);
} else if (response.last_name == '' || response.last_name === undefined) {
deleteFacebookPermissions();
alert(error_msg);
} else if (response.email == '' || response.email === undefined) {
deleteFacebookPermissions();
alert(emailReq);
} else {
return true;
}
return false;
}
// delete facebook app all permissions
function deleteFacebookPermissions()
{
FB.api("/me/permissions", "DELETE");
}
// this function check user by email and id user find out, login that user and if not signup and login
function checkAndLogin(first_name, last_name, email) {
if (first_name && last_name && email) {
$.ajax({
type: "POST",
url: "{$link->getModulelink('wkonepagecheckout', 'processCustomer')}",
async: false,
data: {
first_name: first_name,
last_name: last_name,
email: email
},
success: function(result){
window.location.href = result;
}
});
}
}
startApp();
</script>

View File

@@ -0,0 +1,59 @@
{**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*}
{if is_array($product.customizations) && $product.customizations|count}
<br>
{block name='cart_detailed_product_line_customization'}
{foreach from=$product.customizations item="customization"}
<a href="#" data-toggle="modal" data-target="#product-customizations-modal-{$customization.id_customization}">{l s='Product customization' mod='wkonepagecheckout'}</a>
<div class="modal fade customization-modal" id="product-customizations-modal-{$customization.id_customization}" tabindex="-1" role="dialog" aria-hidden="true">
<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">&times;</span>
</button>
<h4 class="modal-title">{l s='Product customization' mod='wkonepagecheckout'}</h4>
</div>
<div class="modal-body">
{foreach from=$customization.fields item="field"}
<div class="product-customization-line row">
<div class="col-sm-3 col-xs-4 label">
{$field.label}
</div>
<div class="col-sm-9 col-xs-8 value">
{if $field.type == 'text'}
{if (int)$field.id_module}
{$field.text nofilter}
{else}
{$field.text}
{/if}
{elseif $field.type == 'image'}
<img src="{$field.image.small.url}">
{/if}
</div>
</div>
{/foreach}
</div>
</div>
</div>
</div>
{/foreach}
{/block}
{/if}

View File

@@ -0,0 +1,59 @@
{**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*}
{if is_array($product.customizations) && $product.customizations|count}
<br>
{block name='cart_detailed_product_line_customization'}
{foreach from=$product.customizations item="customization"}
<a href="#" data-toggle="modal" data-target="#product-customizations-modal-{$customization.id_customization}">{l s='Product customization' d='Shop.Theme.Catalog'}</a>
<div class="modal fade customization-modal" id="product-customizations-modal-{$customization.id_customization}" tabindex="-1" role="dialog" aria-hidden="true">
<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">&times;</span>
</button>
<h4 class="modal-title">{l s='Product customization' d='Shop.Theme.Catalog'}</h4>
</div>
<div class="modal-body">
{foreach from=$customization.fields item="field"}
<div class="product-customization-line row">
<div class="col-sm-3 col-xs-4 label">
{$field.label}
</div>
<div class="col-sm-9 col-xs-8 value">
{if $field.type == 'text'}
{if (int)$field.id_module}
{$field.text nofilter}
{else}
{$field.text}
{/if}
{elseif $field.type == 'image'}
<img src="{$field.image.small.url}">
{/if}
</div>
</div>
{/foreach}
</div>
</div>
</div>
</div>
{/foreach}
{/block}
{/if}

View File

@@ -0,0 +1,275 @@
{**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*}
<div id="wk-delivery-address-form">
<div class="wk-delivery-address-form">
<form method="POST" action="#" id="wk-delivery-form">
<input type="hidden" name="data-type" value="delivery" id="delivery">
<input type="hidden" name="id-new-delivery-address" value="{if isset($delivery_address)}{$delivery_address->id}{/if}" id="id-new-delivery-address">
{if Configuration::get('WK_CHECKOUT_DELIVERY_ALIAS_SHOW')}
<div class="form-group">
<label class="label-control {if Configuration::get('WK_CHECKOUT_DELIVERY_ALIAS_REQ')}required{/if}">{l s='Address Alias' mod='wkonepagecheckout'}
</label>
<input
maxlength="32"
{if Configuration::get('WK_CHECKOUT_DELIVERY_ALIAS_REQ')}data-required="1"{else}data-required="0"{/if}
data-validate="isGenericName"
type="text"
name="wk_delivery_address_alias"
id="wk_delivery_address_alias"
value="{if isset($delivery_address)}{$delivery_address->alias}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_delivery_address_alias">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_delivery_address_alias">&#xE001;</i>
<span class="help-block wk-error wk_delivery_address_alias"></span>
</div>
{/if}
<div class="form-group">
<label class="label-control required">{l s='First Name' mod='wkonepagecheckout'}</label>
<input
maxlength="32"
data-required="1"
data-validate="isName"
type="text"
name="wk_delivery_first_name"
id="wk_delivery_first_name"
class="form-control wkvalidatefield"
value="{if isset($delivery_address)}{$delivery_address->firstname}{/if}">
<i class="material-icons wk-check-icon wkhide icon_wk_delivery_first_name">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_delivery_first_name">&#xE001;</i>
<span class="help-block wk-error wk_delivery_first_name"></span>
</div>
<div class="form-group">
<label class="label-control required">{l s='Last Name' mod='wkonepagecheckout'}</label>
<input
maxlength="32"
data-required="1"
data-validate="isName"
type="text"
name="wk_delivery_last_name"
id="wk_delivery_last_name"
value="{if isset($delivery_address)}{$delivery_address->lastname}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_delivery_last_name">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_delivery_last_name">&#xE001;</i>
<span class="help-block wk-error wk_delivery_last_name"></span>
</div>
{if Configuration::get('WK_CHECKOUT_DELIVERY_COMPANY_SHOW')}
<div class="form-group">
<label class="label-control {if Configuration::get('WK_CHECKOUT_DELIVERY_COMPANY_REQ')}required{/if}">{l s='Company' mod='wkonepagecheckout'}
</label>
<input
maxlength="64"
{if Configuration::get('WK_CHECKOUT_DELIVERY_COMPANY_REQ')}data-required="1"{else}data-required="0"{/if}
data-validate="isGenericName"
type="text"
name="wk_delivery_company_name"
id="wk_delivery_company_name"
value="{if isset($delivery_address)}{$delivery_address->company}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_delivery_company_name">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_delivery_company_name">&#xE001;</i>
<span class="help-block wk-error wk_delivery_company_name"></span>
</div>
{/if}
{if Configuration::get('WK_CHECKOUT_DELIVERY_VAT_SHOW')}
<div class="form-group">
<label class="label-control text-left {if Configuration::get('WK_CHECKOUT_DELIVERY_VAT_REQ')}required{/if}">{l s='VAT Number' mod='wkonepagecheckout'}<br/>
<small>Informujemy, że w związku z obowiązującymi przepisami, nie będzie możliwości wystawienia faktury do paragonu w późniejszym terminie. Jeżeli dokonują Państwo zakupu na firmę prosimy o uzupełnienie pola NIP"</small>
</label>
<input
{if Configuration::get('WK_CHECKOUT_DELIVERY_VAT_REQ')}data-required="1"{else}data-required="0"{/if}
data-validate="isGenericName"
type="text"
name="wk_delivery_vat_info"
id="wk_delivery_vat_info"
value="{if isset($delivery_address)}{$delivery_address->vat_number}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_delivery_vat_info">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_delivery_vat_info">&#xE001;</i>
<span class="help-block wk-error wk_delivery_vat_info"></span>
</div>
{/if}
<div class="form-group">
<label class="label-control required">{l s='Address' mod='wkonepagecheckout'}</label>
<input
maxlength="128"
data-required="1"
data-validate="isAddress"
type="text"
name="wk_delivery_address_info"
id="wk_delivery_address_info"
value="{if isset($delivery_address)}{$delivery_address->address1}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_delivery_address_info">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_delivery_address_info">&#xE001;</i>
<span class="help-block wk-error wk_delivery_address_info"></span>
</div>
{if Configuration::get('WK_CHECKOUT_DELIVERY_ADDRESS_COMPANY_SHOW')}
<div class="form-group">
<label class="label-control {if Configuration::get('WK_CHECKOUT_DELIVERY_ADDRESS_COMPANY_REQ')}required{/if}">{l s='Address Complement' mod='wkonepagecheckout'}
</label>
<input
maxlength="128"
{if Configuration::get('WK_CHECKOUT_DELIVERY_ADDRESS_COMPANY_REQ')}data-required="1"{else}data-required="0"{/if}
data-validate="isAddress"
type="text"
name="wk_delivery_address_complement"
id="wk_delivery_address_complement"
value="{if isset($delivery_address)}{$delivery_address->address2}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_delivery_address_complement">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_delivery_address_complement">&#xE001;</i>
<span class="help-block wk-error wk_delivery_address_complement"></span>
</div>
{/if}
<div class="form-group">
<label class="label-control required">{l s='Country' mod='wkonepagecheckout'}</label>
<select
data-required="1"
data-attr="delivery"
name="wk_delivery_address_country"
class="form-control wk_address_country">
{if isset($countries)}
{foreach $countries as $country}
<option
{if isset($delivery_address)}
{if $delivery_address->id_country == $country.id_country}selected="selected"{/if}
{else if isset($cartAddress)}
{if $cartAddress->id_country == $country.id_country}selected="selected"{/if}
{else if $defaultCountry == $country.id_country}selected="selected"{/if}
value="{$country.id_country}">{$country.name}</option>
{/foreach}
{/if}
</select>
</div>
<div id="wk-delivery-country-state">
{if isset($states) && $states}
{block name='wk_delivery_state'}
{include file="module:wkonepagecheckout/views/templates/front/content/_partials/wk-delivery-state.tpl"}
{/block}
{/if}
</div>
<div class="form-group">
<label class="label-control required">{l s='City' mod='wkonepagecheckout'}</label>
<input
maxlength="64"
data-required="1"
data-validate="isCityName"
type="text"
name="wk_delivery_address_city"
id="wk_delivery_address_city"
value="{if isset($delivery_address)}{$delivery_address->city}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_delivery_address_city">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_delivery_address_city">&#xE001;</i>
<span class="help-block wk-error wk_delivery_address_city"></span>
</div>
<div class="form-group">
<label class="label-control required">{l s='Zip/Postal Code' mod='wkonepagecheckout'}</label>
<input
maxlength="12"
data-required="1"
data-validate="isPostCode"
type="text"
name="wk_delivery_address_zip"
id="wk_delivery_address_zip"
value="{if isset($delivery_address)}{$delivery_address->postcode}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_delivery_address_zip">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_delivery_address_zip">&#xE001;</i>
<span class="help-block wk-error wk_delivery_address_zip"></span>
</div>
{if Configuration::get('WK_CHECKOUT_DELIVERY_PHONE_SHOW')}
<div class="form-group">
<label class="label-control {if Configuration::get('WK_CHECKOUT_DELIVERY_PHONE_REQ')}required{/if}">{l s='Phone' mod='wkonepagecheckout'}
</label>
<input
maxlength="32"
{if Configuration::get('WK_CHECKOUT_DELIVERY_PHONE_REQ')}data-required="1"{else}data-required="0"{/if}
data-validate="isPhoneNumber"
type="text"
name="wk_delivery_address_phone"
id="wk_delivery_address_phone"
value="{if isset($delivery_address)}{$delivery_address->phone}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_delivery_address_phone">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_delivery_address_phone">&#xE001;</i>
<span class="help-block wk-error wk_delivery_address_phone"></span>
</div>
{/if}
{if Configuration::get('WK_CHECKOUT_DELIVERY_MOBILE_PHONE_SHOW')}
<div class="form-group">
<label class="label-control {if Configuration::get('WK_CHECKOUT_DELIVERY_MOBILE_PHONE_REQ')}required{/if}">{l s='Mobile Phone' mod='wkonepagecheckout'}
</label>
<input
maxlength="32"
{if Configuration::get('WK_CHECKOUT_DELIVERY_MOBILE_PHONE_REQ')}data-required="1"{else}data-required="0"{/if}
data-validate="isPhoneNumber"
type="text"
name="wk_delivery_address_mobile_phone"
id="wk_delivery_address_mobile_phone"
value="{if isset($delivery_address)}{$delivery_address->phone}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_delivery_address_mobile_phone">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_delivery_address_mobile_phone">&#xE001;</i>
<span class="help-block wk-error wk_delivery_address_mobile_phone"></span>
</div>
{/if}
{if Configuration::get('WK_CHECKOUT_DELIVERY_OTHER_SHOW')}
<div class="form-group">
<label class="label-control {if Configuration::get('WK_CHECKOUT_DELIVERY_OTHER_REQ')}required{/if}">{l s='Other Information' mod='wkonepagecheckout'}
</label>
<input
maxlength="300"
{if Configuration::get('WK_CHECKOUT_DELIVERY_OTHER_REQ')}data-required="1"{else}data-required="0"{/if}
data-validate="isMessage"
type="text"
name="wk_delivery_address_other_information"
id="wk_delivery_address_other_information"
value="{if isset($delivery_address)}{$delivery_address->phone}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_delivery_address_other_information">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_delivery_address_other_information">&#xE001;</i>
<span class="help-block wk-error wk_delivery_address_other_information"></span>
</div>
{/if}
<div class="form-group" style="text-align: right;">
{hook h='displayGDPRConsent' mod='psgdpr' id_module=$id_module}
<input type="submit" data-type="delivery" class="btn btn-primary wk-save-address" value="{l s='Save' mod='wkonepagecheckout'}">
<div class="wkhide wk_text-light wkbotton" id="wk-msg-new-delivery"></div>
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,74 @@
{**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*}
<div class="form-group clearfix" style="display: none;">
<div class="col-md-12">
<span class="custom-checkbox">
<label>
<input type="checkbox" name="wk-different-invoice" value="1" class="form-control" {if Configuration::get('WK_CHECKOUT_DELIVERY_AS_INVOICE')}checked="checked"{/if}>
<span><i class="material-icons rtl-no-flip checkbox-checked"></i></span>
<span>{l s='Use this address as invoice address' mod='wkonepagecheckout'}</span>
</label>
</span>
</div>
</div>
{if isset($customer.addresses) && $customer.addresses|count > 0}
<div class="form-group clearfix wk-align-center">
<label class="col-md-1 col-sm-1 col-xs-1">
<span class="custom-radio">
<input type="radio" name="wk-delivery-address" value="1" checked="checked">
<span></span>
</span>
</label>
<div class="col-md-10 col-sm-10 col-xs-10">
<select class="form-control" id="wk-existing-delivery-address">
{foreach $customer.addresses as $addr}
<option
{if isset($cart.id_address_delivery)}
{if $cart.id_address_delivery == $addr.id}selected="selected"{/if}
{/if}
value="{$addr.id}">{$addr.alias}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $customer.addresses|count > 0}
<div class="form-group wk-delivery-address-div clearfix">
<label class="col-md-1 col-sm-1 col-xs-1"></label>
<div class="col-md-10 col-sm-10 col-xs-10">
<address class="wk-diff-address wk-delivery-address-card">{$customer.addresses.{$cart.id_address_delivery}.formatted nofilter}</address>
</div>
</div>
{/if}
{if $customer.addresses|count > 0}
<div class="form-group clearfix wk-align-center">
<label class="col-md-1 col-sm-1 col-xs-1">
<span class="custom-radio">
<input type="radio" name="wk-delivery-address" value="2" data-attr="delivery" >
<span></span>
</span>
</label>
<div class="col-md-10 col-sm-10 col-xs-10">
<div class="wk-diff-address">{l s='Add new delivery address' mod='wkonepagecheckout'}</div>
</div>
</div>
{/if}

View File

@@ -0,0 +1,63 @@
{**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*}
{if isset($customer.addresses) && $customer.addresses|count > 0}
<div class="form-group clearfix wk-align-center">
<label class="col-md-1 col-xs-1 col-sm-1">
<span class="custom-radio">
<input type="radio" name="wk-invoice-address" value="1" checked="checked">
<span></span>
</span>
</label>
<div class="col-md-10 col-sm-10 col-xs-10">
<select class="form-control" id="wk-existing-invoice-address">
{foreach $customer.addresses as $addr}
<option
{if isset($cart.id_address_delivery)}
{if $cart.id_address_invoice == $addr.id}selected="selected"{/if}
{/if}
value="{$addr.id}">{$addr.alias}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $customer.addresses|count > 0}
<div class="form-group clearfix">
<label class="col-md-1 col-xs-1 col-sm-1"></label>
<div class="col-md-10 col-sm-10 col-xs-10">
<address class="wk-diff-address wk-invoice-address-card">{$customer.addresses.{$cart.id_address_invoice}.formatted nofilter}</address>
</div>
</div>
{/if}
{if $customer.addresses|count > 0}
<div class="form-group clearfix wk-align-center">
<label class="col-md-1 col-xs-1 col-sm-1">
<span class="custom-radio">
<input type="radio" name="wk-invoice-address" value="2">
<span></span>
</span>
</label>
<div class="col-md-10 col-sm-10 col-xs-10">
<div class="wk-diff-address">{l s='Add new invoice address' mod='wkonepagecheckout'}</div>
</div>
</div>
{/if}

View File

@@ -0,0 +1,274 @@
{**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*}
<div id="wk-invoice-address-form">
<div class="wk-invoice-address-form wk_div_container">
<form method="POST" action="#" id="wk-invoice-form">
<input type="hidden" name="data-type" value="invoice" id="invoice">
<input type="hidden" name="id-new-invoice-address" value="{if isset($delivery_address)}{$delivery_address->id}{/if}" id="id-new-invoice-address">
{if Configuration::get('WK_CHECKOUT_INVOICE_ALIAS_SHOW')}
<div class="form-group">
<label class="label-control {if Configuration::get('WK_CHECKOUT_INVOICE_ALIAS_REQ')}required{/if}">{l s='Address Alias' mod='wkonepagecheckout'}
</label>
<input
maxlength="32"
{if Configuration::get('WK_CHECKOUT_INVOICE_ALIAS_REQ')}data-required="1"{else}data-required="0"{/if}
data-validate="isGenericName"
type="text"
name="wk_invoice_address_alias"
id="wk_invoice_address_alias"
value="{if isset($delivery_address)}{$delivery_address->alias}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_wk_invoice_address_alias">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_wk_invoice_address_alias">&#xE001;</i>
<span class="help-block wk-error wk_invoice_address_alias"></span>
</div>
{/if}
<div class="form-group">
<label class="label-control required">{l s='First Name' mod='wkonepagecheckout'}</label>
<input
maxlength="32"
data-required="1"
data-validate="isName"
type="text"
name="wk_invoice_first_name"
id="wk_invoice_first_name"
class="form-control wkvalidatefield"
value="{if isset($delivery_address)}{$delivery_address->firstname}{/if}">
<i class="material-icons wk-check-icon wkhide icon_wk_invoice_first_name">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_invoice_first_name">&#xE001;</i>
<span class="help-block wk-error wk_invoice_first_name"></span>
</div>
<div class="form-group">
<label class="label-control required">{l s='Last Name' mod='wkonepagecheckout'}</label>
<input
maxlength="32"
data-required="1"
data-validate="isName"
type="text"
name="wk_invoice_last_name"
id="wk_invoice_last_name"
value="{if isset($delivery_address)}{$delivery_address->lastname}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_invoice_last_name">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_invoice_last_name">&#xE001;</i>
<span class="help-block wk-error wk_invoice_last_name"></span>
</div>
{if Configuration::get('WK_CHECKOUT_INVOICE_COMPANY_SHOW')}
<div class="form-group">
<label class="label-control {if Configuration::get('WK_CHECKOUT_INVOICE_COMPANY_REQ')}required{/if}">{l s='Company' mod='wkonepagecheckout'}
</label>
<input
maxlength="64"
{if Configuration::get('WK_CHECKOUT_INVOICE_COMPANY_REQ')}data-required="1"{else}data-required="0"{/if}
data-validate="isGenericName"
type="text"
name="wk_invoice_company_name"
id="wk_invoice_company_name"
value="{if isset($delivery_address)}{$delivery_address->company}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_invoice_company_name">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_invoice_company_name">&#xE001;</i>
<span class="help-block wk-error wk_invoice_company_name"></span>
</div>
{/if}
{if Configuration::get('WK_CHECKOUT_INVOICE_VAT_SHOW')}
<div class="form-group">
<label class="label-control {if Configuration::get('WK_CHECKOUT_INVOICE_VAT_REQ')}required{/if}">{l s='VAT Number' mod='wkonepagecheckout'}
</label>
<input
{if Configuration::get('WK_CHECKOUT_INVOICE_VAT_REQ')}data-required="1"{else}data-required="0"{/if}
data-validate="isGenericName"
type="text"
name="wk_invoice_vat_info"
id="wk_invoice_vat_info"
value="{if isset($delivery_address)}{$delivery_address->vat_number}{/if}"
class="form-control wkvalidatefield wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_invoice_vat_info">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_invoice_vat_info">&#xE001;</i>
<span class="help-block wk-error wk_vat_info"></span>
<span class="help-block wk-error wk_invoice_vat_info"></span>
</div>
{/if}
<div class="form-group">
<label class="label-control required">{l s='Address' mod='wkonepagecheckout'}</label>
<input
maxlength="128"
data-required="1"
data-validate="isAddress"
type="text"
name="wk_invoice_address_info"
id="wk_invoice_address_info"
value="{if isset($delivery_address)}{$delivery_address->address1}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_invoice_address_info">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_invoice_address_info">&#xE001;</i>
<span class="help-block wk-error wk_invoice_address_info"></span>
</div>
{if Configuration::get('WK_CHECKOUT_INVOICE_ADDRESS_COMPANY_SHOW')}
<div class="form-group">
<label class="label-control {if Configuration::get('WK_CHECKOUT_INVOICE_ADDRESS_COMPANY_REQ')}required{/if}">{l s='Address Complement' mod='wkonepagecheckout'}
</label>
<input
maxlength="128"
{if Configuration::get('WK_CHECKOUT_INVOICE_ADDRESS_COMPANY_REQ')}data-required="1"{else}data-required="0"{/if}
data-validate="isAddress"
type="text"
name="wk_invoice_address_complement"
id="wk_invoice_address_complement"
value="{if isset($delivery_address)}{$delivery_address->address2}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_invoice_address_complement">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_invoice_address_complement">&#xE001;</i>
<span class="help-block wk-error wk_invoice_address_complement"></span>
</div>
{/if}
<div class="form-group">
<label class="label-control required">{l s='Country' mod='wkonepagecheckout'}</label>
<select
data-attr="invoice"
name="wk_invoice_address_country"
class="form-control wk_address_country">
{if isset($countries)}
{foreach $countries as $country}
<option
{if isset($delivery_address)}
{if $delivery_address->id_country == $country.id_country}selected="selected"{/if}
{else if isset($cartAddress)}
{if $cartAddress->id_country == $country.id_country}selected="selected"{/if}
{else if $defaultCountry == $country.id_country}selected="selected"{/if}
value="{$country.id_country}">{$country.name}</option>
{/foreach}
{/if}
</select>
</div>
<div id="wk-invoice-country-state">
{if isset($states) && $states}
{block name='wk_delivery_state'}
{include file="module:wkonepagecheckout/views/templates/front/content/_partials/wk-invoice-state.tpl"}
{/block}
{/if}
</div>
<div class="form-group">
<label class="label-control required">{l s='City' mod='wkonepagecheckout'}</label>
<input
maxlength="64"
data-required="1"
data-validate="isCityName"
type="text"
name="wk_invoice_address_city"
id="wk_invoice_address_city"
value="{if isset($delivery_address)}{$delivery_address->city}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_invoice_address_city">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_invoice_address_city">&#xE001;</i>
<span class="help-block wk-error wk_invoice_address_city"></span>
</div>
<div class="form-group">
<label class="label-control required">{l s='Zip/Postal Code' mod='wkonepagecheckout'}</label>
<input
maxlength="12"
data-required="1"
data-validate="isPostCode"
type="text"
name="wk_invoice_address_zip"
value="{if isset($delivery_address)}{$delivery_address->postcode}{/if}"
id="wk_invoice_address_zip" class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_invoice_address_zip">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_invoice_address_zip">&#xE001;</i>
<span class="help-block wk-error wk_invoice_address_zip"></span>
</div>
{if Configuration::get('WK_CHECKOUT_INVOICE_PHONE_SHOW')}
<div class="form-group">
<label class="label-control {if Configuration::get('WK_CHECKOUT_INVOICE_PHONE_REQ')}required{/if}">{l s='Phone' mod='wkonepagecheckout'}
</label>
<input
maxlength="32"
{if Configuration::get('WK_CHECKOUT_INVOICE_PHONE_REQ')}data-required="1"{else}data-required="0"{/if}
data-validate="isPhoneNumber"
type="text"
name="wk_invoice_address_phone"
id="wk_invoice_address_phone"
value="{if isset($delivery_address)}{$delivery_address->phone}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_invoice_address_phone">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_invoice_address_phone">&#xE001;</i>
<span class="help-block wk-error wk_invoice_address_phone"></span>
</div>
{/if}
{if Configuration::get('WK_CHECKOUT_INVOICE_MOBILE_PHONE_SHOW')}
<div class="form-group">
<label class="label-control {if Configuration::get('WK_CHECKOUT_INVOICE_MOBILE_PHONE_REQ')}required{/if}">{l s='Mobile Phone' mod='wkonepagecheckout'}
</label>
<input
maxlength="32"
{if Configuration::get('WK_CHECKOUT_INVOICE_MOBILE_PHONE_REQ')}data-required="1"{else}data-required="0"{/if}
data-validate="isPhoneNumber"
type="text"
name="wk_invoice_address_mobile_phone"
id="wk_invoice_address_mobile_phone"
value="{if isset($delivery_address)}{$delivery_address->mobilre_phone}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_invoice_address_mobile_phone">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_invoice_address_mobile_phone">&#xE001;</i>
<span class="help-block wk-error wk_invoice_address_mobile_phone"></span>
</div>
{/if}
{if Configuration::get('WK_CHECKOUT_INVOICE_OTHER_SHOW')}
<div class="form-group">
<label class="label-control {if Configuration::get('WK_CHECKOUT_INVOICE_OTHER_REQ')}required{/if}">{l s='Other Information' mod='wkonepagecheckout'}
</label>
<input
maxlength="300"
{if Configuration::get('WK_CHECKOUT_INVOICE_OTHER_REQ')}data-required="1"{else}data-required="0"{/if}
data-validate="isMessage"
type="text"
name="wk_invoice_address_other_information"
id="wk_invoice_address_other_information"
value="{if isset($delivery_address)}{$delivery_address->other}{/if}"
class="form-control wkvalidatefield">
<i class="material-icons wk-check-icon wkhide icon_wk_invoice_address_other_information">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_invoice_address_other_information">&#xE001;</i>
<span class="help-block wk-error wk_invoice_address_other_information"></span>
</div>
{/if}
<div class="form-group" style="text-align: right;">
<button data-type="invoice" class="btn btn-primary wk-save-address">
{l s='Save' mod='wkonepagecheckout'}
</button>
<div class="wkhide wk_text-light wkbotton" id="wk-msg-new-invoice"></div>
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,60 @@
{**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*}
<div class="modal fade" id="wk_login_pop" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel"><i class="material-icons">&#xE851;</i>{l s='Log in' mod='wkonepagecheckout'}</h4>
</div>
<form method="POST" action="{url entity='module' name='wkonepagecheckout' controller='wkcheckout'}" id="wk-login-form" name="wk-login-form">
<div class="modal-body">
<div class="alert alert-danger wk-login-error wkhide"></div>
<div class="form-group">
<div class="input-group">
<input type="text" class="form-control" name="wk-login-email" id="wk-login-email" placeholder="{l s='Email' mod='wkonepagecheckout'}">
<label class="input-group-addon wk-icon">
<i class="material-icons">&#xE851;</i>
</label>
</div>
</div>
<div class="form-group">
<div class="input-group">
<input type="password" class="form-control" name="wk-login-password" id="wk-login-password" placeholder="{l s='Password' mod='wkonepagecheckout'}">
<label for="uPassword" class="input-group-addon wk-icon">
<i class="material-icons">&#xE897;</i>
</label>
</div>
</div>
</div>
<div class="modal-footer">
<img class="wk-loader wkhide" src="{$wk_opc_modules_dir}img/p_loading.gif" width="25">
<button class="btn btn-primary" id="wk-submit-login">
{l s='Login' mod='wkonepagecheckout'}
</button>
<div class="wkforgot">
<a href="{$urls.pages.password}" class="forget">{l s='Forgot your password?' mod='wkonepagecheckout'}</a>
</div>
</div>
</form>
</div>
</div>
</div>

View File

@@ -0,0 +1,158 @@
{**
* 2010-2020 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <support@webkul.com>
* @copyright 2010-2020 Webkul IN
* @license https://store.webkul.com/license.html
*}
<div class="wk-order-total col-md-12 col-sm-12">
<div class="row">
<div class="col-md-6 col-sm-12">
<div class="row">
<div class="col-md-12 col-xs-12 col-sm-8">
<input placeholder="{l s='Promo code' mod='wkonepagecheckout'}" type="text" name="wk-voucher" id="wk-voucher" class="form-control">
<button id="addVoucher" class="btn btn-primary">{l s='Add' mod='wkonepagecheckout'}</button>
</div>
<div class=" wkhide col-md-8 col-xs-12 wkpromo-code alert alert-danger" role="alert">
<i class="material-icons"></i><span>{l s='Enter a voucher code.' mod='wkonepagecheckout'}</span>
</div>
{if isset($cart.discounts) && $cart.discounts}
<!--<div class="wk-voucher-available col-md-12">
<p class="block-promo promo-highlighted">{l s='Take advantage of our exclusive offers: ' mod='wkonepagecheckout'}</p>
<ul class="block-promo">
{foreach $cart.discounts as $discounts}
<li>
<a id="wkadd-code" href="javascript:void(0);"><span class="wkcode">{$discounts.code}</span></a><span> - {$discounts.name}</span>
</li>
{/foreach}
</ul>
</div>-->
{/if}
</div>
</div>
<div class="col-md-6 col-sm-12">
<div class="row">
{if isset($cart.vouchers.added)}
{foreach $cart.vouchers.added as $voucher}
<div class="wk-box">
<div class="wk-product-info col-md-7 col-sm-7 col-xs-7">
<span>{$voucher.name}</span>
</div>
<div title="{l s='Delete voucher' mod='wkonepagecheckout'}" class="wk-product-info col-md-5 col-sm-5 col-xs-5 text-right" id="wk-delete-voucher"data-id="{$voucher.id_cart_rule}">
<i class="material-icons pull-xs-left">delete</i>
</div>
</div>
{/foreach}
{/if}
<div class="wk-box">
<div class="wk-product-info col-md-8 col-sm-6 col-xs-6">
{if $customer.id_default_group>3}
{if $language.id == 1}
<span>Produkty netto</span>
{else}
<span>Net products</span>
{/if}
{else}
<span>{l s='Total Products (tax incl.)' mod='wkonepagecheckout'}</span>
{/if}
</div>
<div class="col-md-4 col-xs-2 col-sm-2 col-sm-6 col-xs-6 wk-product-val">
{if isset($cart.subtotals.products)}
<span>{$cart.subtotals.products.value}</span>
{/if}
</div>
</div>
<div class="wk-box">
<div class="wk-product-info col-md-8 col-sm-6 col-xs-6">
{if $customer.id_default_group>3}
{if $language.id == 1}
<span>Wysyłka netto</span>
{else}
<span>Net shipping</span>
{/if}
{else}
<span>{l s='Total shipping' mod='wkonepagecheckout'}</span>
{/if}
</div>
<div class="col-md-4 col-xs-2 col-sm-6 col-xs-6 wk-product-val">
{if isset($cart.subtotals.shipping)}
<span>{$cart.subtotals.shipping.value}</span>
{/if}
</div>
</div>
{if isset($cart.subtotals.discounts)}
<div class="wk-box">
<div class="wk-product-info col-md-8 col-sm-6 col-xs-6">
<span>{l s='Total Discount' mod='wkonepagecheckout'}</span>
</div>
<div class="col-md-4 col-xs-2 col-sm-6 col-xs-6 wk-product-val">
<span>{$cart.subtotals.discounts.value}</span>
</div>
</div>
{/if}
{*<div class="wk-box">
<div class="wk-product-info col-md-6 offset-md-2">
<span>{l s='Total (tax excl.)' mod='wkonepagecheckout'}</span>
</div>
<div class="col-md-4 col-xs-2 col-sm-6 col-xs-6 wk-product-val">
{if isset($product.price)}
<span>{$product.price}</span>
{/if}
</div>
</div>*}
{if Configuration::get('PS_TAX_DISPLAY-tmp')}
<div class="wk-box">
<div class="wk-product-info col-md-8 col-sm-6 col-xs-6">
<span>{l s='W tym podatek VAT' mod='wkonepagecheckout'}</span>
</div>
<div class="col-md-4 col-xs-2 col-sm-6 col-xs-6 wk-product-val">
{if isset($cart.subtotals.tax)}
<span>{$cart.subtotals.tax.value}</span>
{else}
<span>--</span>
{/if}
</div>
</div>
{/if}
<div class="wk-box">
{if $customer.id_default_group>3}
<div class="wk-product-info col-md-8 col-sm-6 col-xs-6">
{if $language.id == 1}
<span>Razem brutto</span>
{else}
<span>Total gross</span>
{/if}
</div>
<div class="col-md-4 col-xs-2 col-sm-6 col-xs-6 wk-product-val">
{if isset($cart.totals.total_including_tax.value)}
<span>{$cart.totals.total_including_tax.value}</span>
{/if}
</div>
{else}
<div class="wk-product-info col-md-8 col-sm-6 col-xs-6">
<span>{l s='Total' mod='wkonepagecheckout'}</span>
</div>
<div class="col-md-4 col-xs-2 col-sm-6 col-xs-6 wk-product-val">
{if isset($cart.totals.total)}
<span>{$cart.totals.total.value}</span>
{/if}
</div>
{/if}
</div>
</div>
</div>
</div>
</div>