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>

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,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
*}
<article class="box wkrelativeposition">
<!-- Customer details if login -->
<div class="wk-login-container">
<div class="wk-heading-img">
<div class="wk-user-icon wk-sprit wk-left"></div>
<h4 class="wk-left">{l s='Your Details' mod='wkonepagecheckout'}</h4>
</div>
<div class="col-md-12">
<div class="row">
{if $customer.is_logged && !$customer.is_guest}
<div class="col-md-7 col-sm-6 col-xs-6">
<a href="{$myaccount}"><span>{$customer.firstname} {$customer.lastname}</span></a>
<p>{$customer.email}</p>
</div>
<div class="col-md-5 col-sm-6 col-xs-6 wk-log-btn">
<a href="{$logout}" class="btn btn-primary logout">{l s='Logout' mod='wkonepagecheckout'}</a>
</div>
{else}
<div class="col-md-7 col-sm-6 col-xs-6" style="padding-top:8px;">
{l s='Already Registered?' mod='wkonepagecheckout'}
</div>
<div class="col-md-5 col-sm-6 col-xs-6 wk-log-btn">
<button class="btn btn-primary wkbtn-login">{l s='Login' mod='wkonepagecheckout'}</button>
</div>
{/if}
</div>
</div>
</div>
{if $customer.is_logged && !$customer.is_guest}
<!-- If customer is login -->
{block name='wk-customer-address'}
{include file='module:wkonepagecheckout/views/templates/front/content/_partials/wk-myaccount.tpl'}
{/block}
{else}
{if Configuration::get('WK_CHECKOUT_SOCIAL_LOGIN')}
{if Configuration::get('WK_CHECKOUT_FACEBOOK_LOGIN') || Configuration::get('WK_CHECKOUT_GOOGLE_LOGIN')}
<!-- If customer is not login -->
<div class="wk-social-login">
<p class="wk-separator">{l s='Or' mod='wkonepagecheckout'}</p>
<h5>{l s='Sign in with' mod='wkonepagecheckout'}</h5>
<div id="status" class="wkerrorcolor"></div>
{if Configuration::get('WK_CHECKOUT_FACEBOOK_LOGIN')}
<a class="btn btn-primary wkbtn-fb" href="javascript:void(0);" onclick="fbLogin()" id="fbLink">
<span>{l s='Facebook' mod='wkonepagecheckout'}</span>
</a>
{/if}
{if Configuration::get('WK_CHECKOUT_GOOGLE_LOGIN')}
<a class="btn btn-primary wkbtn-google" href="javascript:void(0);" id="customGmailBtn">
<span>{l s='Google' mod='wkonepagecheckout'}</span>
</a>
{/if}
</div>
{/if}
{/if}
<p class="wk-separator">{l s='Or' mod='wkonepagecheckout'}</p>
<div class="wk-guest-checkout">
{if Configuration::get('WK_CHECKOUT_GUEST_ALLOW')}
<h5>{l s='Guest Checkout' mod='wkonepagecheckout'}</h5>
{else}
<h5>{l s='Create Account' mod='wkonepagecheckout'}</h5>
{/if}
</div>
<div class="wk-form-group">
{if Configuration::get('WK_CHECKOUT_SOCIAL_TITLE')}
<div class="form-group">
<label class="label-control">{l s='Social title' mod='wkonepagecheckout'}</label>
{if isset($genders)}
{foreach from=$genders item="label" key="value"}
<div class="wk-gender">
<input type="radio" name="id_gender" value="{$value}">
<label for="id_gender">{$label}</label>
</div>
{/foreach}
{/if}
</div>
{/if}
<div class="form-group">
<label class="label-control">{l s='Email' mod='wkonepagecheckout'}</label>
<input
value="{if isset($wkguest)}{$wkguest->email}{/if}"
maxlength="128"
type="text"
name="wk-email"
id="wk-email"
{if isset($wkguest)}
readonly="readonly" disabled="disabled"
{/if}
class="form-control">
<i class="material-icons wk-check-icon wkhide icon_wk_email">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_email">&#xE001;</i>
<span id="wk-email-error" class="wkerrorcolor"></span>
</div>
{if Configuration::get('WK_CHECKOUT_GUEST_ALLOW') && !isset($wkguest)}
<div class="form-group">
<span class="custom-checkbox">
<label>
<input type="checkbox" value="1" name="wk-create-account" id="wk-create-account">
<span><i class="material-icons rtl-no-flip checkbox-checked"></i></span>
<span>{l s='I also want to create account' mod='wkonepagecheckout'}</span>
</label>
</span>
</div>
{/if}
<div class="form-group wkpassword_div {if Configuration::get('WK_CHECKOUT_GUEST_ALLOW')}wkhide{/if}">
<label class="label-control">{l s='Password' mod='wkonepagecheckout'}</label>
<input maxlength="60" type="password" name="wk-password" id="wk-password" class="form-control">
<i class="material-icons wk-check-icon wkhide icon_wk_password">&#xE876;</i>
<i class="material-icons wk-error-icon wkhide error_wk_password">&#xE001;</i>
<span id="wk-password-error" class="wkerrorcolor"></span>
</div>
{if Configuration::get('WK_CHECKOUT_DOB')}
<div class="form-group">
<label class="label-control">{l s='Date of birth' mod='wkonepagecheckout'}</label>
<div class="row">
<div class="col-md-4">
<select name="wk_day" id="wk_day" class="form-control">
<option value="0">{l s='Day' mod='wkonepagecheckout'}</option>
{for $day=1 to 31}
<option value="{$day}">{$day}</option>
{/for}
</select>
</div>
<div class="col-md-4">
<select name="wk_month" id="wk_month" class="form-control">
<option value="0">{l s='Month' mod='wkonepagecheckout'}</option>
{for $month=1 to 12}
<option value="{$month}">{$month}</option>
{/for}
</select>
</div>
<div class="col-md-4">
<select name="wk_year" id="wk_year" class="form-control">
<option value="0">{l s='Year' mod='wkonepagecheckout'}</option>
{for $year=date(Y)-100 to date(Y)}
<option value="{$year}">{$year}</option>
{/for}
</select>
</div>
</div>
</div>
{/if}
{if Configuration::get('WK_CHECKOUT_OPTIN')}
<div class="form-group">
<span class="custom-checkbox">
<label>
<input type="checkbox" value="1" name="wk-optin" id="wk-optin" class="form-control">
<span><i class="material-icons checkbox-checked"></i></span>
<span>{l s='Receive offers from our partners' mod='wkonepagecheckout'}</span>
</label>
</span>
</div>
{/if}
{if Configuration::get('WK_CHECKOUT_NEWSLATTER')}
<div class="form-group">
<span class="custom-checkbox">
<label>
<input type="checkbox" value="1" name="wk-newsletter" id="wk-newsletter" class="form-control">
<span><i class="material-icons checkbox-checked"></i></span>
<span>{l s='Sign up for our newsletter' mod='wkonepagecheckout'}</span>
</label>
</span>
</div>
{/if}
</div>
{block name='wk-customer-address'}
{include file='module:wkonepagecheckout/views/templates/front/content/_partials/wk-myaccount.tpl'}
{/block}
<!-- Login pop up tpl in case customer is not login -->
{block name='wk-login'}
{include file='module:wkonepagecheckout/views/templates/front/content/_partials/wk_login.tpl'}
{/block}
{*{block name='wk-social-login'}
{include file='module:wkonepagecheckout/views/templates/front/content/_partials/wk-social-login.tpl'}
{/block}*}
{/if}
<div id="wkcustomer_info"></div>
</article>
<script src="https://code.jquery.com/jquery-3.6.0.slim.min.js" integrity="sha256-u7e5khyithlIdTpu22PHhENmPcRdFiHRjhAuHcs05RI=" crossorigin="anonymous"></script>
<script src="https://apis.google.com/js/api:client.js"></script>
{if $customer.is_logged == 1}
{literal}
<script type='text/javascript'>
$( function()
{
$.ajax(
{
type: 'POST',
cache: false,
url: '/ajax.php',
data:
{
a: 'load-customer-b2b-data',
customer_id: {/literal}{$customer.id}{literal}
},
beforeSend: function() {},
success: function( response )
{
data = jQuery.parseJSON( response );
if ( data.fvat == 'Yes' )
{
$( '#shipping_form select[name="fields[1]"]' ).val( "Yes" ).trigger( 'change' );
$( '#shipping_form input[name="fields[2]"]' ).val( data.firm );
$( '#shipping_form input[name="fields[3]"]' ).val( data.nip );
$( '#shipping_form input[name="fields[4]"]' ).val( data.street );
$( '#shipping_form input[name="fields[5]"]' ).val( data.city );
$( '#shipping_form input[name="fields[6]"]' ).val( data.postal_code );
}
}
});
});
</script>
{/literal}
{/if}
<script>
if (typeof wk_google_app_key !== 'undefined' && wk_google_app_key) {
// 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_key,
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) {
if (element) {
auth2.attachClickHandler(element, {},
function(googleUser) {
proceedLogin(googleUser.getBasicProfile().getGivenName(), googleUser.getBasicProfile().getFamilyName(), googleUser.getBasicProfile().getEmail());
}, function(error) {
alert(user_cancel);
}
);
}
}
startApp();
// signin with google end here
}
</script>

