first commit

This commit is contained in:
2024-10-28 22:14:22 +01:00
commit b65352c452
40581 changed files with 5712079 additions and 0 deletions

View File

@@ -0,0 +1,189 @@
/** * 2007-2019 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2019 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA * * Don't forget to prefix your containers with your own identifier * to avoid any conflicts with others containers. */
.leo-product-tag {
margin-bottom: 35px;
}
.leo-tagger-Tag {
border: 1px solid #bbcdd2;
border-radius: 35px;
padding: 10px 30px 10px 10px;
position: relative;
margin: 15px;
}
.leo-remove {
cursor: pointer;
margin-left: 10px;
position: absolute;
top: 7px;
right: 5px;
}
.leo-error {
display: none;
}
#leo-search-product {
position: relative;
}
.leo-loading {
position: absolute;
z-index: 9999999;
bottom: -8px;
left: 245px;
display: none;
}
.cssload-container {
width: 100%;
height: 49px;
text-align: center;
}
.cssload-double-torus {
width: 49px;
height: 49px;
margin: 0 auto;
border: 4px double;
border-radius: 50%;
border-color: transparent rgba(0,0,0,0.9) rgba(0,0,0,0.9);
animation: cssload-spin 690ms infinite linear;
-o-animation: cssload-spin 690ms infinite linear;
-ms-animation: cssload-spin 690ms infinite linear;
-webkit-animation: cssload-spin 690ms infinite linear;
-moz-animation: cssload-spin 690ms infinite linear;
}
@keyframes cssload-spin {
100%{
transform: rotate(360deg);
transform: rotate(360deg);
}
}
@-o-keyframes cssload-spin {
100%{
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@-ms-keyframes cssload-spin {
100%{
-ms-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@-webkit-keyframes cssload-spin {
100%{
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@-moz-keyframes cssload-spin {
100%{
-moz-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.leo-res .product-list .leo-product-list{
list-style: none;
display: flex;
flex-wrap: wrap;
}
.leo-res .product-list .leo-product-item{
display: flex;
flex-direction: column;
padding: 20px;
}
.leo-res .product-list .leo-product-item img{
margin-bottom: 20px;
}
.leo-res .leo-close{
cursor: pointer;
display: none;
width: 40px;
height: 40px;
border: 1px solid #bbcdd2;
border-radius: 50%;
text-align: center;
}
.leo-res .leo-close i{
line-height: 39px;
}
.leo-add, .leo-cat-add{
display: inline-block;
text-align: center;
vertical-align: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border: 1px solid transparent;
border-top-color: transparent;
border-top-width: 1px;
border-right-color: transparent;
border-right-width: 1px;
border-bottom-color: transparent;
border-bottom-width: 1px;
border-left-color: transparent;
border-left-width: 1px;
padding: 6px 13.408px;
padding: .375rem .838rem;
font-size: 14px;
font-size: .875rem;
line-height: 1.5;
border-radius: 0;
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
color: #25b9d7;
background-color:transparent;
background-image: none;
border-color:#25b9d7;
border-width: 1px;
font-weight: 600;
border-radius: .063rem;
white-space: nowrap;
}
.leo-add i, .leo-cat-add i{
display: inline-block;
vertical-align: middle;
}
.leo-add:hover, .leo-cat-add:hover {
color: #fff;
background-color: #3ed2f0;
border-color: #3ed2f0;
}
.leospform {
padding: .375rem .4375rem;
height: auto;
}
.leo-autosuggest-form {
position: absolute;
top: 100%;
left: 0px;
z-index: 100;
display: none;
width: 100%;
border: 1px solid #6c868e;
background:#fff;
padding: 5px 0;
padding: .3125rem 0;
max-height: 312px;
max-height: 19.5rem;
overflow: auto;
}
.leo-element {
display: inline-block;
padding: 6.4px;
padding: .4rem;
margin: 1.6px;
margin: .1rem;
line-height: 1;
color: #fff;
text-align: center;
vertical-align: baseline;
background-color:#25b9d7;
}
.leo-element .leo-element-label{
white-space: nowrap;
}
.leospform input.leo-search-product[type="text"] {
display: inline-block;
border: 0;
outline: none;
background-color:
transparent;
max-width: 100%;
}

View File

@@ -0,0 +1,241 @@
/**
* 2007-2019 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
.leo-button {
cursor: pointer;
}
.product-notification {
position: fixed;
background: #fff;
width: 300px;
opacity: 0;
z-index: 999;
border: 1px solid #eee;
border-radius: 4px;
visibility: hidden;
transition: all ease 1s;
height: 145px;
}
.product-notification.active {
opacity: 1;
bottom: 10vh;
visibility: visible
}
.product-notification .close-notifi {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
width: 100%;
-ms-flex-align: center;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
-o-align-items: center;
align-items: center;
-webkit-justify-content: center;
-moz-justify-content: center;
-ms-justify-content: center;
justify-content: center;
width: 27px;
height: 27px;
position: absolute;
right: 0;
top: 0;
color: #999999;
font-size: 27px;
}
.product-notification .close-notifi:hover {
color: #fff
}
.product-notification .product-suggest {
background: white;
width: 100%;
}
.product-notification .product-name {
text-transform: uppercase;
}
.product-notification .product-image {
width: 80px;
display: block;
}
.product-notification .column-right {
padding: 0px 15px;
line-height: 20px;
font-size: 13px
}
.product-notification label {
display: block;
padding: 5px 10px;
text-align: left;
background: #eaeaea;
margin-bottom: 0;
}
@media (max-width:480px) {
.product-notification {
display: none;
}
}
@media (max-width:767px) {
.product-notification {
left: 20px;
}
}
.product-notification .product-image img{
width: 100%;
}
.leo-form-setting .leo-button{
padding: 0;
width: 50px;
height: 50px;
line-height: 46px;
text-align: center;
border-radius: 5px;
position: fixed;
right: 0;
top: 40%;
z-index: 99;
}
.leo-form-setting .leo-button .leo-icon{
margin: 0;
}
.leo-form-setting .leo-form{
position: fixed;
right: -300px;
-webkit-transition: all 0.6s;
-o-transition: all 0.6s;
transition: all 0.6s;
top: 0;
max-width: 300px;
background: #ffffff;
padding: 20px;
}
.leo-form-setting .leo-form .form-control-label{
text-align: left;
}
.leo-button.btn-primary{
-webkit-transition: all 0.6s;
-o-transition: all 0.6s;
transition: all 0.6s;
}
.leo-button.btn-primary.active{
right:300px;
}
.leo-button.btn-primary.active+.leo-form{
right:0;
}
/* sample theme */
.product-suggest{
box-shadow: 2px 2px 8px 0 rgba(0,0,0,.2);
-webkit-box-shadow: 2px 2px 8px 0 rgba(0,0,0,.2);
-o-box-shadow: 2px 2px 8px 0 rgba(0,0,0,.2);
border-radius: 5px;
overflow: hidden;
}
.product-suggest-content{
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
-o-align-items: center;
align-items: center;
padding: 10px;
}
.leo-phone, .leo-address{
font-size: 13px;
color: #666666;
margin-bottom: 0;
}
/* basic type*/
.leo-basic.product-notification label{
background: #2fb5d2;
color: #ffffff;
}
.leo-basic.product-notification .close-notifi{
color: #ffffff;
}
/* model type*/
.leo-model .product-suggest-content.has-bg{
background-image: linear-gradient(#4b4784, #6f22c3);
}
.leo-model.product-notification label{
background: #363090;
color: #eaeaea;
}
.leo-model.product-notification .product-name{
color: #c2beff;
}
.leo-model.product-notification .leo-phone{
color: #c4bdcc;
}
.leo-model.product-notification .close-notifi{
color: #ffffff;
}
/* smart type */
.leo-smart.product-notification label{
background: #f18ba2;
color: #ffffff;
}
.leo-smart.product-notification .close-notifi{
color: #ffffff;
}
.product-notification.position1 {
top: 10px;
left: 10px;
}
.product-notification.position2 {
top: 10px;
right: 10px;
}
.product-notification.position4 {
bottom: 10px;
right: 10px;
}
.product-notification.position3 {
bottom: 10px;
left: 10px;
}

View File

@@ -0,0 +1,34 @@
<?php
/**
* 2007-2019 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,34 @@
<?php
/**
* 2007-2019 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,34 @@
<?php
/**
* 2007-2019 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,210 @@
/**
* 2007-2019 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
$(document).ready(function() {
var type = Number($('#LEOPOPUPSALE_SELECT_TYPE').val());
$('.table-customer').parent().removeClass('col-lg-9');
$('.table-customer').parent().removeClass('col-lg-offset-3');
if (type == 3) {
$('.table-customer').closest('.form-group').show();
$('#LEOPOPUPSALE_CATEGORY').closest('.form-group').show();
} else if (type == 2) {
$('.table-customer').closest('.form-group').hide();
$('#LEOPOPUPSALE_CATEGORY').closest('.form-group').hide();
} else {
$('.table-customer').closest('.form-group').hide();
$('#LEOPOPUPSALE_CATEGORY').closest('.form-group').show();
}
selectType();
addCustomer();
deleteCustomer();
leoSearchProduct();
removeProduct();
});
function removeProduct()
{
$('.leo-remove').click(function() {
$(this).closest('.leo-tagger-Tag').remove();
var check = 1;
var id = '';
$('.leo-tagger-Tag').each(function() {
if (check == 1) {
id += $(this).find('span').data('id');
} else {
id += ',' + $(this).find('span').data('id');
}
check++;
});
$('.leo-list-product').val(id);
});
}
function setLeoSearchAction() {
$('#leo-search-product').keyup(function() {
var name = $(this).val();
var id_product = $('.leo-list-product').val();
$('.leo-error').hide();
$('leo-res').hide();
$('.leo-close').hide();
$('.product-list').html('');
if (name.length >= 3) {
$('.leo-loading').show();
$.ajax({
type: 'GET',
url: url,
headers: { "cache-control": "no-cache" },
async: true,
cache: false,
dataType: "json",
data: {
token: leo_token,
id_product: id_product,
name: name,
action: 'searchProduct'
},
success: function (data)
{
$('.leo-loading').hide();
$('leo-res').show();
if (data.success == 0) {
$('.leo-error').html(data.message);
$('.leo-error').show();
} else {
$('.leo-close').show();
$('.product-list').html(data.message);
selectProduct(id_product);
}
},
});
}
});
}
function leoSearchProduct()
{
$('.leo-close').click(function() {
$('.product-list').html('');
$('.leo-close').hide();
});
setLeoSearchAction();
}
function selectProduct(id_product)
{
$('.leo-product-item').click(function() {
var id = $(this).data('id');
var name = $(this).data('name');
var html = '<span class="leo-tagger-Tag">';
html += '<span data-id="'+id+'">'+name+'</span>';
html += '<i class="material-icons leo-remove">close</i>';
html += '</span>';
if (id_product != '') {
id_product += ',' + id;
} else {
id_product += id;
}
$('.leo-product-tag').append(html);
$('.leo-list-product').val(id_product);
$('.product-list').html('');
$('.leo-close').hide();
removeProduct();
});
}
function selectType()
{
var val = Number($('#LEOPOPUPSALE_SELECT_TYPE').val());
hideShow(val);
$('#LEOPOPUPSALE_SELECT_TYPE').change(function() {
val = Number($(this).val());
hideShow(val);
});
}
function hideShow(val)
{
$('.leotype').each(function(){
$(this).closest('.form-group').hide();
});
$('.type'+val).each(function(){
$(this).closest('.form-group').show();
});
if(val==1){
$("#LEOPOPUPSALE_CATEGORY").closest('.form-group').show();
}else{
$("#LEOPOPUPSALE_CATEGORY").closest('.form-group').hide();
}
}
function addCustomer()
{
$('.leo-add').click(function() {
var html = '<tr class="item-tr item-customer">' + $('.tr-template').html() + '</tr>';
wraper = $(this).closest();
html = html.replace('name="name"', 'name="leo_name[]"');
html = html.replace('name="phone"', 'name="leo_phone[]"');
html = html.replace('name="address"', 'name="leo_address[]"');
$(this).parent().find('.leo-body').first().append(html);
deleteCustomer();
});
$('.leo-cat-add').click(function() {
var html = '<tr class="item-tr item-customer">' + $('.tr-cat-template').html() + '</tr>';
wraper = $(this).closest();
html = html.replace('name="catname"', 'name="leo_catname[]"');
html = html.replace('name="catphone"', 'name="leo_catphone[]"');
html = html.replace('name="cataddress"', 'name="leo_cataddress[]"');
$(this).parent().find('.leo-body').first().append(html);
deleteCustomer();
});
}
function deleteCustomer()
{
$('.leo-delete').on('click', function(e) {
e.preventDefault();
$(this).closest('.item-customer').remove();
});
}

View File

@@ -0,0 +1,28 @@
/**
* 2007-2019 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};

View File

@@ -0,0 +1,100 @@
/**
* 2007-2019 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
var $leoPopupSaleWrapper = $('.product-notification');
var $leoPopupSaleClose = $('.close-notifi');
var leotime = $leoPopupSaleWrapper.data('time') || 0;
var leointerval = $leoPopupSaleWrapper.data('interval') || 0;
if (leotime == 0 || leotime == '') {
leotime = 1000;
leointerval = 2000;
}
// alert(leotime+''+leointerval);
var productSuggestCookie = 'cookieSuggest';
$(document).ready(function() {
SomeonePurchased();
settingPopup();
});
function settingPopup()
{
if ($('.leo-setting').length > 0) {
$('.leo-color').mColorPicker({imageFolder: baseAdminDir + '/img/admin/'});
$('.leo-button').click(function() {
if ($(this).hasClass('active')) {
$(this).removeClass('active');
$(this).find('.leo-icon').html('settings_applications');
} else {
$(this).addClass('active');
$(this).find('.leo-icon').html('clear');
}
});
}
}
function SomeonePurchased()
{
if ($.cookie(productSuggestCookie) == 'closed') {
$leoPopupSaleWrapper.remove();
}
$leoPopupSaleClose.on('click',function() {
$leoPopupSaleWrapper.remove();
$.cookie(productSuggestCookie, 'closed', {expires:1, path:'/'});
});
function toggleSomething() {
if ($leoPopupSaleWrapper.hasClass('active')) {
//diplay time
setTimeout(function(){
$leoPopupSaleWrapper.removeClass('active');
}, leotime);
} else {
var randomProduct = Math.floor(Math.random() * data_product_popup.length),
data = data_product_popup[randomProduct];
$leoPopupSaleWrapper.addClass('active');
$leoPopupSaleWrapper.find('.product-image').attr('href', data['url']).find('img').attr('src', data['image']);
$leoPopupSaleWrapper.find('.product-name').text(data['title']).attr('href', data['url']);
$leoPopupSaleWrapper.find('.time-ago').text(data['time']);
$leoPopupSaleWrapper.find('.leo-phone').text(data['phone']);
$leoPopupSaleWrapper.find('.leo-address').text(data['address']);
}
}
if (leointerval !== 0) {
//duration call function
setInterval(toggleSomething, leointerval);
}
}

View File

@@ -0,0 +1,34 @@
<?php
/**
* 2007-2019 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,34 @@
<?php
/**
* 2007-2019 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,95 @@
{*
* PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="table-customer leotype type1">
<div class="alert alert-info">
<p>{l s='Customer data will display random with product - Empty is not display' mod='leopopupsale'}</p>
</div>
<table class="table leo-table">
<thead>
<tr class="title-table">
<td>
{l s='Name' mod='leopopupsale'}
</td>
<td>
{l s='Phone' mod='leopopupsale'}
</td>
<td>
{l s='Adress' mod='leopopupsale'}
</td>
<td>
{l s='Action' mod='leopopupsale'}
</td>
</tr>
</thead>
<tbody class="leo-body">
<tr class="tr-cat-template" style="display:none;">
<td>
<input required="" type="text" name="catname">
</td>
<td>
<input required="" type="text" name="catphone">
</td>
<td>
<input required="" type="text" name="cataddress">
</td>
<td>
<a href="#" class="leo-delete btn">
<i class="material-icons">delete</i>
</a>
</td>
</tr>
{if !empty($cat_customers)}
{foreach from=$cat_customers item=customer}
<tr class="item-tr item-customer">
<td>
<input required="" type="text" name="leo_catname[]" value="{$customer.name|escape:'htmlall':'UTF-8'}">
</td>
<td>
<input required="" type="text" name="leo_catphone[]" value="{$customer.phone|escape:'htmlall':'UTF-8'}">
</td>
<td>
<input required="" type="text" name="leo_cataddress[]" value="{$customer.address|escape:'htmlall':'UTF-8'}">
</td>
<td>
<a href="#" class="leo-delete btn">
<i class="material-icons">delete</i>
</a>
</td>
</tr>
{/foreach}
{/if}
</tbody>
</table>
<button type="button" class="leo-cat-add">
<i class="material-icons">add_circle</i>
{l s='Add a new row' mod='leopopupsale'}
</button>
</div>

View File

@@ -0,0 +1,136 @@
{*
* PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="table-customer leotype type3">
<hr>
<div class="alert alert-info">
<p>{l s='Create Product Sale' mod='leopopupsale'}</p>
</div>
<div class="leo-product">
<div class="leo-product-tag">
{if !empty($products)}
{foreach from=$products item=product}
<span class="leo-tagger-Tag">
<span data-id="{$product.id_product|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'}</span>
<i class="material-icons leo-remove">close</i>
</span>
{/foreach}
{/if}
</div>
<input type="hidden" class="leo-list-product" name="LEOPOPUPSALE_LIST_PRODUCT" value="{Configuration::get('LEOPOPUPSALE_LIST_PRODUCT')|escape:'htmlall':'UTF-8'}">
<div class="form-group">
<label class="control-label col-lg-3">{l s='Search Product' mod='leopopupsale'}</label>
<div class="col-lg-3">
<input type="text" id="leo-search-product" placeholder="{l s='Search Product' mod='leopopupsale'}">
<div class="cssload-container leo-loading">
<div class="cssload-double-torus"></div>
</div>
</div>
</div>
<div class="leo-res">
<div class="leo-error alert alert-danger">ooooooooo</div>
<p class="leo-close">
<i class="material-icons">close</i>
</p>
<div class="product-list">
</div>
</div>
</div>
<div class="alert alert-info">
<p>{l s='Create Customer Sale' mod='leopopupsale'}</p>
</div>
<table class="table leo-table">
<thead>
<tr class="title-table">
<td>
{l s='Customer Name' mod='leopopupsale'}
</td>
<td>
{l s='Customer Phone' mod='leopopupsale'}
</td>
<td>
{l s='Customer Address' mod='leopopupsale'}
</td>
<td>
{l s='Action' mod='leopopupsale'}
</td>
</tr>
</thead>
<tbody class="leo-body">
<tr class="tr-template" style="display:none;">
<td>
<input required="" type="text" name="name">
</td>
<td>
<input required="" type="text" name="phone">
</td>
<td>
<input required="" type="text" name="address">
</td>
<td>
<a href="#" class="leo-delete btn">
<i class="material-icons">delete</i>
</a>
</td>
</tr>
{if !empty($customers)}
{foreach from=$customers item=customer}
<tr class="item-tr item-customer">
<td>
<input required="" type="text" name="leo_name[]" value="{$customer.name|escape:'htmlall':'UTF-8'}">
</td>
<td>
<input required="" type="text" name="leo_phone[]" value="{$customer.phone|escape:'htmlall':'UTF-8'}">
</td>
<td>
<input required="" type="text" name="leo_address[]" value="{$customer.address|escape:'htmlall':'UTF-8'}">
</td>
<td>
<a href="#" class="leo-delete btn">
<i class="material-icons">delete</i>
</a>
</td>
</tr>
{/foreach}
{/if}
</tbody>
</table>
<button type="button" class="leo-add">
<i class="material-icons">add_circle</i>
{l s='Add a new row' mod='leopopupsale'}
</button>
</div>

View File

@@ -0,0 +1,32 @@
{*
* PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<ul class="leo-product-list">
{foreach from=$products item=product}
<li data-id="{$product.id_product|escape:'htmlall':'UTF-8'}" data-name="{$product.name|escape:'htmlall':'UTF-8'}" class="leo-product-item">
<img src="{$product.image|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}" alt="{$product.name|escape:'htmlall':'UTF-8'}">
{$product.name|escape:'htmlall':'UTF-8'}
</li>
{/foreach}
<ul>

View File

@@ -0,0 +1,34 @@
<?php
/**
* 2007-2019 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,74 @@
{*
* PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="leo-setting row">
<div class="leo-form-setting col-md-12">
<div class="leo-button btn btn-primary col-md-2">
<i class="material-icons leo-icon">settings_applications</i>
</div>
<div class="leo-form col-md-10">
<form action="#" method="GET">
<section class="form-fields">
<div class="form-group row">
<label class="col-md-6 form-control-label">{l s='Select THEME' mod='leopopupsale'}</label>
<div class="col-md-6">
<select name="theme" class="fixed-width-xl">
<option value="basic"{if $theme == 'basic'} selected="selected"{/if}>Basic</option>
<option value="model"{if $theme == 'model'} selected="selected"{/if}>Model</option>
<option value="smart" {if $theme == 'smart'} selected="selected"{/if}>Smart</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-md-6 form-control-label">{l s='Time Interval popup' mod='leopopupsale'}</label>
<div class="col-md-6">
<input class="form-control" name="time" type="text" value="{if isset($leotime)}{$leotime|escape:'htmlall':'UTF-8'}{else}1000{/if}" placeholder="1000">
</div>
</div>
<div class="form-group row">
<label class="col-md-6 form-control-label">{l s='Popup Timing' mod='leopopupsale'}</label>
<div class="col-md-6">
<input class="form-control" name="interval" type="text" value="{if isset($leointerval)}{$leointerval|escape:'htmlall':'UTF-8'}{else}2000{/if}" placeholder="1000">
</div>
</div>
<div class="form-group row">
<label class="col-md-6 form-control-label">{l s='Position' mod='leopopupsale'}</label>
<div class="col-md-6">
<select name="position" class="form-control form-control-select">
<option value="1" {if isset($position) && $position == 1}selected{/if}>{l s='Top-Left' mod='leopopupsale'}</option>
<option value="2" {if isset($position) && $position == 2}selected{/if}>{l s='Top-Right' mod='leopopupsale'}</option>
<option value="3" {if isset($position) && $position == 3}selected{/if}>{l s='Bottom-Left' mod='leopopupsale'}</option>
<option value="4" {if isset($position) && $position == 4}selected{/if}>{l s='Bottom-Right' mod='leopopupsale'}</option>
</select>
</div>
</div>
<input class="btn btn-primary" type="submit" name="leopopupconfig" value="{l s='Save' mod='leopopupsale'}">
</section>
</form>
</div>
</div>
</div>

View File

@@ -0,0 +1,60 @@
{*
* PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<section class="product-notification leo-{if $theme == ''}basic{else}{$theme|escape:'htmlall':'UTF-8'}{/if}{if $position} position{$position|escape:'htmlall':'UTF-8'}{/if}" data-time="{$leotime|escape:'htmlall':'UTF-8'}" data-interval="{$leointerval|escape:'htmlall':'UTF-8'}">
<a href="javascript:void(0);" title="{l s='Close' mod='leopopupsale'}" class="close-notifi">×</a>
{if !empty($product)}
<div class="product-suggest"{if $box_style} style="{$box_style|escape:'htmlall':'UTF-8'}"{/if}>
<label class="time-ago"{if $lable_style} style="{$lable_style|escape:'htmlall':'UTF-8'}"{/if}>
{if $showname}
{l s='Purchased By' mod='leopopupsale'}
{$customer.name|escape:'htmlall':'UTF-8'}
{else}
{l s='Have a customer purchase product' mod='leopopupsale'}
{/if}
{rand(1,59)|escape:'htmlall':'UTF-8'} {l s='minutes ago' mod='leopopupsale'}
</label>
<div class="product-suggest-content">
<a class="product-image" href="{$product.url|escape:'htmlall':'UTF-8'}">
<img src="{$product.img|escape:'htmlall':'UTF-8'}" alt="{$product.name|escape:'htmlall':'UTF-8'}">
</a>
<div class="column-right">
<a class="product-name" href="{$product.url|escape:'htmlall':'UTF-8'}"{if $text_style} style="{$text_style|escape:'htmlall':'UTF-8'}"{/if}>{$product.name|escape:'htmlall':'UTF-8'}</a>
{if $showphone}
<p class="leo-phone"{if $text_style} style="{$text_style|escape:'htmlall':'UTF-8'}"{/if}>
{l s='Phone: ' mod='leopopupsale'}{$customer.phone|escape:'htmlall':'UTF-8'}
</p>
{/if}
{if $showaddress}
<p class="leo-address"{if $text_style} style="{$text_style|escape:'htmlall':'UTF-8'}"{/if}>
{l s='Address: ' mod='leopopupsale'}{$customer.address|escape:'htmlall':'UTF-8'}
</p>
{/if}
</div>
</div>
</div>
{/if}
</section>

View File

@@ -0,0 +1,34 @@
<?php
/**
* 2007-2019 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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;