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,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);
}
}
});
}
}