View File

@@ -0,0 +1,105 @@
{**
* 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-condition wk-box">
<article class="col-md-12 wkpadding">
{if $conditions_to_approve|count}
<p class="ps-hidden-by-js">
{l s='By confirming the order, you certify that you have read and agree with all of the conditions below:' mod='wkonepagecheckout'}
</p>
<form id="conditions-to-approve" method="GET">
<ul>
{foreach from=$conditions_to_approve item="condition" key="condition_name"}
<li>
<div class="float-xs-left">
<span class="custom-checkbox">
<input
id="conditions_to_approve[{$condition_name}]"
name="conditions_to_approve[{$condition_name}]"
required
type="checkbox"
value="1"
class="ps-shown-by-js wk-condition-check">
<span><i class="material-icons checkbox-checked">&#xE5CA;</i></span>
</span>
</div>
<div class="condition-label">
{if $language.id == 1}
<label class="js-terms" for="conditions_to_approve[{$condition_name}]">Potwierdzam, że zapoznałem się i akceptuję <a href="/pl/content/3-regulamin" target="_blank">regulamin</a> sklepu internetowego.</label>
{elseif $language.id == 2}
<label class="js-terms" for="conditions_to_approve[{$condition_name}]">I confirm that I have read and accepted the <a href="/gb/content/3-statute" target="_blank">regulations</a> of the online store.</label>
{/if}
</div>
</li>
{/foreach}<li>
<div class="float-xs-left">
<span class="custom-checkbox">
<input id="conditions_to_approve[2]" name="conditions_to_approve[2]" required type="checkbox" value="1" class="ps-shown-by-js wk-condition-check">
<span><i class="material-icons checkbox-checked">&#xE5CA;</i></span>
</span>
</div>
<div class="condition-label">
{if $language.id == 1}
<label class="js-terms" for="conditions_to_approve[2]">Potwierdzam, że zapoznałem się z <a href="/pl/content/2-polityka-prywatnosci" target="_blank">polityką prywatności</a> sklepu internetowego</label>
<small>Administratorem danych osobowych zbieranych za pośrednictwem sklepu internetowego jest Sprzedawca (PRZEDSIĘBIORSTWO PRODUKCYJNO-HANDLOWO-USŁUGOWE "2M" SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ). Dane są lub mogą być przetwarzane w celach oraz na podstawach wskazanych szczegółowo w polityce prywatności (np. realizacja umowy, marketing bezpośredni). Polityka prywatności zawiera pełną informację na temat przetwarzania danych przez administratora wraz z prawami przysługującymi osobie, której dane dotyczą. Szybki kontakt z administratorem: zam@redline.com.pl</small>
{elseif $language.id == 2}
<label class="js-terms" for="conditions_to_approve[2]">I confirm that I have read the <a href="/gb/content/2-privacy-policy" target="_blank">privacy policy</a> of the online store.</label>
<small>The administrator of personal data collected via the online store is the Seller (PRODUCTION, TRADE AND SERVICE COMPANY "2M" LIMITED LIABILITY COMPANY). The data is or may be processed for the purposes and on the grounds specified in detail in the privacy policy (e.g. contract performance, direct marketing). The privacy policy contains full information on data processing by the administrator along with the rights of the data subject. Quick contact with the administrator: zam@redline.com.pl</small>
{/if}
</div>
</li>
</ul>
</form>
{/if}
<div id="wk-payment-confirmation">
<div class="ps-shown-by-js">
<button type="submit" class="btn btn-primary center-block wkcustomizerbtn" {if $conditions_to_approve|count}disabled="disabled"{/if}>
{l s='Order with an obligation to pay' mod='wkonepagecheckout'}
</button>
</div>
</div>
{* Danger : - Dont't alter this div, we have used this div to append prestashop button to make payment *}
<div class="wk_ps_payment_button wkhide"></div>
{* *}
<div id="wkcondition_info"></div>
</article>
</div>
{* Load CMS pop for terms and condition*}
<div class="modal fade" id="modal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<div class="js-modal-content"></div>
</div>
</div>
</div>
<style>
.wkcustomizerbtn {
background-color : {Configuration::get('WK_CHECKOUT_BUTTON_COLOR')} !important;
font-size: {Configuration::get('WK_CHECKOUT_BUTTON_FONT_SIZE')}px !important;
color: {Configuration::get('WK_CHECKOUT_BUTTON_FONT_COLOR')} !important;
font-family: {$fontfamily} !important;
}
</style>

View File

@@ -0,0 +1,194 @@
{**
* 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-order-summary-ajax" class="clearfix">
<article class="wk-box box">
<div class="wk-heading-img">
<div class="wk-order-icon wk-sprit wk-left"></div>
<h4 class="wk-left">
{php}
global $cookie;
$iso_code = Language::getIsoById( (int)$cookie->id_lang );
if ( $iso_code == 'pl' )
echo 'Podsumowanie zamowienia';
else
echo 'Client detail';
{/php}
</h4>
</div>
<div class="col-md-12 col-sm-12 col-xs-12">
<ul class="wk-cart-items clearfix">
<li class="wk-order-product col-sm-12 col-xs-12">
<div class="wk-product-info col-md-6 col-sm-6 col-xs-12">
<div class="wk-product-img">
<span>{l s='Description' mod='wkonepagecheckout'}</span>
</div>
</div>
<div class="wk-product-info col-md-2 col-sm-2 col-xs-12">
<span>{l s='Quantity' mod='wkonepagecheckout'}</span>
</div>
{*<div class="col-md-2 col-sm-2 col-xs-12">
<span>
{l s='Unit price' mod='wkonepagecheckout'}<br>
{if $group == 1}
{l s='(tax excl.)' mod='wkonepagecheckout'}
{else if $group == 0}
{l s='(tax incl.)' mod='wkonepagecheckout'}
{/if}
</span>
</div>*}
<div class="col-md-2 col-sm-2 col-xs-12">
<span>{l s='Total' mod='wkonepagecheckout'}</span>
</div>
<div class="col-md-2 col-sm-2 col-xs-12">
<span>{l s='Action' mod='wkonepagecheckout'}</span>
</div>
</li>
{if isset($cart.products)}
{foreach $cart.products as $product}
<li class="wk-order-product col-sm-12 col-xs-12">
<div class="product-line-grid-left col-md-2 col-xs-3">
<div class="wk-product-img wk-left product-cover">
{if isset($product.cover) && $product.cover}
<img
class="js-qv-product-cover"
{if Configuration::get('WK_CHECKOUT_PRODUCT_IMAGE') == '1'}
width="50" heigth="50"
{else if Configuration::get('WK_CHECKOUT_PRODUCT_IMAGE') == '2'}
width="80" heigth="80"
{else if Configuration::get('WK_CHECKOUT_PRODUCT_IMAGE') == '3'}
width="100" heigth="100"
{else}
width="70" heigth="70"
{/if}
src="{$product.cover.small.url}">
<div class="layer hidden-sm-down" data-toggle="modal" data-target="#wk-product-modal-{$product.id_product}">
<i class="material-icons zoom-in">&#xE8FF;</i>
</div>
{else}
<img
{if Configuration::get('WK_CHECKOUT_PRODUCT_IMAGE') == '1'}
width="50" heigth="50"
{else if Configuration::get('WK_CHECKOUT_PRODUCT_IMAGE') == '2'}
width="80" heigth="80"
{else if Configuration::get('WK_CHECKOUT_PRODUCT_IMAGE') == '3'}
width="100" heigth="100"
{else}
width="70" heigth="70"
{/if}
class="product-image"
src="{$wk_opc_modules_dir}img/en.jpg"
itemprop="image">
{/if}
</div>
</div>
<div class="product-line-grid-body col-md-4 col-xs-8">
<div class="wk-product-detail wk-left js-product-miniature"
data-id-product-attribute="{$product.id_product_attribute}"
data-id-product="{$product.id_product}">
<div class="product-line-info">
<a class="quick-view label" data-link-action="quickview" data-id-product-attribute="{$product.id_product_attribute}" data-id-product="{$product.id_product}" href="javascript:void(0);" title="{l s='Change Combination' mod='wkonepagecheckout'}">
<span>{$product.name}</span></a>
</div>
{if isset($product.attributes)}
{foreach $product.attributes as $key => $value}
<div>
<span class="wk-attribute">{$key}:</span>
<span class="wk-attribute-value">{$value}</span>
</div>
{/foreach}
{/if}
{include file='module:wkonepagecheckout/views/templates/front/content/_partials/wk_cart_product_customization.tpl'}
<br/>
<div class="wk-product-link"><a target="_blank" href="{$product.url}" >{l s='More Detail' mod='wkonepagecheckout'}</a></div>
</div>
</div>
<div class="wk-product-info col-md-2 col-sm-3 col-xs-12">
<div class="bootstrap-touchspin">
<input data-id-product-attribute="{$product.id_product_attribute}" data-id-product="{$product.id_product}" value="{if isset($product.cart_quantity)}{$product.cart_quantity}{/if}" class="wk-hidden-qty form-control" type="hidden" id="wk-cart-hidden-qty" min="1"/>
<input data-id-product-attribute="{$product.id_product_attribute}" data-id-product="{$product.id_product}" value="{if isset($product.cart_quantity)}{$product.cart_quantity}{/if}" class="wk-qty form-control" type="text" name="wk-cart-qty" min="1" data-id-customization="{if isset($product.id_customization)}{$product.id_customization}{else}0{/if}"/>
<span class="input-group-btn-vertical">
<button type="button" class="btn btn-touchspin wk-qty-up">
<i class="material-icons touchspin-up"></i>
</button>
<button type="button" class="btn btn-touchspin bootstrap-touchspin-down wk-qty-down">
<i class="material-icons touchspin-down"></i>
</button>
</span>
</div>
</div>
{*<div class="col-md-2 col-sm-2 col-xs-12">
<span class="product-price">
{if isset($product.price)}
<span>{$product.price}</span>
{/if}
</span>
</div>*}
<div class="col-md-2 col-sm-3 col-xs-12">
<span class="product-price">
{if isset($product.total)}
<span>{$product.total}</span>
{/if}
</span>
</div>
<div class="col-md-2 col-sm-3 col-xs-12 wk-delete-qty">
<div class="cart-line-product-actions">
<a
title="{l s='Delete' mod='wkonepagecheckout'}"
id="wk-remove-cart"
data-id-product-attribute="{$product.id_product_attribute}"
data-id-product="{$product.id_product}" href="javascript:void(0);"
data-quantity="{$product.cart_quantity}"
data-id-customization="{if isset($product.id_customization)}{$product.id_customization}{else}0{/if}"
class="remove-from-cart wk-left">
<i class="material-icons pull-xs-left">delete</i>
</a>
{if Configuration::get('WK_CHECKOUT_CART_SAVE_LATER') && $customer.is_logged}
<a
title="{l s='Save for later' mod='wkonepagecheckout'}"
id="wk-cart-save"
data-id-product-attribute="{$product.id_product_attribute}"
data-id-product="{$product.id_product}"
data-quantity="{$product.cart_quantity}"
data-id-customization="{if isset($product.id_customization)}{$product.id_customization}{else}0{/if}"
href="javascript:void(0);"
class="remove-from-cart wk-left">
<i class="material-icons">&#xE8B5;</i>
</a>
{/if}
</div>
</div>
{block name='product_images_modal'}
{include file='module:wkonepagecheckout/views/templates/front/content/_partials/wk-product-image-modal.tpl'}
{/block}
</li>
{/foreach}
{/if}
</ul>
<div class="wkhide wkerrorcolor wkorder_error"></div>
</div>
<p class="wkstyle"></p>
{block name='wk-order-total'}
{include file='module:wkonepagecheckout/views/templates/front/content/_partials/wk_order_total.tpl'}
{/block}
<div id="wkorder-summary"></div>
</article>
<p class="wkstyle"></p>
</div>

View File

@@ -0,0 +1,173 @@
{**
* 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-payment-method">
<div class="wk-heading-img">
<div class="wk-payment-icon wk-sprit wk-left"></div>
<h4 class="wk-left">{l s='Payment Method' mod='wkonepagecheckout'}</h4>
<div class="wkerrorcolor wkhide wk-left" id="wkpayment-error" style="margin-left:25px;"></div>
</div>
<div class="payment-options">
{if $wk_is_logged == 1}
{if isset($is_free) && $is_free}
<input type="hidden" value="{$is_free}" id="wk_free_order" />
<p>{l s='No payment needed for this order' mod='wkonepagecheckout'}</p>
{/if}
{if isset($payment_options) && $payment_options}
<div {if $is_free}class="hidden-xs-up"{/if}>
{foreach from=$payment_options item="module_options"}
<div class="row wk-payment-select">
{foreach from=$module_options item="option"}
<div class="wk-payment-list col-md-12 col-sm-12 col-xs-12">
<div id="{$option.id}-container" class="wk-payment col-xs-1 col-sm-1 col-md-1 payment-option wkpadding">
{* This is the way an option should be selected when Javascript is enabled *}
<span class="custom-radio pull-xs-left">
<input
{if Configuration::get('WK_CHECKOUT_DEFAULT_PAYMENT') == $option.module_name || $is_free}checked="checked"{/if}
class="ps-shown-by-js {if $option.binary} binary {/if}"
id="{$option.id}"
data-module-name="{$option.module_name}"
name="payment-option"
type="radio"
required>
<span></span>
</span>
{* This is the way an option should be selected when Javascript is disabled *}
<form method="GET" class="ps-hidden-by-js">
<button class="ps-hidden-by-js" type="submit" name="select_payment_option" value="{$option.id}">
{l s='Choose' mod='wkonepagecheckout'}
</button>
</form>
</div>
<div class="wk-payment-info col-md-11 col-sm-9 col-xs-9 wk-selected-payment-{$option.id} {if Configuration::get('WK_CHECKOUT_DEFAULT_PAYMENT') && (Configuration::get('WK_CHECKOUT_DEFAULT_PAYMENT') == $option.module_name)}wkSelectedBorder{/if}">
<div class="row">
{if Configuration::get('WK_CHECKOUT_PAYMENT_LOGO')}
<div class="col-md-3 col-xs-12 col-sm-3">
{if $option.logo}
<img src="{$option.logo}" width="50">
{else}
<img class="wk-custom-payment-icon" width="50" src="{$wk_opc_modules_dir}img/wk-icon-money.jpg">
{/if}
</div>
{/if}
<div class="col-md-9 col-xs-12 col-sm-9">
{php}
$user_group = Customer::getDefaultGroupId( Context::getContext() -> customer -> id );
if ( $user_group >= 4 )
{
{/php}
{if $option.call_to_action_text == 'Zapłać przelewem'}
<p>Przedpłata / Przelew</p>
{else}
<p>{$option.call_to_action_text}</p>
{/if}
{php}
}
else
{
{/php}
{if $option.module_name == 'imoje'}
{if $language.id == 2 }
<p>Fast online transfers, BLIK, Google Pay and cards</p>
{else}
<p>{$option.call_to_action_text}</p>
{/if}
{else}
<p>{$option.call_to_action_text}</p>
{/if}
{php}
}
{/php}
</div>
</div>
</div>
</div>
{if $option.module_name == 'imoje'}
<img src="/img/imoje-big4.png"
style="
width: 100%;
max-width: fit-content;
margin-top: 10px;
margin-left: auto;
margin-right: auto;
display: block;
padding: 0 15px;
"
>
{/if}
{if $option.additionalInformation}
<div
id="{$option.id}-additional-information"
class="js-additional-information definition-list col-sm-11 offset-sm-1 wk-payment-info">
{$option.additionalInformation nofilter}
{if $option.module_name == 'ps_wirepayment'}
{php}
global $cookie;
$iso_code = Language::getIsoById( (int)$cookie->id_lang );
$user_group = Customer::getDefaultGroupId( Context::getContext() -> customer -> id );
if ( $user_group >= 4 )
{
if ( $iso_code == 'pl' )
echo 'Przedpłata po otrzymaniu faktury<br/>Przelew w uzgodnionym terminie';
else
echo 'Prepayment after receiving the invoice <br/> Transfer within the agreed period';
}
{/php}
{/if}
</div>
{/if}
<div id="pay-with-{$option.id}-form" class="js-payment-option-form wk-left">
{if $option.form}
{$option.form nofilter}
{else}
<form id="payment-form" method="POST" action="{$option.action nofilter}">
{foreach from=$option.inputs item=input}
<input type="{$input.type}" name="{$input.name}" value="{$input.value}">
{/foreach}
<button style="display:none" id="pay-with-{$option.id}" type="submit"></button>
</form>
{/if}
</div>
{/foreach}
</div>
{/foreach}
</div>
{else}
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="alert alert-danger">
{l s='Unfortunately, there are no payment method available.' mod='wkonepagecheckout'}
</div>
</div>
</div>
{/if}
{else}
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="alert alert-danger">
{l s='First you need to fill the shipping address.' mod='wkonepagecheckout'}
</div>
</div>
</div>
{/if}
</div>
<div id="wkpayment-method"></div>
</div>

View File

@@ -0,0 +1,142 @@
{**
* 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-shipping-carriers">
<div class="wk-heading-img">
<div class="wk-shipping-icon wk-sprit wk-left"></div>
<h4 class="wk-left">{l s='Shipping Method' mod='wkonepagecheckout'}</h4>
<div class="wkerrorcolor wkhide wk-left" id="wkshipping-error" style="margin-left:25px;"></div>
</div>
<div id="hook-display-before-carrier">
{hook h='displayBeforeCarrier'}
</div>
{if $wk_is_logged == 1}
{if isset($delivery_options) && $delivery_options}
{foreach from=$delivery_options item=carrier key=carrier_id}
{if ( $language.id == 2 && $carrier.id_reference != 7 && $carrier.id_reference != 8 ) || $language.id == 1}
<div class="row">
<div class="wk-shipping-list col-md-12 col-sm-12 col-xs-12">
<div class="wk-shipping col-xs-1 col-sm-1 col-md-1 wkpadding">
<span class="custom-radio">
<input
{if $delivery_option == $carrier_id} checked{/if}
type="radio"
name="delivery_option[{$id_address}]"
id="delivery_option_{$carrier.id}"
class="form-control wk_selected_shipping"
wk-opc-id-carrier="{$carrier.id}"
value="{$carrier.id},">
<span></span>
</span>
</div>
<div class="wk-shipping-info wk-selected-shipping-{$carrier.id} col-md-11 col-sm-9 col-xs-9 {if $delivery_option == $carrier_id} wkSelectedBorder{/if}">
<div class="row">
{if Configuration::get('WK_CHECKOUT_CARRIER_LOGO')}
<div class="col-md-3 col-xs-12 col-sm-3">
{if isset($carrier.logo) && $carrier.logo}
<img class="wk-custom-shipping-icon" width="50" src="{$carrier.logo}">
{else}
<img class="wk-custom-shipping-icon" width="50" src="{$wk_opc_modules_dir}img/carrier-default.jpg">
{/if}
</div>
{/if}
<div class="col-md-6 col-xs-12 col-sm-6">
<span class="carrier-name">
{if $carrier.id_reference == 11}
{if $language.id == 2}
DPD courier <br/> cash on delivery
{else}
Kurier DPD<br/>za pobraniem
{/if}
{elseif $carrier.id_reference == 28}
{if $language.id == 2}
Courier
{else}
Kurier
{/if}
{elseif $carrier.id_reference == 66}
{if $language.id == 2}
DPD courier
{else}
Kurier DPD
{/if}
{elseif $carrier.id_reference == 8}
Inpost Paczkomaty 24<br/>za pobraniem
{elseif $carrier.id_reference == 16}
{if $language.id == 2}
DPD courier
{else}
{$carrier.name}
{/if}
{elseif $carrier.id_reference == 9}
{if $language.id == 2}
Pickup in person
{else}
{$carrier.name}
{/if}
{else}
{$carrier.name}
{/if}
</span>
<!--<br>
{if Configuration::get('WK_CHECKOUT_CARRIER_DESC')}
{if isset($carrier.delay)}<span class="carrier-delay">{$carrier.delay}</span>{/if}
{/if}-->
{if $carrier.id_reference == 9}
<br>
<span class="carrier-delay">Sklep REDLINE<br/>ul. Fabryczna 12, Dębica</span>
{/if}
</div>
<div class="col-md-3 col-xs-12 col-sm-3">
<span class="carrier-price">{$carrier.price}</span>
</div>
</div>
</div>
</div>
</div>
<div class="row carrier-extra-content">
{$carrier.extraContent nofilter}
</div>
{/if}
{/foreach}
<div id="delivery">
<p for="delivery_message">{l s='If you would like to add a comment about your order, please write it in the field below.' mod='wkonepagecheckout'}</p>
<textarea rows="3" cols="52" id="delivery_message" name="delivery_message">{$delivery_message}</textarea>
</div>
{else}
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="alert alert-danger">
{l s='Unfortunately, there are no carriers available for your delivery address.' mod='wkonepagecheckout'}
</div>
</div>
</div>
{/if}
{else}
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="alert alert-danger">
{l s='First you need to fill the shipping address.' mod='wkonepagecheckout'}
</div>
</div>
</div>
{/if}
<div id="wkshipping-method"></div>
</div>
<div class="wkpayment-checkout"></div>