download all files

This commit is contained in:
Roman Pyrih
2025-06-24 14:14:35 +02:00
parent ebed09c00b
commit 4c71b5d9c2
72007 changed files with 10407727 additions and 40029 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,49 @@
/**
* 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
*/
#wk-checkout-config {
margin-bottom: 20px;
}
#wk-checkout-config li.active a {
background-color: #00aff0;
border-color: #00aff0;
color: #fff;
text-transform: uppercase;
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.125) inset;
outline: 0 none;
cursor: pointer;
}
#wk-checkout-config li.active a:hover {
background-color: #008abd;
-webkit-box-shadow: none;
box-shadow: none;
outline-offset: -2px;
border-color: #eee #eee #ddd;
text-decoration: none;
}
.wkhide {
display: none;
}
label.custom_checkbox {
margin-right: 20px;
}
label.custom_checkbox span {
padding: 3px;
}

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,721 @@
/**
* 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
*/
#wk-one-page-checkout {
font-size: 15px;
}
.wkloading_overlay {
opacity: 1;
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;
background-color: rgba(255, 255, 255, 0.5);
z-index: 100000;
border-color: #fff;
}
.wkloading_overlay img {
position: absolute;
left: 50%;
top: 50%;
width: 30px;
}
.wk-login-container .wk-log-btn {
text-align: right;
}
.wk-log-btn a:hover {
color: white !important;
}
#wk-voucher {
float: left;
width: 60%;
}
@media (max-width:565px) {
#wk-voucher {
width: calc(100% - 87px);
}
}
.wk-voucher-available .block-promo.promo-highlighted {
text-align: left !important;
}
.wkhide {
display: none;
}
.wkshow {
display: block;
}
.wkshowinline {
display: inline-block;
}
/* To make error icon in the form absolute*/
.wk-form-group .form-group {
position: relative;
}
#wk-delivery-form .form-group {
position: relative;
}
#wk-invoice-form .form-group {
position: relative;
}
.wk-rm-padding {
padding: 0px;
}
#wkshipping-logo {
max-width: 100px;
}
.wk-left {
float: left;
}
#wk-remove-cart {
margin-right: 5px;
}
.wk-right {
float: right;
}
.wk-login-img img {
margin-right: 10px;
}
.wk-login-img h4 {
padding: 3px;
}
.wkpadding {
padding-left: 0px;
text-align: left;
}
#wk-create-account:focus,
#wk_new_invoice_address:focus {
outline: none;
}
.wk-form-group {
margin-bottom: 20px;
}
.wk-address-block .tab-pane {
padding-top: 1.25rem
}
.wk-address ul li,
.wk-address-block ul li {
color: #414141;
}
#wk-delivery,
#wk-invoice {
padding-top: 25px;
}
.wk-payment-select {
margin-bottom: 10px;
}
.wk-delete-qty {
padding: 7px;
}
.wk-delete-qty i {
color: #414141;
}
.wk-order-product {
background: #f9f9f9;
margin-bottom: 20px;
padding: 7px;
}
.wk-box {
float: left;
width: 100%;
margin-bottom: 20px;
}
.wk-order-container,
.wk-shipping-list,
.wk-payment-list {
margin-bottom: 20px;
display: flex;
align-items: center;
}
.wk-product-img,
.wk-shipping-img {
margin-right: 10px;
}
.wk-product-img img {
border: 1px solid #ddd;
}
.bootstrap-touchspin {
box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.15);
float: left;
display: flex;
}
.bootstrap-touchspin .input-group-btn-vertical i {
position: static;
}
.wk-qty {
float: left;
margin-bottom: 0;
position: relative;
width: 2.4rem !important;
/*overriding for responsiveness */
z-index: 2;
background-color: #fff;
color: #414141;
height: 2.5rem;
padding: 0.175rem 0.5rem;
width: 3rem;
}
.product-price {
color: #414141;
line-height: 36px;
/* padding-top: 10px; */
}
.wk-shipping-info,
.wk-payment-info {
background: #ffffff;
padding: 10px;
}
.wk-sprit {
height: 30px;
width: 30px;
}
.wk-user-icon {
background: url("../img/icons-checkout-process.png") no-repeat scroll 0px 0px rgba(0, 0, 0, 0);
}
.wk-order-icon {
background: url("../img/icons-checkout-process.png") no-repeat scroll -30px 0px rgba(0, 0, 0, 0);
}
.wk-shipping-icon {
background: url("../img/icons-checkout-process.png") no-repeat scroll -60px 0px rgba(0, 0, 0, 0);
}
.wk-payment-icon {
background: url("../img/icons-checkout-process.png") no-repeat scroll -90px 0px rgba(0, 0, 0, 0);
}
.wkbottom {
margin-bottom: 15px;
}
.wk-heading-img {
float: left;
width: 100%;
margin-bottom: 10px;
}
.wk-heading-img h4 {
padding: 5px;
}
.wk-condition {
margin-top: 20px;
}
.custom-checkbox {
margin-right: 10px;
}
.wktext-right {
text-align: right;
}
.wk-order-total {
float: left;
width: 100%;
}
.wk-order-total .wk-box {
margin-bottom: 10px;
}
.wk-order-total .wk-product-val {
text-align: right;
}
p.wkstyle {
border-bottom: 1px solid #cccccc;
float: left;
width: 100%;
}
.wk-voucher-container {
margin-bottom: 20px;
margin-left: 20px;
}
/* .wkvoucher button {
font-size: 12px;
padding: 7px 14px;
text-transform: capitalize;
} */
.wkrelativeposition {
position: relative;
}
.block-promo {
padding: 10px 0px !important;
}
ul.block-promo li {
margin-bottom: 10px;
}
.ps-hidden-by-js,
.js-additional-information,
.js-payment-option-form {
display: none;
}
.product-cover .layer .zoom-in {
font-size: 2.25rem;
}
#wk-products>.products>.product-miniature>.thumbnail-container {
height: 380px;
}
#wk-products>.products>.product-miniature>.thumbnail-container>.highlighted-informations {
height: 7.125rem;
}
#wk-products>.products>.product-miniature>.thumbnail-container>.product-description {
height: 130px;
}
@media only screen and (max-width: 540px) {
.wkcustomizerbtn {
font-size: 10px !important;
}
.wkpadding {
padding: 0px;
}
.wk-custom-payment-icon {
width: 30px;
margin: 10px;
}
.wk-custom-shipping-icon {
width: 30px;
}
/* .wk-shipping-carriers {
clear: both;
content: "";
display: table;
} */
.wk-address ul li,
.wk-login-add ul li {
font-size: 10px;
}
.wk-sm-rm-padding {
padding: 0px;
}
}
@media only screen and (max-width: 767px) {
.wk-payment-list .wkpadding {
display: flex;
flex-wrap: wrap;
padding: 0px 5px;
}
}
/* body#checkout .payment-option {
width: auto !important;
margin-bottom: 0px !important;
} */
body#checkout #wk-one-page-checkout #btree-payment-form .btree-form-content>div:last-child>div:first-child {
width: 100%;
}
body#checkout #wk-one-page-checkout #btree-payment-form .btree-form-content>div:last-child>div:first-child>label {
display: block;
text-align: left;
}
@media (max-width: 767px) {
#wk-one-page-checkout {
background: white;
padding: 15px;
margin-bottom: 15px;
}
}
/* wk-customer.css */
#product-modal .modal-content {
background: transparent none repeat scroll 0 0 !important;
}
#wk_login_pop>.modal-dialog {
width: 500px;
}
.modal-footer {
height: 100px;
margin: 0;
}
.wk-gender {
display: inline-block;
margin-left: 10px;
}
#wk-login-email,
#wk-login-password {
border: 1px solid #ddd;
background: #fff;
}
#wk_login_pop .modal-footer {
text-align: center;
}
;
label.wk-icon {
padding: 0 10px;
}
.wk-icon {
background: #2fb5d2 none repeat scroll 0 0;
border: none;
}
.wk-icon i {
color: #FFF;
font-size: 20px !important;
}
.forget {
font-size: 13px;
text-align: center;
}
.wk-diff-address {
background: #FFFFFF;
padding: 10px;
border: 1px solid #ddd;
}
.wk-social-login {
text-align: center;
margin-bottom: 10px;
}
.wkbtn-fb {
background: #5272B3;
font-size: 14px;
}
.wkbtn-google {
background: #E75B5A;
font-size: 14px;
}
.wk-guest-checkout {
text-align: center;
/* margin-bottom: 15px; */
}
.wk-guest-checkout p {
color: #555555;
/* margin-bottom: 0px;
text-transform: uppercase; */
}
.wk-guest-hr {
background: #2fb5d2 none repeat scroll 0 0;
border-width: 2px 0;
/* float: left; */
/* margin: 0; */
/* width: 75px; */
}
.wkforgot {
margin-top: 10px;
}
.radio-inline {
float: left;
margin-right: 10px;
}
.custom-radio {
margin-right: 4px;
}
.wk-align-center {
display: flex;
align-items: center;
}
.nav-link.active {
color: #e0525c !important;
font-weight: 600;
}
.wk-social-login a#fbLink {
background-image: url("../img/icon-fb.png");
background-position: 7px 10px;
background-repeat: no-repeat;
}
.wk-social-login a#customGmailBtn {
background-image: url("../img/icon-google.png");
background-position: 7px 10px;
background-repeat: no-repeat;
}
.wk-social-login a#customGmailBtn span {
margin-left: 7px;
}
a#customGmailBtn:hover {
background-color: #e63b3a;
color: #FFFFFF !important;
}
a#fbLink:hover {
background-color: #3864bb;
color: #FFFFFF !important;
}
/* wk-customer.css close*/
/* wk-validation.css */
.border-error {
border-color: #FF3333 !important;
}
.border-success {
border-color: #468847 !important;
}
.border-success:focus {
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 6px #7aba7b
}
.border-error:focus {
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 6px #d59392
}
.wk-separator {
float: left;
width: 100%;
display: flex;
align-items: center;
text-align: center;
}
.wk-separator::before,
.wk-separator::after {
content: '';
flex: 1;
border-bottom: 1px solid #000;
}
.wk-separator::before {
margin-right: .25em;
}
.wk-separator::after {
margin-left: .25em;
}
.wkpromo-code::after {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
border-color: transparent transparent #ff4c4c;
border-image: none;
border-style: solid;
border-width: 6px;
bottom: 100%;
content: " ";
height: 0;
left: 10%;
margin-left: -10px;
pointer-events: none;
position: absolute;
width: 0;
}
.wkpromo-code {
background: #ff4c4c none repeat scroll 0 0;
color: #fff;
position: relative;
margin-top: 10px;
padding: 5px 5px;
}
.wkpromo-code i {
font-size: 20px;
width: 24px;
}
#wk-delete-voucher i {
font-size: 20px;
cursor: pointer;
}
span.wk-error {
/* float: left; */
color: red;
margin: 0;
padding: 0;
text-align: right;
}
label.required:after {
content: "*";
color: red;
}
i.wk-check-icon,
i.wk-error-icon {
/* margin-left: -30px;
margin-top: 6px; */
color: #468847;
position: absolute;
right: 5px;
top: 36px;
}
i.wk-error-icon {
color: #FF3333;
position: absolute;
right: 5px;
top: 36px;
}
.wkerrorcolor {
color: #FF3333;
/* float: left; */
}
.wksuccesscolor {
color: #468847;
}
/* Spiner css */
.spinner {
margin: 100px auto 0;
width: 70px;
position: absolute;
left: 30%;
top: 30%;
}
.spinner>div {
width: 18px;
height: 18px;
background-color: #333;
border-radius: 100%;
display: inline-block;
-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}
.spinner .bounce1 {
-webkit-animation-delay: -0.32s;
animation-delay: -0.32s;
}
.spinner .bounce2 {
-webkit-animation-delay: -0.16s;
animation-delay: -0.16s;
}
@-webkit-keyframes sk-bouncedelay {
0%,
80%,
100% {
-webkit-transform: scale(0)
}
40% {
-webkit-transform: scale(1.0)
}
}
@keyframes sk-bouncedelay {
0%,
80%,
100% {
-webkit-transform: scale(0);
transform: scale(0);
}
40% {
-webkit-transform: scale(1.0);
transform: scale(1.0);
}
}
/* wk-validation.css close*/
#wk_shipping_section,
#wk_payment_section {
padding-top: 25px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 739 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 924 B

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;

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 825 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

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 @@
<?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,176 @@
/**
* 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
*/
function addRemoteAddr() {
var ip = $('#wk_ip_address').val();
var length = $('input[name=wk_checkout_ip_address]').attr('value').length;
if (length > 0) {
if ($('input[name=wk_checkout_ip_address]').attr('value').indexOf(ip) < 0) {
$('input[name=wk_checkout_ip_address]').attr('value', ip);
}
} else {
$('input[name=wk_checkout_ip_address]').attr('value', ip);
}
}
// ----- On clicking checkout mode ----------------------------------
$(document).on('change', 'input[name=wk_checkout_mode]', function() {
if ($(this).val() == '1') {
$('.wk-general-setting').show('slow');
} else {
$('.wk-general-setting').hide('slow');
}
});
$(document).ready(function() {
if ($('input[name=wk_checkout_mode]:checked').val() == '1') {
$('.wk-general-setting').show('slow');
} else {
$('.wk-general-setting').hide();
}
});
// ----- End of code ----------------------------------
// ----- On clicking sanbox ----------------------------------
$(document).on('change', 'input[name=wk_checkout_sandbox]', function() {
if ($(this).val() == '1') {
$('.wk-checkout-ips').show('slow');
} else {
$('.wk-checkout-ips').hide('slow');
}
});
$(document).ready(function() {
if ($('input[name=wk_checkout_sandbox]:checked').val() == '1') {
$('.wk-checkout-ips').show('slow');
} else {
$('.wk-checkout-ips').hide();
}
});
// ----- End of code ----------------------------------
// ------------ On clicking social login ---------------------
$(document).on('change', 'input[name=wk_checkout_social_login]', function() {
if ($(this).val() == '1') {
$('.wk-social-login-tabs').show('slow');
} else {
$('.wk-social-login-tabs').hide('slow');
}
});
$(document).ready(function() {
if ($('input[name=wk_checkout_social_login]:checked').val() == '1') {
$('.wk-social-login-tabs').show('slow');
} else {
$('.wk-social-login-tabs').hide();
}
});
// ----- End of code ----------------------------------
// ------------ On clicking facebook ---------------------
$(document).on('change', 'input[name=wk_checkout_facebook_login]', function() {
if ($(this).val() == '1') {
$('.wk_checkout_fb_config').show('slow');
} else {
$('.wk_checkout_fb_config').hide('slow');
}
});
$(document).ready(function() {
if ($('input[name=wk_checkout_facebook_login]:checked').val() == '1') {
$('.wk_checkout_fb_config').show('slow');
} else {
$('.wk_checkout_fb_config').hide('slow');
}
});
// ----- End of code ----------------------------------
// ------------ On clicking Google login ---------------------
$(document).on('change', 'input[name=wk_checkout_google_login]', function() {
if ($(this).val() == '1') {
$('.wk_checkout_google_config').show('slow');
} else {
$('.wk_checkout_google_config').hide('slow');
}
});
$(document).ready(function() {
if ($('input[name=wk_checkout_google_login]:checked').val() == '1') {
$('.wk_checkout_google_config').show('slow');
} else {
$('.wk_checkout_google_config').hide('slow');
}
// Terms n Condition on load
if ($('input[name=wk_checkout_terms_service]:checked').val() == '1') {
$('.wk_checkout_terms_option').show('slow');
} else {
$('.wk_checkout_terms_option').hide('slow');
}
// Who bought also bought
if ($('input[name=wk_checkout_cart_also_bought]:checked').val() == '1') {
$('.wk_checkout_also_bought_number').show('slow');
} else {
$('.wk_checkout_also_bought_number').hide('slow');
}
});
// ----- End of code ----------------------------------
// Delivery Address required field
$(document).on('click', '.wk_delivery_req_field', function() {
if ($(this).attr('data-required') == 1) {
if ($(this).is(':checked')) {
var field = $(this).attr('data-field-value');
$('#' + field).attr('checked', 'checked');
}
} else {
if ($(this).is(':checked')) {
// var field = $(this).attr('data-field-value');
// $('#'+field).attr('checked', 'checked');
} else {
var field = $(this).attr('data-field-value');
$('#' + field).removeAttr('checked', 'checked');
}
}
});
// Terms n Condition on change
$(document).on('change', 'input[name=wk_checkout_terms_service]', function() {
if ($(this).val() == '1') {
$('.wk_checkout_terms_option').show('slow');
} else {
$('.wk_checkout_terms_option').hide('slow');
}
});
// Who bought also bought
$(document).on('change', 'input[name=wk_checkout_cart_also_bought]', function() {
if ($(this).val() == '1') {
$('.wk_checkout_also_bought_number').show('slow');
} else {
$('.wk_checkout_also_bought_number').hide('slow');
}
});
$.fn.mColorPicker.defaults.imageFolder = '../img/admin/';

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,79 @@
/**
* 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
*/
$(document).on('click', '#wk-add-into-cart', function() {
var idProduct = $(this).attr('data-id-product');
var idProductAttribute = $(this).attr('data-id-product-attribute');
var quantity = $(this).attr('data-quantity');
if (idProduct) {
$.ajax({
type: 'POST',
url: wkmycart,
cache: false,
async: false,
data: {
'ajax': true,
'action': 'processChangeProductInCart',
'token': wktoken,
'add': 1,
'qty': quantity,
'id_product': idProduct,
'idProductAttribute': idProductAttribute,
},
beforeSend: function() {
$('#wk-cart-loader').show();
},
complete: function() {
$('#wk-cart-loader').hide();
},
success: function(result) {
if (result == '1') {
window.location.href = wkorder;
} else if (result == '0') {
wkShowError(wkNoLongerMsg);
return false;
} else if (result == '2') {
wkShowError(wkOutofStockMsg);
return false;
} else if (result == '3') {
wkShowError(wkAddMsg);
return false;
} else if (result == '4') {
wkShowError(wkMaxMsg);
return false;
}
},
error: function() {},
});
}
});
function wkShowError(msg) {
$.growl.error({ title: "", message: msg });
}
function wkShowSuccess(msg) {
$.growl.notice({ title: "", message: msg });
}
$(document).on('click', '#wk-delete-cart', function() {
var idProduct = $(this).attr('data-id-product');
var idProductAttribute = $(this).attr('data-id-product-attribute');
$('#wk-cart-loader-' + idProduct + '-' + idProductAttribute).show();
});

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,121 @@
/**
* 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 ((typeof wk_fb_app_id !== 'undefined' && typeof wk_fb_secret_key !== 'undefined') && typeof is_logged === 'undefined') {
window.fbAsyncInit = function() {
// FB JavaScript SDK configuration and setup
FB.init({
appId: wk_fb_app_id, // FB App ID
cookie: true, // enable cookies to allow the server to access the session
xfbml: true, // parse social plugins on this page
version: 'v2.8' // use graph api version 2.8
});
};
// Load the JavaScript SDK asynchronously
(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/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
// Facebook login with JavaScript SDK
function fbLogin() {
if (typeof FB != 'undefined') {
FB.login(function(response) {
if (response.authResponse) {
// Get and display the user profile data
getFbUserData();
} else {
showErrorMsg(user_cancel);
//document.getElementById('status').innerHTML = user_cancel;
}
}, { scope: 'email' });
} else {
showErrorMsg(fbConnectionError);
}
}
// Fetch the user profile data from facebook
function getFbUserData() {
FB.api('/me', { locale: 'en_US', fields: 'id,first_name,last_name,email,gender,locale' },
function(response) {
var isValidated = validateFacebookResponse(response);
if (isValidated == true) {
proceedLogin(response.first_name, response.last_name, response.email);
}
});
}
function validateFacebookResponse(response) {
if (!response.first_name || response.first_name === 'undefined') {
deleteFacebookPermissions();
showErrorMsg(error_fname);
} else if (!response.last_name || response.last_name === 'undefined') {
deleteFacebookPermissions();
showErrorMsg(error_lname);
} else if (!response.email || response.email === 'undefined') {
deleteFacebookPermissions();
showErrorMsg(error_email);
} else {
return true;
}
return false;
}
function deleteFacebookPermissions() {
FB.api("/me/permissions", "DELETE");
}
}
function showErrorMsg(msg) {
$.growl.error({ title: "", message: msg });
}
function showSuccessMsg(msg) {
$.growl.error({ title: "", message: msg });
}
function proceedLogin(first_name, last_name, email) {
if (first_name && last_name && email) {
$.ajax({
type: "POST",
url: wkcheckout,
async: false,
dataType: 'json',
data: {
ajax: true,
action: 'proceedLogin',
first_name: first_name,
last_name: last_name,
email: email,
token: wktoken,
},
success: function(result) {
if (result == '1') {
window.location.reload(true);
}
}
});
}
}

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,510 @@
{**
* 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="row">
<div class="col-sm-5 panel" style="width:48%;">
<div class="panel-heading">
<p>{l s='Delivery Address' mod='wkonepagecheckout'}</p>
</div>
<div class="panel-body">
<form action="{$currentIndex}" class="defaultForm form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-wrapper">
<div class="form-group">
<label class="control-label col-lg-5">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='If Yes, then the invoice address will be same as delivery address' mod='wkonepagecheckout'}">{l s='Set delivery address as invoice address : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-6 col-md-offset-1">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_delivery_as_invoice" id="wk_checkout_delivery_as_invoice_on" value="1"
{if isset($smarty.post.wk_checkout_delivery_as_invoice) && $smarty.post.wk_checkout_delivery_as_invoice == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_DELIVERY_AS_INVOICE == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_delivery_as_invoice)}checked="checked"{/if}>
<label for="wk_checkout_delivery_as_invoice_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_delivery_as_invoice" id="wk_checkout_delivery_as_invoice_off" value="0" {if $configValues.WK_CHECKOUT_DELIVERY_AS_INVOICE == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_guest_allow) && $smarty.post.wk_checkout_delivery_as_invoice == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_delivery_as_invoice" id="wk_checkout_delivery_as_invoice_off" value="0" {if isset($smarty.post.wk_checkout_delivery_as_invoice) && $smarty.post.wk_checkout_delivery_as_invoice == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_delivery_as_invoice_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
<div class="help-block">{l s='Use delivery address as invoice address' mod='wkonepagecheckout'}</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-5">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Show company input field for delivery address' mod='wkonepagecheckout'}">{l s='Company : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-6 col-md-offset-1 checkbox">
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_DELIVERY_COMPANY_SHOW == '1'}checked="checked"{/if}
data-required="0"
data-field-value="wk_checkout_delivery_company_req"
class="wk_delivery_req_field"
type="checkbox"
value="1"
name="wk_checkout_delivery_company_show"
id="wk_checkout_delivery_company_show">
<span>{l s='Show' mod='wkonepagecheckout'}</span>
</label>
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_DELIVERY_COMPANY_REQ == '1'}checked="checked"{/if}
data-required="1"
data-field-value="wk_checkout_delivery_company_show"
class="wk_delivery_req_field"
type="checkbox"
value="2"
name="wk_checkout_delivery_company_req"
id="wk_checkout_delivery_company_req">
<span>{l s='Required' mod='wkonepagecheckout'}</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-5">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Show VAT number input field for delivery address' mod='wkonepagecheckout'}">{l s='VAT Number : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-6 col-md-offset-1 checkbox">
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_DELIVERY_VAT_SHOW == '1'}checked="checked"{/if}
data-required="0"
data-field-value="wk_checkout_delivery_vat_req"
class="wk_delivery_req_field"
type="checkbox"
value="1"
name="wk_checkout_delivery_vat_show"
id="wk_checkout_delivery_vat_show">
<span>{l s='Show' mod='wkonepagecheckout'}</span>
</label>
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_DELIVERY_VAT_REQ == '1'}checked="checked"{/if}
data-required="1"
data-field-value="wk_checkout_delivery_vat_show"
class="wk_delivery_req_field"
type="checkbox"
value="2"
name="wk_checkout_delivery_vat_req"
id="wk_checkout_delivery_vat_req">
<span>{l s='Required' mod='wkonepagecheckout'}</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-5">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Show address complement input field for delivery address' mod='wkonepagecheckout'}">{l s='Address Complement : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-6 col-md-offset-1 checkbox">
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_DELIVERY_ADDRESS_COMPANY_SHOW == '1'}checked="checked"{/if}
data-required="0"
data-field-value="wk_checkout_delivery_add_comp_req"
class="wk_delivery_req_field"
type="checkbox"
value="1"
name="wk_checkout_delivery_add_comp_show"
id="wk_checkout_delivery_add_comp_show">
<span>{l s='Show' mod='wkonepagecheckout'}</span>
</label>
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_DELIVERY_ADDRESS_COMPANY_REQ == '1'}checked="checked"{/if}
data-required="1"
data-field-value="wk_checkout_delivery_add_comp_show"
class="wk_delivery_req_field"
type="checkbox"
value="2"
name="wk_checkout_delivery_add_comp_req"
id="wk_checkout_delivery_add_comp_req">
<span>{l s='Required' mod='wkonepagecheckout'}</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-5">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Show phone input field for delivery address' mod='wkonepagecheckout'}">{l s='Phone : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-6 col-md-offset-1 checkbox">
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_DELIVERY_PHONE_SHOW == '1'}checked="checked"{/if}
data-required="0"
data-field-value="wk_checkout_delivery_phone_req"
class="wk_delivery_req_field"
type="checkbox"
value="1"
name="wk_checkout_delivery_phone_show"
id="wk_checkout_delivery_phone_show">
<span>{l s='Show' mod='wkonepagecheckout'}</span>
</label>
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_DELIVERY_PHONE_REQ == '1'}checked="checked"{/if}
data-required="1"
data-field-value="wk_checkout_delivery_phone_show"
class="wk_delivery_req_field"
type="checkbox"
value="2"
name="wk_checkout_delivery_phone_req"
id="wk_checkout_delivery_phone_req">
<span>{l s='Required' mod='wkonepagecheckout'}</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-5">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Show mobile phone input field for delivery address' mod='wkonepagecheckout'}">{l s='Mobile Phone : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-6 col-md-offset-1 checkbox">
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_DELIVERY_MOBILE_PHONE_SHOW == '1'}checked="checked"{/if}
data-required="0"
data-field-value="wk_checkout_delivery_mobile_phone_req"
class="wk_delivery_req_field"
type="checkbox"
value="1"
name="wk_checkout_delivery_mobile_phone_show"
id="wk_checkout_delivery_mobile_phone_show">
<span>{l s='Show' mod='wkonepagecheckout'}</span>
</label>
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_DELIVERY_MOBILE_PHONE_REQ == '1'}checked="checked"{/if}
data-required="1"
data-field-value="wk_checkout_delivery_mobile_phone_show"
class="wk_delivery_req_field"
type="checkbox"
value="2"
name="wk_checkout_delivery_mobile_phone_req"
id="wk_checkout_delivery_mobile_phone_req">
<span>{l s='Required' mod='wkonepagecheckout'}</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-5">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Show other information input field for delivery address' mod='wkonepagecheckout'}">{l s='Other Information : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-6 col-md-offset-1 checkbox">
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_DELIVERY_OTHER_SHOW == '1'}checked="checked"{/if}
data-required="0"
data-field-value="wk_checkout_delivery_other_req"
class="wk_delivery_req_field"
type="checkbox"
value="1"
name="wk_checkout_delivery_other_show"
id="wk_checkout_delivery_other_show">
<span>{l s='Show' mod='wkonepagecheckout'}</span>
</label>
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_DELIVERY_OTHER_REQ == '1'}checked="checked"{/if}
data-required="1"
data-field-value="wk_checkout_delivery_other_show"
class="wk_delivery_req_field"
type="checkbox"
value="2"
name="wk_checkout_delivery_other_req"
id="wk_checkout_delivery_other_req">
<span>{l s='Required' mod='wkonepagecheckout'}</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-5">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Show address alias input field for delivery address' mod='wkonepagecheckout'}">{l s='Address Alias : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-6 col-md-offset-1 checkbox">
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_DELIVERY_ALIAS_SHOW == '1'}checked="checked"{/if}
data-required="0"
data-field-value="wk_checkout_delivery_alias_req"
class="wk_delivery_req_field"
type="checkbox"
value="1"
name="wk_checkout_delivery_alias_show"
id="wk_checkout_delivery_alias_show">
<span>{l s='Show' mod='wkonepagecheckout'}</span>
</label>
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_DELIVERY_ALIAS_REQ == '1'}checked="checked"{/if}
data-required="1"
data-field-value="wk_checkout_delivery_alias_show"
class="wk_delivery_req_field"
type="checkbox"
value="2"
name="wk_checkout_delivery_alias_req"
id="wk_checkout_delivery_alias_req">
<span>{l s='Required' mod='wkonepagecheckout'}</span>
</label>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" name="submitDeliveryAddress" class="btn btn-default pull-right">
<i class="process-icon-save"></i> {l s='Save' mod='wkonepagecheckout'}
</button>
</div>
</form>
</div>
</div>
<div class="col-sm-1" style="width:1%;"></div>
<div class="col-sm-5 panel" style="width:48%;">
<div class="panel-heading">
<p>{l s='Invoice Address' mod='wkonepagecheckout'}</p>
</div>
<div class="panel-body">
<form action="" class="defaultForm form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-wrapper">
<div class="form-group">
<label class="control-label col-lg-5">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Show company input field for invoice address' mod='wkonepagecheckout'}">{l s='Company : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-6 col-md-offset-1 checkbox">
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_INVOICE_COMPANY_SHOW == '1'}checked="checked"{/if}
data-required="0"
data-field-value="wk_checkout_invoice_company_req"
class="wk_delivery_req_field"
type="checkbox"
value="1"
name="wk_checkout_invoice_company_show"
id="wk_checkout_invoice_company_show">
<span>{l s='Show' mod='wkonepagecheckout'}</span>
</label>
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_INVOICE_COMPANY_REQ == '1'}checked="checked"{/if}
data-required="1"
data-field-value="wk_checkout_invoice_company_show"
class="wk_delivery_req_field"
type="checkbox"
value="2"
name="wk_checkout_invoice_company_req"
id="wk_checkout_invoice_company_req">
<span>{l s='Required' mod='wkonepagecheckout'}</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-5">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Show VAT number input field for invoice address' mod='wkonepagecheckout'}">{l s='VAT Number : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-6 col-md-offset-1 checkbox">
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_INVOICE_VAT_SHOW == '1'}checked="checked"{/if}
data-required="0"
data-field-value="wk_checkout_invoice_vat_req"
class="wk_delivery_req_field"
type="checkbox"
value="1"
name="wk_checkout_invoice_vat_show"
id="wk_checkout_invoice_vat_show">
<span>{l s='Show' mod='wkonepagecheckout'}</span>
</label>
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_INVOICE_VAT_REQ == '1'}checked="checked"{/if}
data-required="1"
data-field-value="wk_checkout_invoice_vat_show"
class="wk_delivery_req_field"
type="checkbox"
value="2"
name="wk_checkout_invoice_vat_req"
id="wk_checkout_invoice_vat_req">
<span>{l s='Required' mod='wkonepagecheckout'}</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-5">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Show address complement input field for invoice address' mod='wkonepagecheckout'}">{l s='Address Complement : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-6 col-md-offset-1 checkbox">
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_INVOICE_ADDRESS_COMPANY_SHOW == '1'}checked="checked"{/if}
data-required="0"
data-field-value="wk_checkout_invoice_add_comp_req"
class="wk_delivery_req_field"
type="checkbox"
value="1"
name="wk_checkout_invoice_add_comp_show"
id="wk_checkout_invoice_add_comp_show">
<span>{l s='Show' mod='wkonepagecheckout'}</span>
</label>
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_INVOICE_ADDRESS_COMPANY_REQ == '1'}checked="checked"{/if}
data-required="1"
data-field-value="wk_checkout_invoice_add_comp_show"
class="wk_delivery_req_field"
type="checkbox"
value="2"
name="wk_checkout_invoice_add_comp_req"
id="wk_checkout_invoice_add_comp_req">
<span>{l s='Required' mod='wkonepagecheckout'}</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-5">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Show phone input field for invoice address' mod='wkonepagecheckout'}">{l s='Phone : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-6 col-md-offset-1 checkbox">
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_INVOICE_PHONE_SHOW == '1'}checked="checked"{/if}
data-required="0"
data-field-value="wk_checkout_invoice_phone_req"
class="wk_delivery_req_field"
type="checkbox"
value="1"
name="wk_checkout_invoice_phone_show"
id="wk_checkout_invoice_phone_show">
<span>{l s='Show' mod='wkonepagecheckout'}</span>
</label>
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_INVOICE_PHONE_REQ == '1'}checked="checked"{/if}
data-required="1"
data-field-value="wk_checkout_invoice_phone_show"
class="wk_delivery_req_field"
type="checkbox"
value="2"
name="wk_checkout_invoice_phone_req"
id="wk_checkout_invoice_phone_req">
<span>{l s='Required' mod='wkonepagecheckout'}</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-5">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Show mobile phone input field for invoice address' mod='wkonepagecheckout'}">{l s='Mobile Phone : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-6 col-md-offset-1 checkbox">
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_INVOICE_MOBILE_PHONE_SHOW == '1'}checked="checked"{/if}
data-required="0"
data-field-value="wk_checkout_invoice_mobile_phone_req"
class="wk_delivery_req_field"
type="checkbox"
value="1"
name="wk_checkout_invoice_mobile_phone_show"
id="wk_checkout_invoice_mobile_phone_show">
<span>{l s='Show' mod='wkonepagecheckout'}</span>
</label>
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_INVOICE_MOBILE_PHONE_REQ == '1'}checked="checked"{/if}
data-required="1"
data-field-value="wk_checkout_invoice_mobile_phone_show"
class="wk_delivery_req_field"
type="checkbox"
value="2"
name="wk_checkout_invoice_mobile_phone_req"
id="wk_checkout_invoice_mobile_phone_req">
<span>{l s='Required' mod='wkonepagecheckout'}</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-5">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Show other information input field for invoice address' mod='wkonepagecheckout'}">{l s='Other Information : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-6 col-md-offset-1 checkbox">
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_INVOICE_OTHER_SHOW == '1'}checked="checked"{/if}
data-required="0"
data-field-value="wk_checkout_invoice_other_req"
class="wk_delivery_req_field"
type="checkbox"
value="1"
name="wk_checkout_invoice_other_show"
id="wk_checkout_invoice_other_show">
<span>{l s='Show' mod='wkonepagecheckout'}</span>
</label>
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_INVOICE_OTHER_REQ == '1'}checked="checked"{/if}
data-required="1"
data-field-value="wk_checkout_invoice_other_show"
class="wk_delivery_req_field"
type="checkbox"
value="2"
name="wk_checkout_invoice_other_req"
id="wk_checkout_invoice_other_req">
<span>{l s='Required' mod='wkonepagecheckout'}</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-5">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Show address alias input field for invoice address' mod='wkonepagecheckout'}">{l s='Address Alias : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-6 col-md-offset-1 checkbox">
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_INVOICE_ALIAS_SHOW == '1'}checked="checked"{/if}
data-required="0"
data-field-value="wk_checkout_invoice_alias_req"
class="wk_delivery_req_field"
type="checkbox"
value="1"
name="wk_checkout_invoice_alias_show"
id="wk_checkout_invoice_alias_show">
<span>{l s='Show' mod='wkonepagecheckout'}</span>
</label>
<label class="custom_checkbox">
<input
{if $configValues.WK_CHECKOUT_INVOICE_ALIAS_REQ == '1'}checked="checked"{/if}
data-required="1"
data-field-value="wk_checkout_invoice_alias_show"
class="wk_delivery_req_field"
type="checkbox"
value="2"
name="wk_checkout_invoice_alias_req"
id="wk_checkout_invoice_alias_req">
<span>{l s='Required' mod='wkonepagecheckout'}</span>
</label>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" name="submitInvoiceAddress" class="btn btn-default pull-right">
<i class="process-icon-save"></i> {l s='Save' mod='wkonepagecheckout'}
</button>
</div>
</form>
</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
*}
<form action="{$currentIndex}" class="defaultForm form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-wrapper">
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Show cart details before checkout : ' mod='wkonepagecheckout'}
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_cart_detail" id="wk_checkout_cart_detail_on" value="1"
{if isset($smarty.post.wk_checkout_cart_detail) && $smarty.post.wk_checkout_cart_detail == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_CART_DETAIL == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_cart_detail)}checked="checked"{/if}>
<label for="wk_checkout_cart_detail_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_cart_detail" id="wk_checkout_cart_detail_off" value="0" {if $configValues.WK_CHECKOUT_CART_DETAIL == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_cart_detail) && $smarty.post.wk_checkout_cart_detail == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_cart_detail" id="wk_checkout_cart_detail_off" value="0" {if isset($smarty.post.wk_checkout_cart_detail) && $smarty.post.wk_checkout_cart_detail == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_cart_detail_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Allow customer to save for later : ' mod='wkonepagecheckout'}
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_cart_save_later" id="wk_checkout_cart_save_later_on" value="1"
{if isset($smarty.post.wk_checkout_cart_save_later) && $smarty.post.wk_checkout_cart_save_later == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_CART_SAVE_LATER == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_cart_save_later)}checked="checked"{/if}>
<label for="wk_checkout_cart_save_later_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_cart_save_later" id="wk_checkout_cart_save_later_off" value="0" {if $configValues.WK_CHECKOUT_CART_SAVE_LATER == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_cart_save_later) && $smarty.post.wk_checkout_cart_save_later == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_cart_save_later" id="wk_checkout_cart_save_later_off" value="0" {if isset($smarty.post.wk_checkout_cart_save_later) && $smarty.post.wk_checkout_cart_save_later == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_cart_save_later_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
<div class="help-block">{l s='Customer can save cart product for future purchase' mod='wkonepagecheckout'}</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Show who bought also bought feature below the checkout page : ' mod='wkonepagecheckout'}
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_cart_also_bought" id="wk_checkout_cart_also_bought_on" value="1"
{if isset($smarty.post.wk_checkout_cart_also_bought) && $smarty.post.wk_checkout_cart_also_bought == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_CART_ALSO_BOUGHT == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_cart_also_bought)}checked="checked"{/if}>
<label for="wk_checkout_cart_also_bought_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_cart_also_bought" id="wk_checkout_cart_also_bought_off" value="0" {if $configValues.WK_CHECKOUT_CART_ALSO_BOUGHT == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_cart_also_bought) && $smarty.post.wk_checkout_cart_also_bought == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_cart_also_bought" id="wk_checkout_cart_also_bought_off" value="0" {if isset($smarty.post.wk_checkout_cart_also_bought) && $smarty.post.wk_checkout_cart_also_bought == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_cart_also_bought_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group wk_checkout_also_bought_number">
<label class="control-label col-lg-3 required">
{l s='Number of displayed products : ' mod='wkonepagecheckout'}
</label>
<div class="col-lg-3">
<input type="text" value="{$configValues.WK_CHECKOUT_ALSO_BOUGHT_NUMBER}" id="wk_checkout_also_bought_number" name="wk_checkout_also_bought_number">
<div class="help-block">{l s='Set the number of products displayed in this block.' mod='wkonepagecheckout'} </div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Size of Product image on cart : ' mod='wkonepagecheckout'}
</label>
<div class="col-lg-3">
<select name="wk_checkout_product_image" id="wk_checkout_product_image">
<option {if $configValues.WK_CHECKOUT_PRODUCT_IMAGE == '1'}selected="selected"{/if} value="1">{l s='50 x 50' mod='wkonepagecheckout'}</option>
<option {if $configValues.WK_CHECKOUT_PRODUCT_IMAGE == '2'}selected="selected"{/if} value="2">{l s='80 x 80' mod='wkonepagecheckout'}</option>
<option {if $configValues.WK_CHECKOUT_PRODUCT_IMAGE == '3'}selected="selected"{/if} value="3">{l s='100 x 100' mod='wkonepagecheckout'}</option>
</select>
<div class="help-block">{l s='Set width x height of product image on cart' mod='wkonepagecheckout'}</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Terms of service : ' mod='wkonepagecheckout'}
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_terms_service" id="wk_checkout_terms_service_on" value="1"
{if isset($smarty.post.wk_checkout_terms_service) && $smarty.post.wk_checkout_terms_service == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_TERMS_SERVICE == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_terms_service)}checked="checked"{/if}>
<label for="wk_checkout_terms_service_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_terms_service" id="wk_checkout_terms_service_off" value="0" {if $configValues.WK_CHECKOUT_TERMS_SERVICE == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_terms_service) && $smarty.post.wk_checkout_terms_service == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_terms_service" id="wk_checkout_terms_service_off" value="0" {if isset($smarty.post.wk_checkout_terms_service) && $smarty.post.wk_checkout_terms_service == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_terms_service_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group wk_checkout_terms_option">
<label class="control-label col-lg-3 required">
{l s='Page for Terms and Condition : ' mod='wkonepagecheckout'}
</label>
<div class="col-lg-3">
<select name="wk_checkout_terms_option" id="wk_checkout_terms_option" class="form-control">
<option value="0">--</option>
{if isset($cmsCondition) && $cmsCondition}
{foreach $cmsCondition as $condition}
<option {if $configValues.WK_CHECKOUT_TERMS_OPTION == $condition.id_cms}selected="selected"{/if} value="{$condition.id_cms}">{$condition.meta_title}</option>
{/foreach}
{/if}
</select>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" name="submitCart" class="btn btn-default pull-right">
<i class="process-icon-save"></i> {l s='Save' mod='wkonepagecheckout'}
</button>
</div>
</form>

View File

@@ -0,0 +1,78 @@
{**
* 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
*}
<form action="{$currentIndex}" class="defaultForm form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-group">
<label class="control-label col-lg-3 required">
{l s='Checkout Button Color : ' mod='wkonepagecheckout'}
</label>
<div class="input-group col-lg-3">
<input type="color" data-hex="true" class="color" name="wk_checkout_button_color" value="{$configValues.WK_CHECKOUT_BUTTON_COLOR}" />
</div>
<div class="help-block col-md-offset-3">{l s='Button color will change on one page checkout page' mod='wkonepagecheckout'}</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
{l s='Checkout Button Font size : ' mod='wkonepagecheckout'}
</label>
<div class="input-group col-lg-3">
<input type="text" class="form-control" name="wk_checkout_button_font_size" value="{$configValues.WK_CHECKOUT_BUTTON_FONT_SIZE}" maxlength="2" />
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
{l s='Checkout Button Font Color : ' mod='wkonepagecheckout'}
</label>
<div class="input-group col-lg-3">
<input type="color" data-hex="true" class="form-control" name="wk_checkout_button_font_color" value="{$configValues.WK_CHECKOUT_BUTTON_FONT_COLOR}"/>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Checkout Button Font Family : ' mod='wkonepagecheckout'}
</label>
<div class="input-group col-lg-3">
<select name="wk_checkout_button_font_family">
<option value="1" {if $configValues.WK_CHECKOUT_BUTTON_FONT_FAMILY == 1} selected="selected"{/if}>
Arial, Helvetica, sans-serif
</option>
<option value="2" {if $configValues.WK_CHECKOUT_BUTTON_FONT_FAMILY == 2} selected="selected"{/if}>
Comic Sans MS,cursive,sans-serif
</option>
<option value="3" {if $configValues.WK_CHECKOUT_BUTTON_FONT_FAMILY == 3} selected="selected"{/if}>
Lucida Sans Unicode, Lucida Grande, sans-serif
</option>
<option value="4" {if $configValues.WK_CHECKOUT_BUTTON_FONT_FAMILY == 4} selected="selected"{/if}>
Courier New, Courier, monospace
</option>
<option value="5" {if $configValues.WK_CHECKOUT_BUTTON_FONT_FAMILY == 5} selected="selected"{/if}>
Lucida Console, Monaco, monospace
</option>
<option value="6" {if $configValues.WK_CHECKOUT_BUTTON_FONT_FAMILY == 6} selected="selected"{/if}>
Montserrat, sans-serif
</option>
</select>
</div>
</div>
<div class="panel-footer">
<button type="submit" name="submitCustomizer" class="btn btn-default pull-right">
<i class="process-icon-save"></i> {l s='Save' mod='wkonepagecheckout'}
</button>
</div>
</form>

View File

@@ -0,0 +1,88 @@
{**
* 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
*}
<form action="{$currentIndex}" class="defaultForm form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-wrapper">
<div class="form-group">
<label class="control-label col-lg-3">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='If No, then module functionality gets disabled' mod='wkonepagecheckout'}">{l s='Enable One Page Checkout : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_mode" id="wk_checkout_mode_on" value="1"
{if isset($smarty.post.wk_checkout_mode) && $smarty.post.wk_checkout_mode == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_MODE == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_mode)}checked="checked"{/if}>
<label for="wk_checkout_mode_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_mode" id="wk_checkout_mode_off" value="0" {if $configValues.WK_CHECKOUT_MODE == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_mode) && $smarty.post.wk_checkout_mode == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_mode" id="wk_checkout_mode_off" value="0" {if isset($smarty.post.wk_checkout_mode) && $smarty.post.wk_checkout_mode == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_mode_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="wk-general-setting">
<div class="form-group">
<label class="control-label col-lg-3">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='If enabled, then onepagecheckout will only work on specific IP Address' mod='wkonepagecheckout'}">{l s='Sandbox Mode : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_sandbox" id="wk_checkout_sandbox_on" value="1"
{if isset($smarty.post.wk_checkout_sandbox) && $smarty.post.wk_checkout_sandbox == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_SANDBOX == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_sandbox)}checked="checked"{/if}>
<label for="wk_checkout_sandbox_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_sandbox" id="wk_checkout_sandbox_off" value="0" {if $configValues.WK_CHECKOUT_SANDBOX == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_sandbox) && $smarty.post.wk_checkout_sandbox == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_sandbox" id="wk_checkout_sandbox_off" value="0" {if isset($smarty.post.wk_checkout_sandbox) && $smarty.post.wk_checkout_sandbox == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_sandbox_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
<div class="help-block">{l s='Check one page checkout module on specific IP Address' mod='wkonepagecheckout'}</div>
</div>
</div>
<div class="form-group wk-checkout-ips wkhide">
<label class="control-label col-lg-3 required">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='IP addresses on which one page checkout is applicable' mod='wkonepagecheckout'}">{l s='Add IP Address : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-9">
<div class="col-lg-6">
<input type="hidden" value="{if isset($ip)}{$ip}{/if}" name="wk_ip_address" id="wk_ip_address">
<input type="text" value="{$configValues.WK_CHECKOUT_IPS}" name="wk_checkout_ip_address" id="wk_checkout_ip_address">
</div>
<div class="col-lg-2">
<button onclick="addRemoteAddr();" class="btn btn-default" type="button"><i class="icon-plus"></i> {l s=' Add my IP' mod='wkonepagecheckout'}</button>
</div>
<div class="help-block col-lg-9">{l s='Add multiple IPs separated by comma(,)' mod='wkonepagecheckout'}</div>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" name="submitGeneralConfig" class="btn btn-default pull-right">
<i class="process-icon-save"></i> {l s='Save' mod='wkonepagecheckout'}
</button>
</div>
</form>

View File

@@ -0,0 +1,189 @@
{**
* 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
*}
<form action="{$currentIndex}" class="defaultForm form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-wrapper">
<div class="form-group">
<label class="control-label col-lg-3">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Allow guest visitors to place an order without registering' mod='wkonepagecheckout'}">{l s='Enable Guest Checkout : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_guest_allow" id="wk_checkout_guest_allow_on" value="1"
{if isset($smarty.post.wk_checkout_guest_allow) && $smarty.post.wk_checkout_guest_allow == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_GUEST_ALLOW == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_guest_allow)}checked="checked"{/if}>
<label for="wk_checkout_guest_allow_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_guest_allow" id="wk_checkout_guest_allow_off" value="0" {if $configValues.WK_CHECKOUT_GUEST_ALLOW == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_guest_allow) && $smarty.post.wk_checkout_guest_allow == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_guest_allow" id="wk_checkout_guest_allow_off" value="0" {if isset($smarty.post.wk_checkout_guest_allow) && $smarty.post.wk_checkout_guest_allow == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_guest_allow_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='This group will be user\'s default group. Only the discount for the selected group will be applied to this customer' mod='wkonepagecheckout'}">{l s='Default Customer Group For New Customers : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-4">
<select name="wk_checkout_default_group" id="wk_checkout_default_group" class="form-control">
{if isset($getGroups)}
{foreach $getGroups as $group}
<option value="{$group.id_group}" {if $configValues.WK_CHECKOUT_DEFAULT_GROUP == $group.id_group}selected="selected"{/if}>{$group.name}</option>
{/foreach}
{/if}
</select>
</div>
</div>
{* <div class="form-group">
<label class="control-label col-lg-3">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Show button to save address before checkout only for logged in customers' mod='wkonepagecheckout'}">{l s='Show save button for address : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_show_address_button" id="wk_checkout_show_address_button_on" value="1"
{if isset($smarty.post.wk_checkout_show_address_button) && $smarty.post.wk_checkout_show_address_button == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_SHOW_ADDRESS_BUTTON == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_show_address_button)}checked="checked"{/if}>
<label for="wk_checkout_show_address_button_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_show_address_button" id="wk_checkout_show_address_button_off" value="0" {if $configValues.WK_CHECKOUT_SHOW_ADDRESS_BUTTON == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_show_address_button) && $smarty.post.wk_checkout_show_address_button == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_show_address_button" id="wk_checkout_guest_allow_off" value="0" {if isset($smarty.post.wk_checkout_show_address_button) && $smarty.post.wk_checkout_show_address_button == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_show_address_button_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div> *}
<div class="form-group">
<label class="control-label col-lg-3">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Inline validation will check when customer move cursor from the input field' mod='wkonepagecheckout'}">{l s='Inline validation will check immediately to the input fields of address : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_inline_validation" id="wk_checkout_inline_validation_on" value="1"
{if isset($smarty.post.wk_checkout_inline_validation) && $smarty.post.wk_checkout_inline_validation == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_INLINE_VALIDATION == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_inline_validation)}checked="checked"{/if}>
<label for="wk_checkout_inline_validation_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_inline_validation" id="wk_checkout_inline_validation_off" value="0" {if $configValues.WK_CHECKOUT_INLINE_VALIDATION == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_inline_validation) && $smarty.post.wk_checkout_inline_validation == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_inline_validation" id="wk_checkout_inline_validation_off" value="0" {if isset($smarty.post.wk_checkout_inline_validation) && $smarty.post.wk_checkout_inline_validation == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_inline_validation_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Customer can add their social title during registration' mod='wkonepagecheckout'}">{l s='Show social title : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_social_title" id="wk_checkout_social_title_on" value="1"
{if isset($smarty.post.wk_checkout_social_title) && $smarty.post.wk_checkout_social_title == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_SOCIAL_TITLE == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_social_title)}checked="checked"{/if}>
<label for="wk_checkout_social_title_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_social_title" id="wk_checkout_social_title_off" value="0" {if $configValues.WK_CHECKOUT_SOCIAL_TITLE == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_social_title) && $smarty.post.wk_checkout_social_title == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_social_title" id="wk_checkout_social_title_off" value="0" {if isset($smarty.post.wk_checkout_social_title) && $smarty.post.wk_checkout_social_title == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_social_title_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Ask date of birth from the customer' mod='wkonepagecheckout'}">{l s='Ask Date of Birth : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_dob" id="wk_checkout_dob_on" value="1"
{if isset($smarty.post.wk_checkout_dob) && $smarty.post.wk_checkout_dob == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_DOB == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_dob)}checked="checked"{/if}>
<label for="wk_checkout_dob_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_dob" id="wk_checkout_dob_off" value="0" {if $configValues.WK_CHECKOUT_DOB == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_dob) && $smarty.post.wk_checkout_dob == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_dob" id="wk_checkout_dob_off" value="0" {if isset($smarty.post.wk_checkout_dob) && $smarty.post.wk_checkout_dob == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_dob_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Allow customers to receive your offers' mod='wkonepagecheckout'}">{l s='Allow to opt-in option : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_optin" id="wk_checkout_optin_on" value="1"
{if isset($smarty.post.wk_checkout_optin) && $smarty.post.wk_checkout_optin == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_OPTIN == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_optin)}checked="checked"{/if}>
<label for="wk_checkout_optin_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_optin" id="wk_checkout_optin_off" value="0" {if $configValues.WK_CHECKOUT_OPTIN == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_optin) && $smarty.post.wk_checkout_optin == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_optin" id="wk_checkout_optin_off" value="0" {if isset($smarty.post.wk_checkout_optin) && $smarty.post.wk_checkout_optin == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_optin_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Allow customers to receive your newsletters' mod='wkonepagecheckout'}">{l s='Allow customers to receive your newsletter : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_newslatter" id="wk_checkout_newslatter_on" value="1"
{if isset($smarty.post.wk_checkout_newslatter) && $smarty.post.wk_checkout_newslatter == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_NEWSLATTER == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_newslatter)}checked="checked"{/if}>
<label for="wk_checkout_newslatter_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_newslatter" id="wk_checkout_newslatter_off" value="0" {if $configValues.WK_CHECKOUT_NEWSLATTER == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_newslatter) && $smarty.post.wk_checkout_newslatter == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_newslatter" id="wk_checkout_newslatter_off" value="0" {if isset($smarty.post.wk_checkout_newslatter) && $smarty.post.wk_checkout_newslatter == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_newslatter_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" name="submitLoginRegister" class="btn btn-default pull-right">
<i class="process-icon-save"></i> {l s='Save' mod='wkonepagecheckout'}
</button>
</div>
</form>

View File

@@ -0,0 +1,66 @@
{**
* 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
*}
<form action="{$currentIndex}" class="defaultForm form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-wrapper">
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Display Payment logo : ' mod='wkonepagecheckout'}
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_payment_logo" id="wk_checkout_payment_logo_on" value="1"
{if isset($smarty.post.wk_checkout_payment_logo) && $smarty.post.wk_checkout_payment_logo == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_PAYMENT_LOGO == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_payment_logo)}checked="checked"{/if}>
<label for="wk_checkout_payment_logo_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_payment_logo" id="wk_checkout_payment_logo_off" value="0" {if $configValues.WK_CHECKOUT_PAYMENT_LOGO == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_payment_logo) && $smarty.post.wk_checkout_payment_logo == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_payment_logo" id="wk_checkout_payment_logo_off" value="0" {if isset($smarty.post.wk_checkout_payment_logo) && $smarty.post.wk_checkout_payment_logo == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_payment_logo_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
<div class="help-block">{l s='Display payment logo along with payment name' mod='wkonepagecheckout'}</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Set Default Payment Method : ' mod='wkonepagecheckout'}
</label>
<div class="col-lg-4">
<select name="wk_checkout_default_payment" id="wk_checkout_default_payment" class="form-control">
<option value="0">--</option>
{if isset($payment_method) && $payment_method}
{foreach $payment_method as $payment}
<option {if $configValues.WK_CHECKOUT_DEFAULT_PAYMENT == $payment.name}selected="selected"{/if}value="{$payment.name}">{$payment.displayName}</option>
{/foreach}
{/if}
</select>
<div class="help-block">{l s='On checkout page, it will display as selected payment method by default' mod='wkonepagecheckout'}</div>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" name="submitPayment" class="btn btn-default pull-right">
<i class="process-icon-save"></i> {l s='Save' mod='wkonepagecheckout'}
</button>
</div>
</form>

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
*}
<form action="{$currentIndex}" class="defaultForm form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-wrapper">
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Display Carrier logo : ' mod='wkonepagecheckout'}
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_carrier_logo" id="wk_checkout_carrier_logo_on" value="1"
{if isset($smarty.post.wk_checkout_carrier_logo) && $smarty.post.wk_checkout_carrier_logo == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_CARRIER_LOGO == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_carrier_logo)}checked="checked"{/if}>
<label for="wk_checkout_carrier_logo_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_carrier_logo" id="wk_checkout_carrier_logo_off" value="0" {if $configValues.WK_CHECKOUT_CARRIER_LOGO == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_carrier_logo) && $smarty.post.wk_checkout_carrier_logo == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_carrier_logo" id="wk_checkout_carrier_logo_off" value="0" {if isset($smarty.post.wk_checkout_carrier_logo) && $smarty.post.wk_checkout_carrier_logo == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_carrier_logo_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
<div class="help-block">{l s='Display carrier logo along with carrier name' mod='wkonepagecheckout'}</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Display Carrier Description : ' mod='wkonepagecheckout'}
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_carrier_desc" id="wk_checkout_carrier_desc_on" value="1"
{if isset($smarty.post.wk_checkout_carrier_desc) && $smarty.post.wk_checkout_carrier_desc == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_CARRIER_DESC == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_carrier_desc)}checked="checked"{/if}>
<label for="wk_checkout_carrier_desc_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_carrier_desc" id="wk_checkout_carrier_desc_off" value="0"
{if $configValues.WK_CHECKOUT_CARRIER_DESC == '0'}checked="checked"
{else if isset($smarty.post.wk_checkout_carrier_desc) && $smarty.post.wk_checkout_carrier_desc == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_carrier_desc" id="wk_checkout_carrier_desc_off" value="0" {if isset($smarty.post.wk_checkout_carrier_desc) && $smarty.post.wk_checkout_carrier_desc == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_carrier_desc_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
<div class="help-block">{l s='Display carrier description along with carrier name' mod='wkonepagecheckout'}</div>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" name="submitShipping" class="btn btn-default pull-right">
<i class="process-icon-save"></i> {l s='Save' mod='wkonepagecheckout'}
</button>
</div>
</form>

View File

@@ -0,0 +1,154 @@
{**
* 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
*}
<form action="{$currentIndex}" class="defaultForm form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-wrapper">
<div class="form-group">
<label class="control-label col-lg-3">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Allow customers to login using social profiles' mod='wkonepagecheckout'}">{l s='Allow Social Login : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_social_login" id="wk_checkout_social_login_on" value="1"
{if isset($smarty.post.wk_checkout_social_login) && $smarty.post.wk_checkout_social_login == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_SOCIAL_LOGIN == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_social_login)}checked="checked"{/if}>
<label for="wk_checkout_social_login_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_social_login" id="wk_checkout_social_login_off" value="0"
{if $configValues.WK_CHECKOUT_SOCIAL_LOGIN == '0'}checked="checked"
{else if isset($smarty.post.wk_checkout_social_login) && $smarty.post.wk_checkout_social_login == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_social_login" id="wk_checkout_social_login_off" value="0" {if isset($smarty.post.wk_checkout_social_login) && $smarty.post.wk_checkout_social_login == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_social_login_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
<div class="help-block">{l s='Allow login by social profiles' mod='wkonepagecheckout'}</div>
</div>
</div>
<div class="wk-social-login-tabs">
<div class="form-group">
<label class="control-label col-lg-3">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Allow customer to login using facebook' mod='wkonepagecheckout'}">{l s='Facebook Login : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_facebook_login" id="wk_checkout_facebook_login_on" value="1"
{if isset($smarty.post.wk_checkout_facebook_login) && $smarty.post.wk_checkout_facebook_login == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_FACEBOOK_LOGIN == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_facebook_login)}checked="checked"{/if}>
<label for="wk_checkout_facebook_login_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_facebook_login" id="wk_checkout_facebook_login_off" value="0" {if $configValues.WK_CHECKOUT_FACEBOOK_LOGIN == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_facebook_login) && $smarty.post.wk_checkout_facebook_login == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_facebook_login" id="wk_checkout_facebook_login_off" value="0" {if isset($smarty.post.wk_checkout_facebook_login) && $smarty.post.wk_checkout_facebook_login == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_facebook_login_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="wk_checkout_fb_config">
<div class="form-group">
<label class="control-label col-lg-3 required">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Facebook app id' mod='wkonepagecheckout'}">{l s='Facebook App ID : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-4">
<input type="text" name="wk_checkout_fb_app_id" id="wk_checkout_fb_app_id" value="{$configValues.WK_CHECKOUT_FB_APP_ID}">
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Facebook secret key' mod='wkonepagecheckout'}">{l s='Facebook Secret Key : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-4">
<input type="text" name="wk_checkout_fb_secret_key" id="wk_checkout_fb_secret_key" value="{$configValues.WK_CHECKOUT_FB_SECRET_KEY}">
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Allow customers to login by google' mod='wkonepagecheckout'}">{l s='Google Login : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_google_login" id="wk_checkout_google_login_on" value="1"
{if isset($smarty.post.wk_checkout_google_login) && $smarty.post.wk_checkout_google_login == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_GOOGLE_LOGIN == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_google_login)}checked="checked"{/if}>
<label for="wk_checkout_google_login_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_google_login" id="wk_checkout_google_login_off" value="0" {if $configValues.WK_CHECKOUT_GOOGLE_LOGIN == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_google_login) && $smarty.post.wk_checkout_google_login == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_google_login" id="wk_checkout_google_login_off" value="0" {if isset($smarty.post.wk_checkout_google_login) && $smarty.post.wk_checkout_google_login == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_google_login_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="wk_checkout_google_config">
<div class="form-group">
<label class="control-label col-lg-3 required">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Google app key' mod='wkonepagecheckout'}">{l s='Google API Key : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-4">
<input type="text" name="wk_checkout_google_app_key" id="wk_checkout_google_app_key" value="{$configValues.WK_CHECKOUT_GOOGLE_APP_KEY}">
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Google secret key' mod='wkonepagecheckout'}">{l s='Google Secret Key : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-4">
<input type="text" name="wk_checkout_google_secret_key" id="wk_checkout_google_secret_key" value="{$configValues.WK_CHECKOUT_GOOGLE_SECRET_KEY}">
</div>
</div>
</div>
{*<div class="form-group">
<label class="control-label col-lg-3 required">
<span title="" data-html="true" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Allow guest to proceed cart' mod='wkonepagecheckout'}">{l s='Twitter Login : ' mod='wkonepagecheckout'}</span>
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="wk_checkout_social_login" id="wk_checkout_social_login_on" value="1"
{if isset($smarty.post.wk_checkout_social_login) && $smarty.post.wk_checkout_social_login == 1}checked="checked"
{else if isset($configValues) && $configValues.WK_CHECKOUT_SOCIAL_LOGIN == 1}checked="checked"
{else if !isset($smarty.post.wk_checkout_social_login)}checked="checked"{/if}>
<label for="wk_checkout_social_login_on">{l s='Yes' mod='wkonepagecheckout'}</label>
{if isset($configValues)}
<input type="radio" name="wk_checkout_social_login" id="wk_checkout_social_login_off" value="0" {if $configValues.WK_CHECKOUT_SOCIAL_LOGIN == '0'}checked="checked"{else if isset($smarty.post.wk_checkout_social_login) && $smarty.post.wk_checkout_social_login == '0'}checked="checked"{/if}>
{else}
<input type="radio" name="wk_checkout_social_login" id="wk_checkout_guest_allow_off" value="0" {if isset($smarty.post.wk_checkout_social_login) && $smarty.post.wk_checkout_social_login == '0'}checked="checked"{/if}>
{/if}
<label for="wk_checkout_social_login_off">{l s='No' mod='wkonepagecheckout'}</label>
<a class="slide-button btn"></a>
</span>
<div class="help-block">{l s='Allow login by social profiles' mod='wkonepagecheckout'}</div>
</div>
</div>*}
</div>
</div>
<div class="panel-footer">
<button type="submit" name="submitSocialLogin" class="btn btn-default pull-right">
<i class="process-icon-save"></i> {l s='Save' mod='wkonepagecheckout'}
</button>
</div>
</form>

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,106 @@
{**
* 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="row">
<ul class="nav nav-pills nav-tabs" id="wk-checkout-config">
<li class="nav-item {if isset($generalError)} active {elseif isset($tabActive)}{if $tabActive == 'general'}active{/if}{else}{if !isset($generalError) && !isset($customizerError) && !isset($socialError) && !isset($cartError)}active{/if}{/if}">
<a class="nav-link" href="#wkgeneralsetting" data-toggle="tab">
<i class="icon-wrench"></i>
{l s='General Setting' mod='wkonepagecheckout'}
</a>
</li>
<li class="nav-item {if isset($customizerError)} active {elseif isset($tabActive)}{if $tabActive == 'customizer'}active{/if}{/if}">
<a class="nav-link" href="#wkcustomizer" data-toggle="tab">
<i class="icon-paint-brush"> </i>
{l s='Customization' mod='wkonepagecheckout'}
</a>
</li>
<li class="nav-item {if isset($tabActive)}{if $tabActive == 'loginregister'}active{/if}{/if}">
<a class="nav-link" href="#wkloginregister" data-toggle="tab">
<i class="icon-user"> </i>
{l s='Login & Register' mod='wkonepagecheckout'}
</a>
</li>
<li class="nav-item {if isset($tabActive)}{if $tabActive == 'address'}active{/if}{/if}">
<a class="nav-link" href="#wkaddress" data-toggle="tab">
<i class="icon-book"> </i>
{l s='Address' mod='wkonepagecheckout'}
</a>
</li>
<li class="nav-item {if isset($tabActive)}{if $tabActive == 'shipping'}active{/if}{/if}">
<a class="nav-link" href="#wkshipping" data-toggle="tab">
<i class="icon-truck"> </i>
{l s='Shipping' mod='wkonepagecheckout'}
</a>
</li>
<li class="nav-item {if isset($tabActive)}{if $tabActive == 'payment'}active{/if}{/if}">
<a class="nav-link" href="#wkpayment" data-toggle="tab">
<i class="icon-money"> </i>
{l s='Payment' mod='wkonepagecheckout'}
</a>
</li>
<li class="nav-item {if isset($socialError)} active {elseif isset($tabActive)}{if $tabActive == 'sociallogin'}active{/if}{/if}">
<a class="nav-link" href="#wksociallogin" data-toggle="tab">
<i class="icon-share"> </i>
{l s='Social Login' mod='wkonepagecheckout'}
</a>
</li>
<li class="nav-item {if isset($cartError)} active {elseif isset($tabActive)}{if $tabActive == 'cart'}active{/if}{/if}">
<a class="nav-link" href="#wkcart" data-toggle="tab">
<i class="icon-shopping-cart"> </i>
{l s='Cart' mod='wkonepagecheckout'}
</a>
</li>
{*<li class="nav-item {if isset($tabActive)}{if $tabActive == 'design'}active{/if}{/if}">
<a class="nav-link" href="#wkdesign" data-toggle="tab">
<i class="icon-edit"> </i>
{l s='Design' mod='wkonepagecheckout'}
</a>
</li>*}
</ul>
<div id="wk_config_details" class="tab-content panel collapse in">
<div class="tab-pane {if isset($generalError)} active {elseif isset($tabActive)}{if $tabActive == 'general'}active{/if}{else}{if !isset($generalError) && !isset($customizerError) && !isset($socialError) && !isset($cartError)}active{/if}{/if}" id="wkgeneralsetting">
{include file="$self/views/templates/admin/_partials/wk-general-config.tpl"}
</div>
<div class="tab-pane {if isset($customizerError)} active {elseif isset($tabActive)}{if $tabActive == 'customizer'}active{/if}{/if}" id="wkcustomizer">
{include file="$self/views/templates/admin/_partials/wk-customizer-config.tpl"}
</div>
<div class="tab-pane {if isset($tabActive)}{if $tabActive == 'loginregister'}active{/if}{/if}" id="wkloginregister">
{include file="$self/views/templates/admin/_partials/wk-login-register-config.tpl"}
</div>
<div class="tab-pane {if isset($tabActive)}{if $tabActive == 'address'}active{/if}{/if}" id="wkaddress">
{include file="$self/views/templates/admin/_partials/wk-address-config.tpl"}
</div>
<div class="tab-pane {if isset($tabActive)}{if $tabActive == 'shipping'}active{/if}{/if}" id="wkshipping">
{include file="$self/views/templates/admin/_partials/wk-shipping-config.tpl"}
</div>
<div class="tab-pane {if isset($tabActive)}{if $tabActive == 'payment'}active{/if}{/if}" id="wkpayment">
{include file="$self/views/templates/admin/_partials/wk-payment-config.tpl"}
</div>
<div class="tab-pane {if isset($socialError)} active {elseif isset($tabActive)}{if $tabActive == 'sociallogin'}active{/if}{/if}" id="wksociallogin">
{include file="$self/views/templates/admin/_partials/wk-social-login.tpl"}
</div>
<div class="tab-pane {if isset($cartError)} active {elseif isset($tabActive)}{if $tabActive == 'cart'}active{/if}{/if}" id="wkcart">
{include file="$self/views/templates/admin/_partials/wk-cart-config.tpl"}
</div>
{*<div class="tab-pane {if isset($tabActive)}{if $tabActive == 'design'}active{/if}{/if}" id="wkdesign">
{include file="$self/views/templates/admin/_partials/wk-design-config.tpl"}
</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,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>

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,66 @@
{**
* 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
*}
{extends file='checkout/checkout.tpl'}
{block name='content'}
<section class="main" id="wk-one-page-checkout">
{php}
$user_group = Customer::getDefaultGroupId( Context::getContext() -> customer -> id );
if ( $user_group >= 4 )
{
echo '<h1 style="text-align: center; margin-bottom: 15px;">B2B</h1>';
}
{/php}
<section class="page-content card card-block">
<div class="row">
<div class="col-lg-4 col-md-12 col-sm-12">
{block name='wk-customer-info'}
{include file="module:wkonepagecheckout/views/templates/front/content/wk_customer_info.tpl"}
{/block}
</div>
<div class="col-lg-8 col-md-12 col-sm-12">
{block name='wk_order_summary'}
{include file="module:wkonepagecheckout/views/templates/front/content/wkordersummary.tpl"}
{/block}
<div class="row">
{block name='wk_order_shipping'}
<div class="col-md-6 col-sm-12 col-xs-12" id="wk_shipping_section">
{include file="module:wkonepagecheckout/views/templates/front/content/wkshippingmethod.tpl"}
</div>
{/block}
{block name='wk_order_payment'}
<div class="col-md-6 col-sm-12 col-xs-12" id="wk_payment_section">
{include file="module:wkonepagecheckout/views/templates/front/content/wkpaymentmethod.tpl"}
</div>
{/block}
</div>
{block name='wk_payment_condition'}
{include file="module:wkonepagecheckout/views/templates/front/content/wkcondition.tpl"}
{/block}
</div>
</div>
</section>
{if Configuration::get('WK_CHECKOUT_CART_ALSO_BOUGHT')}
{hook h="displayWhoBoughtAlsoBought"}
{/if}
</section>
{/block}

View File

@@ -0,0 +1,98 @@
{**
* 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
*}
{extends file=$layout}
{block name='content'}
<section id="main">
{if isset($smarty.get.success)}
<p class="alert alert-success">
<button data-dismiss="alert" class="close" type="button">×</button>
{l s='Deleted Successfully' mod='wkonepagecheckout'}
</p>
{/if}
<header class="page-header">
<h1>{l s='My Saved Cart' mod='wkonepagecheckout'}</h1>
</header>
<section class="page-content card card-block" id="content">
<table class="table table-bordered">
<thead>
<tr>
<th>{l s='Product Name' mod='wkonepagecheckout'}</th>
<th>{l s='Product Attribute' mod='wkonepagecheckout'}</th>
<th>
{l s='Unit price' mod='wkonepagecheckout'}<br>
{if isset($showTax)}
{l s='(tax incl.)' mod='wkonepagecheckout'}
{else}
{l s='(tax excl.)' mod='wkonepagecheckout'}
{/if}
</th>
<th>{l s='Qty' mod='wkonepagecheckout'}</th>
<th>{l s='In Stock' mod='wkonepagecheckout'}</th>
<th>{l s='Date' mod='wkonepagecheckout'}</th>
<th>{l s='Action' mod='wkonepagecheckout'}</th>
</tr>
</thead>
<tbody>
{if isset($savedCart)}
{foreach $savedCart as $key => $cart}
<tr>
<td><a style="margin-right:10px;" title="{l s='View Product' mod='wkonepagecheckout'}" href="{if isset($cart.product_link)}{$cart.product_link}{/if}">{$cart.product_name}</a></td>
<td>{if isset($cart.attribute_name)}{$cart.attribute_name}{else}{l s='Default' mod='wkonepagecheckout'}{/if}</td>
<td style="text-align:center;">{if $cart.product_price}{$cart.product_price}{else}--{/if}</td>
<td style="text-align:center;">{$cart.quantity}</td>
<td style="text-align:center;">{$cart.available_qty}</td>
<td>{$cart.date_add|date_format:"%A, %e %B, %Y"}</td>
<td>
{*<a style="margin-right:10px;" title="{l s='View Product' mod='wkonepagecheckout'}" href="{if isset($cart.product_link)}{$cart.product_link}{/if}">
<i class="material-icons">&#xE417;</i>
</a>*}
{if $cart.available_for_order > 0}
<a
title="{l s='Add to cart' mod='wkonepagecheckout'}"
href="javascript:void(0);"
id="wk-add-into-cart"
data-quantity="{$cart.quantity}"
data-id-product="{$cart.id_product}"
data-id-product-attribute="{$cart.id_product_attribute}">
<i class="material-icons">&#xE8B3;</i>
</a>
{/if}
<img style="display:none;" id="wk-cart-loader-{$cart.id_product}-{$cart.id_product_attribute}" src="{$modules_dir}wkonepagecheckout/views/img/p_loading.gif" width="20" />
<a
title="{l s='Delete' mod='wkonepagecheckout'}"
href="{$wksavecart}&id={$cart.id}"
id="wk-delete-cart"
data-id-product="{$cart.id_product}"
data-id-product-attribute="{$cart.id_product_attribute}">
<i class="material-icons">&#xE872;</i>
</a>
</td>
</tr>
{/foreach}
{/if}
</tbody>
</table>
{if !isset($savedCart)}
<p>{l s='No product found!' mod='wkonepagecheckout'}</p>
{/if}
</section>
</section>
{/block}

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,31 @@
{**
* 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-products">
{if isset($products)}
<section class="page-content card card-block featured-products clearfix m-t-3" id="wk-products">
<h2>{l s='Customers who bought this product also bought:' mod='wkonepagecheckout'}</h2>
<div class="products">
{foreach from=$products item="product"}
{include file="module:wkonepagecheckout/views/templates/hook/wk-product.tpl" product=$product}
{/foreach}
</div>
</section>
{/if}
</div>

View File

@@ -0,0 +1,92 @@
{**
* 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
*}
{block name='product_miniature_item'}
<article class="product-miniature js-product-miniature" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product">
<div class="thumbnail-container">
{block name='product_thumbnail'}
<a href="{$product.url}" class="thumbnail product-thumbnail">
<img
src = "{$product.cover.bySize.home_default.url}"
alt = "{$product.cover.legend}"
data-full-size-image-url = "{$product.cover.large.url}">
</a>
{/block}
<div class="product-description">
{block name='product_name'}
<h1 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name}</a></h1>
{/block}
{block name='product_price_and_shipping'}
{if $product.show_price}
<div class="product-price-and-shipping">
{if $product.has_discount}
{hook h='displayProductPriceBlock' product=$product type="old_price"}
<span class="regular-price">{$product.regular_price}</span>
{if $product.discount_type === 'percentage'}
<span class="discount-percentage">{$product.discount_percentage}</span>
{/if}
{/if}
{hook h='displayProductPriceBlock' product=$product type="before_price"}
<span itemprop="price" class="price">{$product.price}</span>
{hook h='displayProductPriceBlock' product=$product type='unit_price'}
{hook h='displayProductPriceBlock' product=$product type='weight'}
<div class="">
<button
data-id-product="{$product.id_product}"
data-id-product-attribute="{$product.id_product_attribute}"
type="submit"
data-button-action="wk-add-to-cart"
class="btn btn-primary add-to-cart">
<i class="material-icons shopping-cart"></i>{l s='Add to cart' mod='wkonepagecheckout'}
</button>
</div>
</div>
{/if}
{/block}
{block name='product_reviews'}
{hook h='displayProductListReviews' product=$product}
{/block}
</div>
{block name='product_flags'}
<ul class="product-flags">
{foreach from=$product.flags item=flag}
<li class="{$flag.type}">{$flag.label}</li>
{/foreach}
</ul>
{/block}
<div class="highlighted-informations{if !$product.main_variants} no-variants{/if} hidden-sm-down">
{block name='quick_view'}
<a class="quick-view" href="#" data-link-action="quickview">
<i class="material-icons search">&#xE8B6;</i> {l s='Quick view' mod='wkonepagecheckout'}
</a>
{/block}
{block name='product_variants'}
{if $product.main_variants}
{include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants}
{/if}
{/block}
</div>
</article>
{/block}

View File

@@ -0,0 +1,25 @@
{**
* 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
*}
<a title="{l s='My Saved Cart' mod='wkonepagecheckout'}" class="col-lg-4 col-md-6 col-sm-6 col-xs-12 5" href="{$wkcheckout_cart_save}">
<span class="link-item">
<i class="material-icons">&#xE854;</i>
{l s='My Saved Cart' mod='wkonepagecheckout'}
</span>
</a>

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;