Preview: footer.php
Size: 48.19 KB
//home/justbyquicklly-old/public_html/js/footer.php
<?php include "modals.php" ?>
</div>
<!-- offer popup start-->
<?php
//Dyamic Locaton based URL
$DynamicURL = '';
if (trim($_COOKIE['url']) != '' && trim($_COOKIE['url']) != ',') {
$TmpArr = explode(',', $_COOKIE['url']);
$DynamicURL = $TmpArr[0] . '-' . $TmpArr[1];
}
/*$city=strtoupper(getFieldWhere('city','tbl_store_zip','zip',$_COOKIE['postalcode']));
$state=strtoupper(strtolower(getFieldWhere('state','tbl_store_zip','zip',$_COOKIE['postalcode'])));
$popupstoreid=explode(',',getFieldWhere('group_concat(storeid)','tbl_store_zip','zip',$_COOKIE['postalcode']));
if(in_array('309',$popupstoreid)){
$city='city';
}*/
if($city=='NEW JERSEY' || $state=='NY'){
$imgpopup='';
$urltoredirect='';
$noti_image="diwali_noti.jpeg";
$noti_link="https://www.quicklly.com/moments";
$notification_wrapper_link='';
$notification_wrapper_innerbody="This Diwali - Make Your Loved One’s Moment Perfect ❤️ <button type='button' style='background:#FFF;color:#000;margin-top:5px; font-weight:600' onClick='hide_notification()'>Shop Now</button>";
}else{
$imgpopup='';
$urltoredirect='';
$noti_image="diwali_noti.jpeg";
$noti_link="https://www.quicklly.com/moments";
$notification_wrapper_link='';
$notification_wrapper_innerbody="This Diwali - Make Your Loved One’s Moment Perfect ❤️ <button type='button' style='background:#FFF;color:#000; font-weight:600' onClick='hide_notification()'>Shop Now</button>";
}
//$notification_wrapper_innerbody='';
if((basename($_SERVER['SCRIPT_NAME'])=='index.php')||(basename($_SERVER['SCRIPT_NAME'])=='about-us.php')||(basename($_SERVER['SCRIPT_NAME'])=='contact-us.php') || (basename($_SERVER['SCRIPT_NAME'])=='meal-kit-store.php') ||
(basename($_SERVER['SCRIPT_NAME'])=='careers.php')||(basename($_SERVER['SCRIPT_NAME'])=='beahero.php')||(basename($_SERVER['SCRIPT_NAME'])=='faq.php')||
(basename($_SERVER['SCRIPT_NAME'])=='blog.php')||(basename($_SERVER['SCRIPT_NAME'])=='bronze')||(basename($_SERVER['SCRIPT_NAME'])=='blog-detail.php')||
(basename($_SERVER['SCRIPT_NAME'])=='privacy-policy.php')||(basename($_SERVER['SCRIPT_NAME'])=='term-&-condition.php')||(basename($_SERVER['SCRIPT_NAME'])=='press-quicklly.php')||(basename($_SERVER['SCRIPT_NAME'])=='referafriend.php')||(basename($_SERVER['SCRIPT_NAME'])=='food.php')||(basename($_SERVER['SCRIPT_NAME'])=='tiffin.php')||(basename($_SERVER['SCRIPT_NAME'])=='review-order.php')||(basename($_SERVER['SCRIPT_NAME'])=='my-account.php')||(basename($_SERVER['SCRIPT_NAME'])=='forgot-password.php')||(basename($_SERVER['SCRIPT_NAME'])=='my-orders.php')||(basename($_SERVER['SCRIPT_NAME'])=='my-wishlist.php')||(basename($_SERVER['SCRIPT_NAME'])=='my-upcoming-orders.php')||(basename($_SERVER['SCRIPT_NAME'])=='chef_quicklly.php')||(basename($_SERVER['SCRIPT_NAME'])=='all_recipe.php')||(basename($_SERVER['SCRIPT_NAME'])=='how-it-works.php')||(basename($_SERVER['SCRIPT_NAME'])=='chef_details.php')|| (basename($_SERVER['SCRIPT_NAME'])=='thanks-order.php')|| (basename($_SERVER['SCRIPT_NAME'])=='catering.php')||(basename($_SERVER['SCRIPT_NAME'])=='moments-landing-page.php')||(basename($_SERVER['SCRIPT_NAME'])=='moments-product-select.php')){
$imgpopup='';
$notification_wrapper_innerbody='';
}
if($outsideus==1){
$notification_wrapper_innerbody='';
$imgpopup='';
}
if ($imgpopup != '') {
?>
<div class="modal" id="popupoffer" tabindex="-1" role="dialog" aria-labelledby="popupmodal" aria-hidden="true">
<div class="modal-dialog modal-xl100" role="document" style="top:5%">
<div class="modal-content">
<div class="modal-body">
<div class="explorenowmdl-wrapper">
<button type="button" class="close popupclose" data-dismiss="modal" aria-label="Close" style="text-align:right">
<img src="images/explorenowpopupimgClose.png" alt="close" width="25" style="top:0; right:0; position:absolute">
</button>
<a href="<?php echo $urltoredirect; ?>"><img src="<?php echo $imgpopup; ?>" alt="Quicklly popup" class="pop-img" width="100%" height="auto" style="margin-top:-15px"></a>
<!--<span class="btn explorenwBtn explorenowmddl-togglebtn" data-dismiss="modal">Explore Now!</span>-->
</div>
</div>
</div>
</div>
</div>
<script>
(function ($) {
if (!sessionStorage.zipcodepop) {
if (!sessionStorage.offerpopuoenable) {
setTimeout(function () {
$('#popupoffer').show();
$('body').toggleClass('modal-open');
}, 15000);
$('body').on('click', '.popupclose', function (e) {
e.preventDefault();
$('body').toggleClass('modal-open');
$('#popupoffer').hide();
});
sessionStorage.offerpopuoenable = 1;
}
}
})(jQuery);
</script>
<?php
} //$imgpoopup not blank
if ($notification_wrapper_innerbody != '') {
?>
<!-- sticky notification starts -->
<style>
.popupheaderenable{
min-height:120px!important
}
@media (min-width: 850px) and (max-width: 1050px) {
.popupheaderenable{
min-height:152px!important
}
}
@media (min-width: 767px) and (max-width: 849px) {
.popupheaderenable{
min-height:182px!important
}
}
@media (min-width: 320px) and (max-width: 766px) {
.popupheaderenable{
min-height:161px!important
}
}
</style>
<div id="notification-wrapper" style="background-image: url('images/<?php echo $noti_image; ?>'); background-size: cover">
<div class="seventhnoti"></div>
<div class="notification-inner-wrapper">
<span style="word-wrap: normal; color: #FFF"><?php echo $notification_wrapper_innerbody; ?></span>
</div>
<div class="seventhnoti"><button type="button" id="notification-togglebtn" style="background: none; border: none">
<img src="images/noti_cross.svg" alt="close" style="width: 35px; cursor: pointer;">
</button></div>
</div>
<script>
(function($){
$('#notification-wrapper').hide();
if (sessionStorage.notification_pop!=='1') {
setTimeout(function () {
$('#notification-wrapper').show();
}, 3000);
}
$('body').on('click','#notification-togglebtn',function(e){
e.preventDefault();
$('#notification-wrapper').hide();
$("div").removeClass("popupheaderenable");
sessionStorage.notification_pop = 1;
});
})(jQuery);
function hide_notification(){
sessionStorage.notification_pop = 1;
var notiurl="<?php echo $noti_link; ?>";
//alert(sheflocation);
location.href = notiurl;
exit();
}
if(sessionStorage.notification_pop == 1){
$("div").removeClass("popupheaderenable");
}
</script>
<!-- sticky notification ends -->
<?php
}
?>
<!-- offer popup ends ends-->
<!-- zipcode popup Start -->
<div class="modal loginModal" id="subscribe" tabindex="-1" role="dialog" aria-labelledby="subscribebox" aria-hidden="true">
<div id="zipcodesubscribe" class="modal-dialog modal-dialog-centered" role="document" style="margin-top: 1%;">
<div class="modal-content sbx" >
<div class="modal-header" style="border-bottom:none;">
<!-- <button type="button" class="close modal-togglebtn-subscribe" data-dismiss="modal" aria-label="Close">
<span class="cls-btn" aria-hidden="true">X</span>
</button> -->
</div>
<div class="modal-body text-center">
<img src="images/quicly-logo-black.png" alt="Quicklly logo" class="bxImgPopUp">
<p class="suscBxTxt">Delivering Indian Groceries & Food !</p>
<form name="zipsearch" action="" method="post" enctype="multipart/form-data">
<div class="email-box">
<!-- <img src="images/pin.png" style="margin: 22px 10px;position:absolute;width:42px"> -->
<div class="grpinptWithicon">
<span class="pibboxwrpr"><img src="images/pin.png" alt="Map Marker"></span>
<input type="text" name="zip" id="zipcode" placeholder="Enter Zip Code" onkeypress="return IsAlphaNumeric(event)" maxlength="10" minlength="4" pattern=".{4,10}" required value="<?php echo $_COOKIE['postalcode']; ?>" autofocus class="email-box__input inptbxwitIcn" />
<input type="hidden" name="submitzip" value="Submit"/>
<button class="email-box__button" onclick="return changeStoreZip();">
<img src="images/submit.png" align="submit"></button>
</div>
<!-- <button class="email-box__button">
<img src="images/submit.png"></button> -->
</div>
<button class="btns" onclick="return changeStoreZip();">SHOP NOW</button>
</form>
<div class="offeremail" id="getguestuseremail">
<h3>Sign up today and get $10 Off</h3>
<p>Enjoy $10 off on your first purchase!</p>
<input type="email" name="tempemail" id="tempemail" placeholder="Enter Email Address" required/>
<span id="terror" style="display:none;"></span>
<button class="btns" type="button" onclick="sendofferemail();">CLAIM NOW</button>
</div>
</div>
</div>
</div>
</div>
<div class="clsDialog" id="dvDialog-Slot-DateTime" data-save="0">
<div class="clsDialog-Box clsCateringDateTimeDialog">
<a href="javascript:void(0);" class="clsClose" onClick="closeSlotDialog('dvDialog-Slot-DateTime');" title="Close"></a>
<div class="clsContent " style="width:400px;height:auto">
<div id="slot-box-selection"></div>
<div id="slot-box-content" style="padding-top:10px;"></div>
<div class="clsFooter">
<a href="javascript:void(0);" onClick="return selectDeliverySlot();" class="clsBtn slotChgBtn">Change Slot</a>
<a href="javascript:void(0);" onClick="return removeDeliverySlot();" class="removeBtn">Remove Slot</a>
</div>
</div>
</div>
</div>
<style>
.removeBtn {
text-align: center;
display: inline-block;
text-decoration: none;
background-color: gray;
border: none;
padding: 7px 15px;
color: #fff;
border-radius: 4px;
outline: none;
cursor: pointer;
font-weight: 500;
transition: 0.2s ease-out;
margin-top:10px;
width: 100%;
}
</style>
<?php
if (trim($_COOKIE['postalcode']=='') || !isset($_COOKIE['postalcode'])) {
?>
<script type="text/javascript">
$(document).ready(function () {
setTimeout(function(){
$.ajax({
url: "set-zipcode-by-location.php",
dataType: "json",
data: {url_slug: '<?php echo strtolower(trim($_REQUEST["url_slug"]));?>'},
type: "POST",
success: function (data) {
if ($.trim(data.status) == 'success') {
$("#subscribe").find("#zipcode").val($.trim(data.zipcode));
$('body').toggleClass('modal-open');
$("#subscribe").toggleClass('show');
} else if ($.trim(data.status) == 'error' && $.trim(data.message) != "") {
alert($.trim(data.message));
window.location.href = '<?php echo str_replace(trim($_REQUEST["url_slug"]), str_replace(',', '-', trim($_COOKIE['url'])), $_SERVER["REQUEST_URI"]); ?>';
}
},
error: function (jqXHR, exception) {
var msg = '';
if (jqXHR.status === 0) {
msg = 'Not connect.\n Verify Network.';
} else if (jqXHR.status == 404) {
msg = 'Requested page not found. [404]';
} else if (jqXHR.status == 500) {
msg = 'Internal Server Error [500].';
} else if (exception === 'parsererror') {
msg = 'Requested JSON parse failed.';
} else if (exception === 'timeout') {
msg = 'Time out error.';
} else if (exception === 'abort') {
msg = 'Ajax request aborted.';
} else {
msg = 'Uncaught Error.\n' + jqXHR.responseText;
}
}
});
}, 2000);
});
</script>
<?php
}
?>
<script>
function sendofferemail(){
var tempemail=$('#tempemail').val();
var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
if(tempemail.match(mailformat))
{
$('#terror').text('');
$('#terror').removeClass('tmailactive');
$.ajax({
url: "ajax-send-guest-welcome-email.php",
data: {emailid: tempemail},
type: "POST",
success: function (data) {
$('#terror').addClass('tmailactive');
$("#terror").html(data);
}
});
}
else
{
$('#terror').addClass('tmailactive');
$('#terror').text('Please enter valid email address!');
$('#tempemail').focus();
return false;
}
}
function onSubmitRecaptchaRegister(token){
$("#reg-form").submit();
}
function onSubmitRecaptcha(token){
$("#frmGuestAddress").submit();
}
function onSubmitRecaptchaChangeAddress(token){
$("#changeAddress").submit();
}
function onSubmitRecaptchaLogin(token){
$("#apiformprodct").submit();
}
function onSubmitContactUs(token){
$("#main-contact-form").submit();
}
var chkSlot = true;
function checkExpireSlot(){
$('#prod-loader').show();
$("#slot-box-content").html('');
$.ajax({
url: "ajax-check-store-slots-api.php",
async: false,
data: {cart_food: window.localStorage.getItem('cart_food')},
type: "POST",
success: function (data) {
if(data != ''){
chkSlot = false;
$("#slot-box-selection").html(data);
openSlotDialog("dvDialog-Slot-DateTime");
//$("#selctProductStore").change();
changeStoreSlotData();
$('#prod-loader').hide();
} else {
chkSlot = true;
closeSlotDialog("dvDialog-Slot-DateTime");
$('#prod-loader').hide();
return;
//location.reload();
//window.location.href = "<?php echo SITE_URL; ?>checkout";
}
},
error: function (jqXHR, exception) {
var msg = '';
if (jqXHR.status === 0) {
msg = 'Not connect.\n Verify Network.';
} else if (jqXHR.status == 404) {
msg = 'Requested page not found. [404]';
} else if (jqXHR.status == 500) {
msg = 'Internal Server Error [500].';
} else if (exception === 'parsererror') {
msg = 'Requested JSON parse failed.';
} else if (exception === 'timeout') {
msg = 'Time out error.';
} else if (exception === 'abort') {
msg = 'Ajax request aborted.';
} else {
msg = 'Uncaught Error.\n' + jqXHR.responseText;
}
console.log(msg);$('#prod-loader').hide();
}
});
}
$(document).ready(function () {
//checkExpireSlot();
});
function changeStoreSlotData() {
$("#expirestoredatetime").val('');
var expirestoredata = $('#expirestoredata').val();
$.ajax({
url: "ajax-select-store-data-api.php",
data: {expirestoredata: expirestoredata, cart_food: window.localStorage.getItem('cart_food')},
type: "POST",
success: function (data) {
$("#expirestoredatetime").val(data);
//window.localStorage.setItem('exipired_data', data);
},
error: function (jqXHR, exception) {
var msg = '';
if (jqXHR.status === 0) {
msg = 'Not connect.\n Verify Network.';
} else if (jqXHR.status == 404) {
msg = 'Requested page not found. [404]';
} else if (jqXHR.status == 500) {
msg = 'Internal Server Error [500].';
} else if (exception === 'parsererror') {
msg = 'Requested JSON parse failed.';
} else if (exception === 'timeout') {
msg = 'Time out error.';
} else if (exception === 'abort') {
msg = 'Ajax request aborted.';
} else {
msg = 'Uncaught Error.\n' + jqXHR.responseText;
}
}
});
}
function changeProductSlot(obj) {
$("#slot-box-content").html();
var sid = $('option:selected', obj).attr('data-sid');
var pid = $('option:selected', obj).attr('data-pid');
var deliverydate = $('option:selected', obj).attr('data-deliveryDate');
var deliveryFromTime = $('option:selected', obj).attr('data-deliveryFromTime');
var deliveryToTime = $('option:selected', obj).attr('data-deliveryToTime');
var section_type = $('option:selected', obj).attr('data-section_type');
var section = $('option:selected', obj).attr('data-section');
var freq = $('option:selected', obj).attr('data-freq');
var deliveryType = $('option:selected', obj).attr('data-deliveryType');
var expirestoredatetime = $('#expirestoredatetime').val();
if(section_type == 'tiffin' && freq == 'Weekly')
{
$(".slotChgBtn").hide();
}
else{
$(".slotChgBtn").show();
}
$.ajax({
url: "ajax-select-store-slots-api.php",
data: {sid: sid, pid: pid, deliverydate, deliverydate, deliveryFromTime: deliveryFromTime, deliveryToTime: deliveryToTime, section: section, section_type: section_type, freq: freq, deliveryType: deliveryType, expirestoredatetime: expirestoredatetime, cart_food: window.localStorage.getItem('cart_food')},
type: "POST",
success: function (data) {
$("#slot-box-content").html(data);
openSlotDialog("dvDialog-Slot-DateTime");
},
error: function (jqXHR, exception) {
var msg = '';
if (jqXHR.status === 0) {
msg = 'Not connect.\n Verify Network.';
} else if (jqXHR.status == 404) {
msg = 'Requested page not found. [404]';
} else if (jqXHR.status == 500) {
msg = 'Internal Server Error [500].';
} else if (exception === 'parsererror') {
msg = 'Requested JSON parse failed.';
} else if (exception === 'timeout') {
msg = 'Time out error.';
} else if (exception === 'abort') {
msg = 'Ajax request aborted.';
} else {
msg = 'Uncaught Error.\n' + jqXHR.responseText;
}
console.log(msg);
$('#prod-loader').hide();
}
});
}
function deliveryDateAjaxChange(storeid, obj, section_type) {
$("#slot-box-content").html();
var cDate = $(obj).val();
var expirestoredatetime = $('#expirestoredatetime').val();
if(cDate == 'tiffin_expired')
{
$(".slotChgBtn").hide();
}
else{
$(".slotChgBtn").show();
}
$.ajax({
url: "ajax-time-store-slots-api.php",
data: {sid: storeid , cDate :cDate, section_type :section_type, expirestoredatetime :expirestoredatetime },
type: "POST",
success: function (data) {
$("#slotTimeSelection").html(data);
},
error: function (jqXHR, exception) {
var msg = '';
if (jqXHR.status === 0) {
msg = 'Not connect.\n Verify Network.';
} else if (jqXHR.status == 404) {
msg = 'Requested page not found. [404]';
} else if (jqXHR.status == 500) {
msg = 'Internal Server Error [500].';
} else if (exception === 'parsererror') {
msg = 'Requested JSON parse failed.';
} else if (exception === 'timeout') {
msg = 'Time out error.';
} else if (exception === 'abort') {
msg = 'Ajax request aborted.';
} else {
msg = 'Uncaught Error.\n' + jqXHR.responseText;
}
console.log(msg);$('#prod-loader').hide();
}
});
}
function selectDeliverySlot() {
if($("#selctProductStore").val() !='' ){
if($("#ddlDeliveryDateChange").val() == 'tiffin_expired' || $("#ddlDeliveryDateChange").val() == ''){
alert("Please select date to change the slot!");
return false;
}
if($('#ddlDeliveryTimeChange').length){
if($('#ddlDeliveryTimeChange').val().trim() == '')
{
alert("Please select time slot to change the slot!");
return false;
}
}
var DeliveryDate = $('#ddlDeliveryDateChange').val();
var section_type = $("#selctProductStore").find(':selected').attr('data-section_type');
var ExpiredDate = $("#selctProductStore").find(':selected').attr('data-deliveryDate');
var deliveryType = $("#selctProductStore").find(':selected').attr('data-deliveryType');
var subscriptiontype = $("#selctProductStore").find(':selected').attr('data-subscriptiontype');
var DeliveryFromTime = '';
var DeliveryToTime = '';
if($('#ddlDeliveryTimeChange').length){
if($('#ddlDeliveryTimeChange').val().trim() != '' && $('#ddlDeliveryTimeChange').val() != 'ASAP (60-90 mins)'){
var DeliveryFromTime = $('#ddlDeliveryTimeChange').val().split('-')[0];
var DeliveryToTime = $('#ddlDeliveryTimeChange').val().split('-')[1];
}
else if($('#ddlDeliveryTimeChange').val().trim() != '' && $('#ddlDeliveryTimeChange').val() == 'ASAP (60-90 mins)'){
var DeliveryFromTime = '';
var DeliveryToTime = 'ASAP (60-90 mins)';
}
}
var selectionDateTime = $("#selctProductStore").find(':selected').attr('data-selectionDateTime');
var curDateTime = selectionDateTime;
var food_store = window.localStorage.getItem('food_store');
var storeDetail = [];
if (food_store != null && food_store != '') {
food_store = JSON.parse(food_store);
var flgAdd = true;
if (food_store.length > 0) {
for (var i = 0; i < food_store.length; i++) {
if (food_store[i].storeid == $("#selctProductStore").val() ) {
food_store[i].DeliveryDate = DeliveryDate;
food_store[i].DeliveryFromTime = DeliveryFromTime;
food_store[i].DeliveryToTime = DeliveryToTime;
flgAdd = false;
break;
}
}
if (flgAdd == true) {
var newStore = {selectedCurrentTime: curDateTime, storeid: $("#selctProductStore").val(), 'DeliveryDate': DeliveryDate, 'DeliveryFromTime': DeliveryFromTime, 'DeliveryToTime': DeliveryToTime}
food_store.push(newStore);
}
window.localStorage.setItem('food_store', JSON.stringify(food_store));
}
} else {
var newStore = {selectedCurrentTime: curDateTime, storeid: $("#selctProductStore").val(), 'DeliveryDate': DeliveryDate, 'DeliveryFromTime': DeliveryFromTime, 'DeliveryToTime': DeliveryToTime}
storeDetail.push(newStore);
window.localStorage.setItem('food_store', JSON.stringify(storeDetail));
}
$('#prod-loader').show();
var lstCart = [];
var cart = window.localStorage.getItem('cart_food');
if (cart != null && cart != '') {
lstCart = JSON.parse(cart);
if (lstCart.length > 0) {
for (var i = 0; i < lstCart.length; i++) {
if(lstCart[i].section_type == 'sweetandsancks' || lstCart[i].section_type == 'rotikaa-kit' || lstCart[i].section_type == 'holidaygiftbox' || lstCart[i].section_type == 'currybox' || lstCart[i].section_type == 'mangos' || lstCart[i].section_type == 'mithaas' || lstCart[i].section_type == 'justlassi')
{
if( lstCart[i].sid == $("#selctProductStore").val() && lstCart[i].section_type == section_type && lstCart[i].deliveryDate == ExpiredDate && lstCart[i].deliveryType == deliveryType && lstCart[i].subscriptiontype == subscriptiontype){
lstCart[i].deliveryDate = DeliveryDate;
lstCart[i].deliveryFromTime = DeliveryFromTime;
lstCart[i].deliveryToTime = DeliveryToTime;
lstCart[i].selectedCurrentTime = curDateTime;
lstCart[i].section_type = section_type;
lstCart[i].deliveryType == deliveryType;
lstCart[i].subscriptiontype == subscriptiontype;
}
}
else{
if (lstCart[i].sid == $("#selctProductStore").val() && lstCart[i].section_type == section_type && lstCart[i].deliveryDate == ExpiredDate && lstCart[i].freq == 'Weekly' ) {
lstCart[i].deliveryDate = DeliveryDate;
lstCart[i].deliveryFromTime = DeliveryFromTime;
lstCart[i].deliveryToTime = DeliveryToTime
lstCart[i].selectedCurrentTime = curDateTime
lstCart[i].section_type = section_type
} else if( lstCart[i].sid == $("#selctProductStore").val() && lstCart[i].section_type == 'moments'){
lstCart[i].deliveryDate = DeliveryDate;
lstCart[i].deliveryFromTime = DeliveryFromTime;
lstCart[i].deliveryToTime = DeliveryToTime
lstCart[i].selectedCurrentTime = curDateTime
lstCart[i].section_type = section_type
} else if( lstCart[i].sid == $("#selctProductStore").val() && lstCart[i].section_type == section_type && lstCart[i].deliveryDate == ExpiredDate){
lstCart[i].deliveryDate = DeliveryDate;
lstCart[i].deliveryFromTime = DeliveryFromTime;
lstCart[i].deliveryToTime = DeliveryToTime
lstCart[i].selectedCurrentTime = curDateTime
lstCart[i].section_type = section_type
}
}
}
window.localStorage.setItem("cart_food", JSON.stringify(lstCart));
updateMiniCart();
resetPhpCart();
}
}
$('#prod-loader').hide();
//closeSlotDialog("dvDialog-Slot-DateTime");
checkExpireSlot();
if(chkSlot == false){
//alert('inside false');
return false;
}
location.reload();
} else {
alert("Please select store first!");
return false;
}
}
function removeDeliverySlot()
{
if($("#selctProductStore").val() !='' ){
var storeId = $("#selctProductStore").val();
var section_type = $("#selctProductStore").find(':selected').attr('data-section_type');
var deliveryType = $("#selctProductStore").find(':selected').attr('data-deliveryType');
var subscriptiontype = $("#selctProductStore").find(':selected').attr('data-subscriptiontype');
var deliveryDate = $("#ddlDeliveryDateChange").val();
$('#prod-loader').show();
removeSlotItems(storeId, section_type, deliveryDate, deliveryType, subscriptiontype);
$('#prod-loader').hide();
checkExpireSlot();
if(chkSlot == false){
return false;
}
location.reload();
} else {
alert("Please select store first!");
return false;
}
}
function removeSlotItems(storeId, section_type, deliveryDate, deliveryType, subscriptiontype)
{
var cart = window.localStorage.getItem('cart_food');
var expiredtiffin = $("#expiredtiffin").val();
var expirSlot = [];
if(expiredtiffin != '')
{
expirSlot = JSON.parse(expiredtiffin);
}
if (cart != null && cart != '') {
lstCart = JSON.parse(cart);
if (lstCart.length > 0) {
for (var i = 0; i < lstCart.length; i++) {
if(section_type == 'sweetandsancks' || section_type == 'rotikaa-kit' || section_type == 'holidaygiftbox' || section_type == 'currybox' || section_type == 'mangos' || section_type == 'mithaas' || section_type == 'justlassi' || section_type == 'moments'){
if(lstCart[i].sid == storeId && lstCart[i].section_type == section_type && lstCart[i].deliveryType == deliveryType && lstCart[i].subscriptiontype == subscriptiontype)
{
lstCart.splice(i, 1);
}
}
else if(section_type == 'tiffin'){
if(deliveryDate != 'tiffin_expired'){
if(lstCart[i].sid == storeId && lstCart[i].section_type == section_type && (lstCart[i].deliveryDate == deliveryDate || lstCart[i].freq != 'Weekly'))
{
lstCart.splice(i, 1);
}
}
else{
if(expirSlot.length>0){
for (var e = 0; e < expirSlot.length; e++) {
//alert(expirSlot[e].sid+' >>> '+expirSlot[e].date)
if(lstCart[i].sid == expirSlot[e].sid && lstCart[i].section_type == section_type && lstCart[i].deliveryDate == expirSlot[e].date)
{
lstCart.splice(i, 1);
}
}
}
}
}
else{
if(lstCart[i].sid == storeId && lstCart[i].section_type == section_type)
{
lstCart.splice(i, 1);
}
}
}
}
window.localStorage.setItem("cart_food", JSON.stringify(lstCart));
updateMiniCart();
resetPhpCart();
}
var cart = window.localStorage.getItem('cart_food');
if (cart != null && cart != '') {
lstCart = JSON.parse(cart);
if (lstCart.length > 0) {
for (var i = 0; i < lstCart.length; i++) {
if(section_type == 'sweetandsancks' || section_type == 'rotikaa-kit' || section_type == 'holidaygiftbox' || section_type == 'currybox' || section_type == 'mangos' || section_type == 'mithaas' || section_type == 'justlassi' || section_type == 'moments'){
if(lstCart[i].sid == storeId && lstCart[i].section_type == section_type && lstCart[i].deliveryType == deliveryType && lstCart[i].subscriptiontype == subscriptiontype)
{
removeSlotItems(storeId, section_type, deliveryDate, deliveryType, subscriptiontype);
}
}
else if(section_type == 'tiffin'){
if(deliveryDate != 'tiffin_expired'){
if(lstCart[i].sid == storeId && lstCart[i].section_type == section_type && lstCart[i].deliveryDate == deliveryDate)
{
removeSlotItems(storeId, section_type, deliveryDate);
}
}
}
else{
if(lstCart[i].sid == storeId && lstCart[i].section_type == section_type)
{
removeSlotItems(storeId, section_type, deliveryDate);
}
}
}
}
}
}
if (sessionStorage.zipcodepop == 1) {
$("#getguestuseremail").show();
$(document).ready(function () {
$('body').toggleClass('modal-open');
$("#subscribe").toggleClass('show')
});
$('body').on('click', '.modal-togglebtn-subscribe', function (e) {
e.preventDefault();
$('body').toggleClass('modal-open');
$('#subscribe').toggleClass('show');
});
//sessionStorage.zipcodepop = parseInt(sessionStorage.zipcodepop)+1;
sessionStorage.zipcodepop = 2;
} else {
$("#getguestuseremail").hide();
}
$(document).ready(function() {
$('.faq-row-content').hide();
var faqTab = $('.faq-row-handle'),
faqTabContainer = $('.faq-row-container');
if(faqTab.length){
faqTab.off('click').on('click', function(){
var faqRow = $(this).parent(),
faqContent = $(this).parent().find('.faq-row-content');
var x = $(this).find(".faq-plus");
x.addClass("faq-minus");
$('.faq-plus').each(function(){
if($(this).hasClass('faq-minus') == false){
$(this).html('<img src="images/arrow-down.png">');
}
});
x.removeClass("faq-minus");
if (x.html() == '<img src="images/arrow-down.png">') {
x.html('<img src="images/arrow-up.png">');
} else if(x.html() == '<img src="images/arrow-up.png">') {
x.html('<img src="images/arrow-down.png">');
}
faqTabContainer.find('.faq-row-content').not(faqContent).stop().slideUp('slow');
faqTabContainer.find('.faq-row').not(faqRow).removeClass('open');
faqContent.stop().slideToggle('slow', function() {
faqRow.toggleClass('open', faqContent.is(':visible'));
});
});
}
});
function getnewCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}
if (getnewCookie('searchid') != "" && getnewCookie('searchid')>0) {
if(getnewCookie('searchsectionid')==$("#hdnsectionid").val()){
if($("#hdnPID").val()!='' && $("#hdnPID").val()>0){
var hpid=$("#hdnPID").val();
} else {
var hpid=$("#mainpid").val();
}
newsaveSearhProduct(getnewCookie('searchid'),hpid,'view');
} else {
var href="";
var sectionid="";
var ssid=0;
document.cookie = "searchid" + "=" + ssid + ";" + "path=/";
document.cookie = "searchpath" + "=" + href + ";" + "path=/";
document.cookie = "searchsectionid" + "=" + sectionid + ";" + "path=/"
}
}
function newsaveSearhProduct(searchid,pid,action){
if (searchid > 0) {
$.ajax({
url: "ajax-searchupdate.php",
data: {searchid: searchid, pid: pid, action: action},
cache: false,
success: function (data)
{
}
})
}
}
</script>
<!-- zipcode popup ends -->
<!--shareasale sessionstorage starts-->
<?php if($_REQUEST['sscid']){
setcookie('sasale', 1, time() + (86400), "/"); // 86400 = 1 dayy
} ?>
<!-- shareasale session script ends-->
<footer>
<div class="clsLinks clsPgWidth">
<section class="col-1">
<h4>OUR COMPANY</h4>
<ul>
<li><a href="<?php echo SITE_URL; ?>about-quicklly" title="About Quicklly" >ABOUT</a></li>
<li><a href="<?php echo SITE_URL; ?>contact" title="Quicklly contact" >CONTACT</a></li>
<li><a href="<?php echo SITE_URL; ?>career" title="Quicklly careers" >CAREERS</a></li>
<li><a href="<?php echo SITE_URL; ?>faq" title="Quicklly FAQS" >FAQS</a></li>
<li><a href="<?php echo SITE_URL; ?>blog" title="Latest update about Quicklly" >BLOG</a></li>
<li><a href="<?php echo SITE_URL; ?>privacy-policy" title="Quicklly Privacy policy" >PRIVACY POLICY</a></li>
<li><a href="<?php echo SITE_URL; ?>term-&-condition" title="Quicklly Terms & conditions" >TERMS & CONDITION</a></li>
<li><a href="<?php echo SITE_URL; ?>seller/" title="Sell with Quicklly" >SELLER</a></li>
<li><a href="<?php echo SITE_URL; ?>press" title="Quicklly Preass Release" >PRESS RELEASE</a></li>
</ul>
</section>
<section class="col-2">
<h4>FIND US ON</h4>
<ul>
<li><a href="https://www.facebook.com/quickllyIt" title="myvalue365 facebook" target="_blank">FACEBOOK</a></li>
<li><a href="https://twitter.com/QuickllyIt" title="Quicklly twitter" target="_blank">TWITTER</a></li>
<li><a href="https://in.linkedin.com/company/myvalue365-e-commerce-pvt-ltd-" title="Quicklly linkedin" target="_blank">LINKEDIN</a><li>
<li><a href="https://www.youtube.com/channel/UCNHYZ9SGLVejqPwHG8j6EKw/" title="Quicklly Youtube" target="_blank">YOUTUBE</a></li>
<li><a href="https://www.instagram.com/quickllyit/" title="Quicklly instagram" target="_blank">INSTAGRAM</a><li>
<li><a href="https://in.pinterest.com/QuickllyIt/" title="Quicklly pinterest" target="_blank">PINTEREST</a><li>
</ul>
</section>
<section>
<h4>GET IN TOUCH WITH US</h4>
<ul>
<li><a href="tel:+12243660987">PHONE SUPPORT: +1(224)366-0987</a></li>
<li><a href="mailto:[email protected]">GENERAL ENQUIRY: [email protected]</a></li>
<li><a href="mailto:[email protected]">ORDER SUPPORT: [email protected]</a></li>
<li><a href="mailto:[email protected]">STORES SUPPORT: [email protected]</a></li>
</ul>
</section>
<section>
<div class="float-left"><a href="https://apps.apple.com/us/app/quicklly/id1536958907" target="_blank"><img src="images/apple-icon.png" ><br> Download <br>iOS APP</a></div>
<div class="float-left"><a href="https://play.google.com/store/apps/details?id=com.quicklly.androidquicklly" target="_blank" ><img src="images/android-icon.png"> <br />Download <br>Android App</a></div>
</section>
</div>
<p class="clsCopyright">
<a href="<?php echo SITE_URL; ?>">Copyright© <?php echo date('Y') ?> <?php echo SITE_NAME; ?></a>
</p>
</footer>
<style>
.tmailactive {
display: block !important;
color: #ba2828;
font-weight: 500;
}
.offeremail {
padding:0px 30px;
}
.offeremail button.btns {
border-radius: 4px;
font-size:16px;
display:block;
width:75%;
margin: 10px auto;
}
.offeremail h3 {
font-size: 18px;
margin: 10px 0px;
font-weight: 600;
color: #000;
font-family: 'Montserrat';
}
.offeremail p {
font-size: 14px;
margin: 10px 0px;
color:#333;
font-family: 'Montserrat';
}
.offeremail input#tempemail {
width: 75%;
border-radius: 4px;
border: #fff;
margin-bottom: 10px;
padding: 10px;
padding-left: 20px;
}
footer section .float-left{
float: left;
width: 50%;
text-align: center;
color: #fff;
margin-bottom: 30px;
}
footer section .float-left img{
width: 90px;
}
footer section .float-left a{
color: #fff;
text-align: center;
}
/*subscribe Modal Custom popup Start*/
#zipcodesubscribe{
min-width:350px;
max-width:500px;
}
.sbx{
background:#def1e2;
box-shadow: 0px 1px 19px #b9b7b7;
}
.sbx .modal-body{
text-align: center;
}
.sbx .modal-body img{
padding:25px;
}
.email-box input[type=text]{
width: 75%;
border-radius: 25px;
border: #fff;
margin-bottom:20px;
padding: 17px;
padding-left:55px;
max-height: 50px;
}
@media(max-width:478px){
.email-box input[type=text]{
width: 80%;
}
}
.btns{
background: #4ba240;
color: #fff;
padding: 8px 26px;
border-radius: 25px;
border: #fff;
margin:10px;
font-size:23px;
}
.cls-btn{
border: 1px solid;
border-radius: 50px;
padding: 2px 6px;
color: #4ba240;
}
.email-box__button{
top: 19px;
position: relative;
right: 57px;
background: none;
border: none;
}
.email-box img{
width: 48px;
padding: 0px!important;
}
.email-box{
padding: 5px;
}
.modal{
background-color: rgb(255 255 255 / 85%);
}
.grpinptWithicon {
position: relative;
}
.inptbxwitIcn {
position: relative;
}
.inptbxwitIcn:before {
content: "";
display: block;
background: url('../images/pin.png') no-repeat;
width: 25px;
height: 25px;
float: left;
z-index: 9999
}
.pibboxwrpr {
position: absolute;
top: 20px;
z-index: 999;
}
button.email-box__button {
border-left: 2px solid #4ba240;
}
button.close.modal-togglebtn-subscribe {
padding: 5px;
border: navajowhite;
background: transparent;
font-weight: 900;
}
.suscr-modal-dialog-centered {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
min-height: calc(100% - 1rem)
}
.suscr-modal-dialog-centered::before {
display: block;
height: calc(100vh - 1rem);
content: ""
}
.suscr-modal-dialog-centered.modal-dialog-scrollable {
-ms-flex-direction: column;
flex-direction: column;
-ms-flex-pack: center;
justify-content: center;
height: 100%
}
.suscr-modal-dialog-centered.modal-dialog-scrollable .modal-content {
max-height: none
}
.suscr-modal-dialog-centered.modal-dialog-scrollable::before {
content: none
}
.grpinptWithicon {
width: 100%;
position: relative;
display: flex;
flex-flow: column wrap;
align-items: center;
}
.email-box__button {
top: 19px;
position: relative;
right: 60px;
background: none;
border: none;
position: absolute;
top: 0;
}
.pibboxwrpr {
position: absolute;
top: 2px;
z-index: 999;
left: 60px;
}
div#subscribe {
background-color: rgb(255 255 255 / 80%) !important;
}
@media (min-width:576px) {
.suscr-modal-dialog-centered {
min-height: calc(100% - 3.5rem)
}
.suscr-modal-dialog-centered::before {
height: calc(100vh - 3.5rem)
}
}
@media only screen and (min-width: 769px) {
p.suscBxTxt {
font-size: 20px;
font-weight: 500;
color: #000000;
padding: 10px 0px;
margin-bottom:0;
}
footer section .float-left img{
width: 50px;
}
}
@media only screen and (max-width: 768px) {
.suscBxTxt {
font-size: 22px;
font-weight: 500;
color: #000000;
padding: 10px 0px;
}
footer section .float-left img{
width: 50px;
}
}
@media only screen and (max-width: 600px) {
.suscBxTxt {
font-size: 20px;
font-weight: 500;
color: #000000;
padding: 10px 0px;
}
footer section .float-left img{
width: 50px;
}
}
@media only screen and (max-width: 478px) {
.suscBxTxt {
font-size: 18px;
font-weight: 500;
color: #000000;
padding: 10px 0px;
}
.email-box input[type=text] {
width: 95%;
}
.email-box__button {
top: 19px;
position: relative;
right: 5px;
background: none;
border: none;
position: absolute;
top: 0;
}
.pibboxwrpr {
position: absolute;
top: 2px;
z-index: 999;
left: 5px;
}
footer section .float-left img{
width: 50px;
}
}
@media only screen and (max-width:375px) {
.suscBxTxt {
font-size: 14px;
font-weight: 500;
color: #000000;
}
.email-box input[type=text] {
width: 100%;
}
.email-box__button {
top: 19px;
position: relative;
right: 5px;
background: none;
border: none;
position: absolute;
top: 0;
}
.pibboxwrpr {
position: absolute;
top: 2px;
z-index: 999;
left: 5px;
}
footer section .float-left img{
width: 40px;
}
}
/*subscribe Modal Custom popup Ends*/
</style>
<style type="text/css">
.faq-row {
border-bottom: #ccc 1px solid;
margin-bottom: 12px;
}
.faq-row-handle {
cursor: pointer;
display: block;
font-weight: normal;
padding: 7px 30px 7px 1px;
line-height: 20px;
text-decoration: none;
outline: 0;
}
.faq-row.open .faq-row-handle {
color:Black;
font-weight: 500;
}
.faq-row-content {
color: #555;
font-weight: normal;
line-height: 150%;
font-size: 13px;
display: none;
}
.faq-row-content p {
padding: 0px 14px 10px 14px;
font-size:14px;
line-height: 20px;
letter-spacing: 0.4px;
color: #000;
text-align: justify;
}
.faq-row-content p a{
color: green;
}
.dynm-content{
margin: 0px auto 30px auto;
font-family: 'Montserrat', sans-serif;
text-align: justify;
}
.dynm-content a{
color: green;
font-weight: 500;
}
.dynm-content h2{
font-size: 17px;text-align: initial;
}
.dynm-content p{
font-size:13px; line-height: 20px;color: #333;
}
.dynm-faq{
margin: 30px auto 30px auto;
}
.dynm-faq a{
color: #000;
font-weight: 500;
}
.faq-plus{
float: right;
font-size: 20px;
color: #000;
font-weight: bold;
margin-right: -15px;
}
.faq-minus{
float: right;
font-size: 20px;
color: #000;
font-weight: bold;
margin-right: -15px;
}
</style>
<?php
mysqli_close($obj);
?>
Directory Contents
Dirs: 1 × Files: 76