Preview: product-detail.php
Size: 67.55 KB
/home/justbyquicklly-old/justbyquicklly/www/product-detail.php
<?php
include("include/config.php");
include("include/functions.php");
//ini_set('display_errors', 1);
//ini_set('display_startup_errors', 1);
//error_reporting(E_ALL);
//Check zipcode
$product_id=$_GET['id'];
$_COOKIE['subscriptiontypejustlassin'] = parseField($_COOKIE['subscriptiontypejustlassin']);
$_COOKIE['deliverytypejustlassin'] = parseField($_COOKIE['deliverytypejustlassin']);
if($_COOKIE['subscriptiontypejustlassin']){
$subscriptiontype=$_COOKIE['subscriptiontypejustlassin'];
$deliverytype=$_COOKIE['deliverytypejustlassin'];
setcookie('subscriptiontypejustlassin', $subscriptiontype, time() + (86400 * 30 * 12), "/"); // 86400 = 1 day
setcookie('deliverytypejustlassin', $deliverytype, time() + (86400 * 30 * 12), "/"); // 86400 = 1 day
} else {
$subscriptiontype='One Time';
$_COOKIE['subscriptiontypejustlassin']=$subscriptiontype;
$deliverytype='free';
setcookie('subscriptiontypejustlassin', $subscriptiontype, time() + (86400 * 30 * 12), "/"); // 86400 = 1 day
setcookie('deliverytypejustlassin', $deliverytype, time() + (86400 * 30 * 12), "/"); // 86400 = 1 day
}
$pid=$_POST['pid'];
$tokenData = callAPI('POST', WEBAPI_URL_NEW.'login',array("email"=>"[email protected]", "password"=>"cgcptcu97b"));
$apitoken = $tokenData->token;
$token=$apitoken;
$result = callAPI('POST', WEBAPI_URL_NEW.'just-website/get-product-detail', array('zipcode' => $zipcode,'uid'=>0, 'freq'=>$subscriptiontype, 'pid' => $pid,'token'=>$token));
$plstProducts=$result;
$newp=$plstProducts->name;
$catname=$plstProducts->catName;
$prodSizeArray = array();
$defautsize='';
$dmcount=0;
$optionhtml='';
$display_price='';
$pshowp='';
foreach($plstProducts->lstsize as $rsltprodSizeObj) {
$prodSizeArray[] = $rsltprodSizeObj;
$mrp = number_format($rsltprodSizeObj->mrp, 2);
$sellprice = number_format($rsltprodSizeObj->cost, 2);
$mrp=$rsltprodSizeObj->mrp;
$wprice= $rsltprodSizeObj->cost;
if($mrp>$wprice) {
$wshowprice="<span class='righp gprice'>$".number_format($wprice,2)."<span class='crossprice'>$".number_format($mrp,2)."</span></span>";
} else {
$wshowprice="<span class='righp gprice'>$".$wprice."</span>";
}
$biprice= $rsltprodSizeObj->cost;
if($mrp>$biprice) {
$bshowprice="<span class='righp gprice'>$".number_format($biprice,2)."<span class='crossprice'>$".number_format($mrp,2)."</span></span>";
} else {
$bshowprice="<span class='righp gprice'>$".$biprice."</span>";
}
$mprice= $rsltprodSizeObj->cost;
if($mrp>$mprice) {
$mshowprice="<span class='righp gprice'>$".number_format($mprice,2)."<span class='crossprice'>$".number_format($mrp,2)."</span></span>";
} else {
$mshowprice="<span class='righp gprice'>$".$mprice."</span>";
}
$price= $rsltprodSizeObj->cost;
if($mrp>$price) {
$oneshowprice="<span class='righp gprice'>$".number_format($price,2)."<span class='crossprice'>$".number_format($mrp,2)."</span></span>";
} else {
$oneshowprice="<span class='righp gprice'>$".$price."</span>";
}
if($dmcount==0){
$defautsize=$rsltprodSizeObj->sizeID;
if($subscriptiontype=='Weekly'){
$display_price=$wshowprice;
} else if($subscriptiontype=='Bi Weekly') {
$display_price=$bshowprice;
} else if($subscriptiontype=='Monthy') {
$display_price=$mshowprice;
}else {
$display_price=$oneshowprice;
}
$pshowp=$rsltprodSizeObj->cost;
}
$optionhtml.= '<option value="'.$rsltprodSizeObj->sizeID.'" data-parentid="'. $plstProducts->pid.'" data-pid="'.$rsltprodSizeObj->sizeID.'" data-sizeid="'. $rsltprodSizeObj->sizeID.'" data-remark="'.$rsltprodSizeObj->sizeName.'" data-otax="'.$rsltprodSizeObj->tax.'" data-ocost="'.$rsltprodSizeObj->cost.'" data-wtax="'.$rsltprodSizeObj->taxWeekly.'" data-wcost="'.$rsltprodSizeObj->costWeekly.'" data-bitax="'.$rsltprodSizeObj->taxBiWeekly.'" data-bicost="'.$rsltprodSizeObj->costBiWeekly.'" data-mtax="'.$rsltprodSizeObj->taxMonthly.'" data-mcost="'.$rsltprodSizeObj->costMonthly.'" data-mrp="'.$rsltprodSizeObj->mrp.'" >'.$rsltprodSizeObj->sizeName.'</option>';
?>
<?php
$dmcount++;}
if($plstProducts->name!='') {
} else {
// header("location:".SITE_URL."just-ready-to-eat-indian-meals");
}
$section="just";
$standarddltype="free";
$expeditedltype="expedite";
$section="just";
$storeid=$StoreData->sid;
$zipcode=$zipcode;
$standarddeliveryarray=getDeliveryDatesfromApiLaravel($storeid,$zipcode,$section,$standarddltype,$token);
$standarddeliveryarray=json_decode($standarddeliveryarray);
$standarddeliverydate=$standarddeliveryarray->lstDeliveryDates[0]->lstDateTime[0]->value;
$standarddisplaydate=$standarddeliveryarray->lstDeliveryDates[0]->lstDateTime[0]->display;
$expeditedeliveryarray=getDeliveryDatesfromApiLaravel($storeid,$zipcode,$section,$expeditedltype,$token);
$expeditedeliveryarray=json_decode($expeditedeliveryarray);
$expeditedeliverydate=$expeditedeliveryarray->lstDeliveryDates[0]->lstDateTime[0]->value;
$expeditedisplaydate=$expeditedeliveryarray->lstDeliveryDates[0]->lstDateTime[0]->display;
if($deliverytype=="free") {
$dltype="free";
//for old cart items
if($_COOKIE['justlassiselectedvdaten']!='' && $_COOKIE['justlassiselectedvdaten']!=''){
if($_COOKIE['justlassiselectedvdaten'] < $standarddeliverydate){
$finaldeliverydate=$standarddeliverydate;
$finaldeliverydisplay=$standarddisplaydate;
} else {
$_COOKIE['justlassiselectedvdaten'];
$finaldeliverydate=$_COOKIE['justlassiselectedvdaten'];
$finaldeliverydisplay=$_COOKIE['justlassiselectedddaten'];
}
} else {
$finaldeliverydate=$standarddeliverydate;
$finaldeliverydisplay=$standarddisplaydate;
}
} elseif($deliverytype=="expedite") {
if($_COOKIE['justlassiselectedvdaten']!='' && $_COOKIE['justlassiselectedvdaten']!=''){
if($_COOKIE['justlassiselectedvdaten'] < $expeditedeliverydate){
$finaldeliverydate=$expeditedeliverydate;
$finaldeliverydisplay=$expeditedisplaydate;
} else {
$finaldeliverydate=$_COOKIE['justlassiselectedvdaten'];
$finaldeliverydisplay=$_COOKIE['justlassiselectedddaten'];
}
} else {
$finaldeliverydate=$expeditedeliverydate;
$finaldeliverydisplay=$expeditedisplaydate;
}
$dltype="expedite";
} else {
$dltype="free";
$finaldeliverydate=$standarddeliverydate;
$finaldeliverydisplay=$standarddisplaydate;
}
?>
<!DOCTYPE html>
<html lang="en-us">
<head>
<?php //include("metas.php"); ?>
<?php //include("css.php"); ?>
<?php //include("common-head.php"); ?>
<!-- <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">-->
<!--<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>-->
<!--<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>-->
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.css">
<link rel="stylesheet" href="css/bootstrap.min.css">-->
<style>
a.grilladdtocart {
font: normal normal 500 16px/25px Poppins!important;
}
ul.attributeslist {
display: flex;
margin:0;
padding:0;
}
ul.attributeslist li {
list-style: none;
padding: 15px;
}
ul.attributeslist li img {
max-width: 100%;
}
.organicboxsizes label {
font: normal normal 600 15px/32px Poppins;
letter-spacing: 0px;
color: #000000;
display:block;
}
.organicstickycart .clsPgWidth {
width: 90% !important;
}
.momentsuccess{
width:100%;padding: 21px 66px 6px 51px;text-align: center;
}
.clsDialog-Box.clsMomentsCustomDialog {
width:400px;
}
.momentsuccess h3{
padding-bottom: 10px;
font: normal normal 500 15px/20px Poppins !important;
letter-spacing: 0px;
color: #000000;
text-transform: initial;
}
.organicstickycart .clsPgWidth {
width: 90% !important;
}
.organicstickycart {
position: fixed;
bottom: 0;
left: 0px;
right: 0;
background: #FFF2D9 0% 0% no-repeat padding-box;
box-shadow: 0px 0px 4px #00000029;
padding-top: 30px;
padding-bottom:2px;
z-index: 5;
}
.afterplacement.mactive:before {
margin-left: -20px;
}
.subcartitems .Addtocartrow button.addtocartorganicbox.disablecrt {
background: #707070;
}
.subcartitems .Addtocartrow button.addtocartorganicbox {
font: normal normal 500 14px/18px Poppins;
letter-spacing: 0px;
color: #FFFFFF;
padding: 9px 10px;
border: 0;
background: #9d2f88 0% 0% no-repeat padding-box;
border-radius: 4px;
border-radius: 4px;
position:relative;
top:-7px;
cursor:pointer;
display: block;
width: 100%;
}
span.totalcartsize {
margin-right: 40px;
font-family: 'Montserrat';
font-size: 14px;
font-weight: 500;
color: #000;
}
div#myBar .slidecontent {
float: right;
width: 23px;
position: relative;
top: -11px;
right: -10px;
}
.slidecontent {
display: block;
}
.slidecontent img {
max-width: 100%;
}
.slidecontent span {
display: block;
background: #333333;
font-size: 10px;
font-weight: 500;
color: #fff;
padding: 2px 4px;
text-align: center;
border-radius: 3px;
position:absolute;
}
.subcartitems {
display: block;
width: 100%;
}
.subcartitems .totalitemselected {
width: 150px;
float: left;
color: #000;
font-weight: 500;
font-size: 13px;
font-family: 'Montserrat';
position:relative;
top: -11px;
}
.subcartitems .cartscrollwithminorder {
width: 60%;
float: left;
position:relative;
}
.subcartitems .Addtocartrow {
float: right;
position:relative;
top:-6px;
}
.totalitemselected span {
color: #000;
}
.organicboxsizes.organicboxsizesrr p.priceboxleft {
margin: 0px !important;
}
.organicboxsizes.organicboxsizesrr p.priceboxleft span.righp.gprice {
font: normal normal 600 14px/20px Poppins;
letter-spacing: 0px;
color: #000000;
text-transform: capitalize;
position: relative;
}
.clsFoodStores.clsMealSelect.clsPgWidth.astrologypoojamix.clsBreadcrumb ul {
margin: 0px;
}
select.selectorgaincboxmm {
border: 1px solid #E4E4E4;
border-radius: 4px;
font: normal normal 500 14px/25px Poppins;
letter-spacing: 0px;
color: #000000;
padding: 5px 20px;
background:#fff;
outline:0;
}
.addtocartbox.clsFoodStoreCard.include-calculation {
box-shadow: none;
}
.divcustomtabpanelstab {
display: block;
width: 100%;
margin-bottom: 13px;
margin-top: 13px;
padding: 5px 5px;
clear: both;
}
.divcustomtabpanelstab ul {
list-style: none;
display: block;
width: 100%;
background: #F0F0F0 0% 0% no-repeat padding-box;
border-radius: 4px;
float: left;
}
.divcustomtabpanelstab ul li {
float: left;
padding: 7px 1px;
background: transparent;
width: 25%;
text-align: center;
font: normal normal 400 11px/18px Poppins !important;
letter-spacing: 0px;
color: #333333;
}
.divcustomtabpanelstab ul li a {
font: normal normal 500 12px/18px Poppins !important;
color: #000;
}
.divcustomtabpanelstab li.tablinks.active {
background: #9D2F88 0% 0% no-repeat padding-box;
border: 0px;
outline: 0;
box-shadow: none;
}
.divcustomtabpanelstab li.tablinks.active a {
color: #fff;
}
.productdespbox {
padding:10px 0px;
margin:15px 0px;
}
.slick-slide {
}
.productdespbox p {
text-align: left;
font: normal normal 500 15px/20px Poppins;
letter-spacing: 0px;
color: #000000;
}
.productdespbox p img {
width:24px;
vertical-align:bottom;
position:relative;
margin-right:10px;
}
a.example-image-link2 {
height: 84px;
overflow: hidden !important;
display: block;
}
li.clsFoodStoreCard.include-calculation.slick-slide span.minusQty {
}
li.clsFoodStoreCard.include-calculation.slick-slide span.plusQty {
}
.productlistsliderinner .clsFoodStores .clsFoodStoreCard {
}
.productlistsliderinner .clsFoodStoreCard a {
position: relative !important;
}
.clsMealSelect .clsFoodStoreCard.active a:not(.Meal-Kit) {
background-image: none !important;
}
p.setprodqty {
background-color: #9D2F88 !important;
border: 1px solid #9D2F88 !important;
border-radius: 4px !important;
padding: 8px 0px;
height: auto !important;
width: 100% !important;
bottom: 0px !important;
}
a.grilladdtocart.disabled-link {
display: none;
}
li.clsFoodStoreCard.include-calculation.slick-slide {
}
.organicproductmainimg ul {
display: flex;
}
.productdesp.showtxt p, .productdesp.showtxt span,.productdesp.showtxt div {
font: normal normal 500 14px/20px Poppins !important;
letter-spacing: 0px;
color: #000000;
}
a.grilladdtocartm {
font: normal normal 500 14px/16px Poppins !important;
}
a.grilladdtocart.disabled-link {
display: none;
}
.addtocartbox {
width: 100%;
margin-top: 0px !important;
}
.organicproductmainimg ul li {
width: 100px;
padding-right: 10px;
list-style: none;
}
.headingdiv {
text-align: left;
padding: 20px 0px 20px 0px;
}
.headingdivupdate {
text-align: left;
padding: 15px 0px 15px 0px;
}
.productlistsliderinner li {
width: 274px;
padding: 0px 10px;
}
.productlistsliderinner li.slick-slide img {
}
a.imgwrapwithin {
height: 320px;
overflow: hidden;
display: block;
}
.Worksp, .Worksp a {
font: normal normal 500 14px/18px Poppins;
letter-spacing: 0px;
color: #333333;
padding-top: 10px;
}
.organicboxsizes {
display: block;
justify-content: space-between;
padding: 5px 0px;
}
p.priceboxleft span.righp.gprice {
font: normal normal 600 18px/32px Poppins;
letter-spacing: 0px;
color: #000000;
text-transform: capitalize;
position:relative;
}
p.priceboxleft {
margin: 15px 0px;
}
p.priceboxleft span.righp.gprice span.crossprice {
font: normal normal 600 18px/32px Poppins;
letter-spacing: 0px;
color: #666;
text-transform: capitalize;
position:relative;
}
p.priceboxright a {
font: normal normal 500 14px/20px Poppins;
letter-spacing: 0px;
color: #35336D;
text-transform: capitalize;
opacity: 1;
}
li.clsFoodStoreCard.include-calculation.slick-slide {
}
span.discounttag {
position: absolute;
z-index: 1;
top: 20px;
left: 0px;
background: #F52968 0% 0% no-repeat;
font: normal normal 600 16px/20px Poppins;
color: #fff;
padding: 4px 10px;
border-top-right-radius: 10px;
}
span.crossprice {
margin-left: 5px;
color: #666 !important;
}
span.crossprice:after {
content: '';
position: absolute;
height: 2px;
background: #F52968;
position: absolute;
right: -2px;
width: 110%;
top: 47%;
}
p.pricerange span.crossprice {
margin-left: 11px;
}
p.pricerange span.crossprice:after {
right:-7px;
}
p.pricerange,.pricerange span{
position:relative;
}
.addtocartbox label, .addtocartbox label span {
position:relative;
}
select#priceselect {
width: 50%;
text-align: left;
font: normal normal 500 14px/23px Poppins;
letter-spacing: 0px;
color: #000000;
background: #FFFFFF 0% 0% no-repeat padding-box;
border: 1px solid #E4E4E4;
border-radius: 4px;
padding: 10px 10px;
outline: none;
}
.dateqtybix ul li input {
width: 100%;
text-align: left;
font: normal normal 500 14px/23px Poppins;
letter-spacing: 0px;
color: #000000;
background: #FFFFFF 0% 0% no-repeat padding-box;
border: 1px solid #E4E4E4;
border-radius: 4px;
padding: 10px 10px;
outline: none;
}
.dateqtybix {
clear: both;
}
.astrologypoojamix.clsBreadcrumb {
padding: 5px 20px;
}
div#searchhide a {
pointer-events: auto !important;
text-decoration: none !important;
}
.astrologypoojamix.clsBreadcrumb ul li a {
font: normal normal 500 12px/15px Poppins;
color:#777;
}
.astrologypoojamix.clsBreadcrumb ul li h1 {
font: normal normal 600 12px/18px Poppins;
color:#000;
}
.topsectionshopbypepartmentarrow ul {
display: block !important;
list-style: none !important;
}
.slick-arrow.left {
}
.slick-arrow.right {
}
img.control-c {
width:40px;
}
.slick-slide {
}
.clsFoodStores.clsMealSelect.clsPgWidth {
}
.topsectionshopbypepartmentarrow {
padding: 5px;
box-shadow: 0px 0px 4px #eaea;
position: absolute;
z-index: 9;
margin-top: 0;
top: 34px;
display: none;
background: #fff;
width: 160px;
}
.topsectionshopbypepartmentarrow ul li img {
display: none;
}
.topsectionshopbypepartment:hover .topsectionshopbypepartmentarrow {
display: block;
}
.topsectionshopbypepartment {
position: relative;
}
.topsectionshopbypepartmentarrow ul li {
padding: 4px 5px !important;
}
.topsection {
width: 95%;
display: flex;
margin: 0 auto;
justify-content: space-between;
padding:5px 0px;
}
.topsection a, .topsection a label {
text-align: left;
font: normal normal 500 13px/0px Poppins !important;
letter-spacing: 0px;
color: #000000;
cursor: pointer;
}
.topsection a img {
width:25px;
position:relative;
top:4px;
margin-right:5px;
}
.topsection ul {
display: flex;
list-style-type:none;
justify-content:space-evenly;
margin:0;
padding:0px;
vertical-align: middle;
}
.topsection ul li {
padding: 7px 10px;
}
footer .clsLinks .col-2 {
min-width: auto !important;
}
.productdesp {
display:none;
}
.productdesp.showtxt {
display:block;
}
.clsFoodStores.clsMealSelect.clsPgWidth.astrologypoojamix {
display: flex;
}
.organicproductmain.imagewrap {
width: 40%;
position:relative;
}
.organicproductmain.contentwrap {
width: 48%;
padding-left: 50px;
}
.organicproductmain.imagewrap img {
width: 100%;
height: auto;
margin-bottom:1rem;
}
.productinfowrap h3 { text-align: left;
font: normal normal 500 20px/32px Poppins!important;
letter-spacing: 0px;
color: #000000;
}
a.readmore {
background: none;
font: normal normal 500 13px/18px Poppins;
letter-spacing: 0px;
color: #F52968;
}
p.pricerange,.pricerange span {
text-align: left;
font: normal normal 500 20px/40px Poppins;
letter-spacing: 0px;
color: #000000;
position:relative;
}
p.productdesp {
font: normal normal 500 14px/22px Poppins;
letter-spacing: 0px;
color: #000000;
}
.pricebox {
margin:10px 0px;
position:relative;
}
ul.mainsizehtml {
display: block;
align-items: center;
list-style: none;
margin: 8px 0px;
position:relative;
width:50%;
}
li.mainsizehtmlrow {
background-image: url(../images/down-arrow-grey.png) !important;
background-size: 12px !important;
background-position: 95% 50% !important;
width: 100%;
}
ul.dropsizehtml {
height: 40vh;
overflow-y: scroll;
padding: 0;
margin-right: 0px !important;
position:absolute;
z-index: 9;
margin-top: 0;
top: 55px;
display: none;
background: #fff;
display:none;
width:100%;
}
ul.dropsizehtml li {
margin-right: 0px !important;
}
ul.mainsizehtml.mainflag .mainsizehtmlrow:hover ul.dropsizehtml.open{
display:block;
}
ul.mainsizehtml.mainflag .mainsizehtmlrow:hover ul.dropsizehtml.closed{
display:none !important;
}
.pricebox ul li {
background: #FFFFFF 0% 0% no-repeat padding-box;
border: 1px solid #E4E4E4;
border-radius: 8px;
margin-right:0px;
text-align:left;
padding:5px 10px;
margin-bottom:0px;
display:block;
}
.pricebox ul li p {
font: normal normal 600 14px/25px Poppins;
letter-spacing: 0px;
color: #000000;
}
.dateqtybix {}
.pricebox h4 {
text-align: left;
font: normal normal 500 18px/40px Poppins;
letter-spacing: 0px;
color: #000000;
}
.pricebox ul li.active {
background: #FFF5F7 0% 0% no-repeat padding-box;
border: 1px solid #E1406A;
border-radius: 8px;
}
.dateqtybix ul {
display:flex;
list-style:none;
}
.dateqtybix ul li {
width:33%;
margin-right:20px;
}
.dateqtybix ul li label {text-align: left;font: normal normal 600 14px/23px Poppins;letter-spacing: 0px;color: #000000;display:block;margin: 10px 0px;}
.dateqtybix ul li select{
text-align: left;
font: normal normal 500 14px/23px Poppins;
letter-spacing: 0px;
color: #000000;
background: #FFFFFF 0% 0% no-repeat padding-box;
border: 1px solid #E4E4E4;
border-radius: 4px;
padding:5px 10px;
outline:none;
width:100%;
}
select.qtynn {
width: 68px !important;
}
.addtocartbox label {
display:block;
}
.addtocartbox label,.addtocartbox label span {
text-align: left;
font: normal normal 600 16px/23px Poppins;
letter-spacing: 0px;
color: #000000;
}
span.minusQty {
float: left;
position: relative;
top: -9px;
}
span.plusQty {
float: right;
position: relative;
top: -9px;
}
.organicproductmain.contentwrap .tab {
overflow: hidden;
background: #FFF5F7 0% 0% no-repeat padding-box;
border-radius: 8px 8px 0px 0px;
display: flex;
justify-content: space-around;
/* padding: 10px; */
}
/* Style the buttons inside the tab */
.organicproductmain.contentwrap .tab button {
background-color: inherit;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 20px 16px;
transition: 0.3s;
text-align: center;
font: normal normal 500 18px/23px Poppins;
letter-spacing: 0px;
color: #333333;
text-transform: capitalize;
width: 50%;
}
/* Change background color of buttons on hover */
.organicproductmain.contentwrap .tab button:hover {
color: #F52968;
}
/* Create an active/current tablink class */
.organicproductmain.contentwrap .tab button.active {
letter-spacing: 0px;
color: #F52968;
text-transform: capitalize;
border-bottom:3px solid #F52968;
}
/* Style the tab content */
.organicproductmain.contentwrap .tabcontent {
display: none;
padding: 20px 20px;
-webkit-animation: fadeEffect 1s;
animation: fadeEffect 1s;
}
.organicproductmain.contentwrap .tabcontent p {
font: normal normal 500 13px/20px Poppins;
letter-spacing: 0px;
color: #000000;
}
/* Fade in tabs */
@-webkit-keyframes fadeEffect {
from {opacity: 0;}
to {opacity: 1;}
}
@keyframes fadeEffect {
from {opacity: 0;}
to {opacity: 1;}
}
.haveanypujarelated {background: #FFF5F7 0% 0% no-repeat padding-box;border-radius: 8px;margin: 35px 0px;padding: 15px 25px;}
.addtocartbox {
margin-top: 15px;
}
.haveanypujarelated ul {
list-style:none;
}
.haveanypujarelated ul li {
display:flex;
align-items:center;
}
.queryimg {
margin-right: 24px;
}
.querycontent p {
text-align: left;
font: normal normal 500 16px/20px Poppins;
letter-spacing: 0px;
color: #000000;
}
.querycontent a {
background: #333333 0% 0% no-repeat padding-box;
border-radius: 4px;
text-align: left;
font: normal normal 500 16px/20px Poppins;
letter-spacing: 0px;
color: #FFFFFF;
margin-right: 20px;
padding: 5px 10px;
}
.querycontent a img {
vertical-align:middle;
}
.querycontentv2 {
margin-top: 15px;
}
.clsFoodStores .clsFoodStoreCard {
}
.clsMealSelect .clsFoodStoreCard a {
position: relative !important;
background-image: none !important;
text-decoration: none !important;
}
a.chefnameimgwrap img {
height: auto !important;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
}
a.chefnameimgwrap {
height: 171px !important;
overflow: hidden;
display: block;
}
.chefname {
text-align: left;
font: normal normal 500 12px/19px Poppins;
letter-spacing: 0px;
color: #000000;
padding: 0px 10px;
min-height: 30px;
}
.eventprice {
padding: 0 10px;
display: flex;
margin-bottom: 10px;
}
.pccom.price {
width: 60%;
}
.pccom.price span {
color: #000;
font: normal normal 500 12px/19px Poppins;
}
.pccom.buybutton {
width: 40%;
text-align: right;
}
.pccom.buybutton a {
background: #F52968 0% 0% no-repeat padding-box;
border-radius: 4px;
border: 1px solid #F52968;
font: normal normal 500 12px/16px Poppins;
letter-spacing: 0px;
color: #FFFFFF;
padding: 5px 10px;
}
/* the slides */
.slick-slide {
}
/* the parent */
.slick-list {
}
.clsFoodStores.clsMealSelect.clsPgWidth.relatedpujas h3 {
text-align: left;
font: normal normal 600 20px/40px Poppins;
letter-spacing: 0px;
color: #000000;
margin-bottom: 10px
}
.clsFoodStores.clsMealSelect.clsPgWidth.relatedpujas {
padding-top:10px;
padding-bottom:40px;
background:#fff;
}
.hideclass {
display:none;
}
.timedisplay {
display:none;
}
@media only screen and (min-width: 1500px) and (max-width: 2700px) {
.organicproductmain.imagewrap.stickIt img {
position: fixed;
top: 85px;
z-index: -1;
max-width: 620px;
min-width: 620px;
}
}
@media only screen and (min-width: 1400px) and (max-width: 1499px) {
.organicproductmain.imagewrap.stickIt img {
position: fixed;
top: 85px;
z-index: -1;
max-width: 525px;
min-width: 525px;
}
.pricebox ul li {
width: 100%;
padding: 2px 11px;
z-index: 2;
}
}
@media only screen and (min-width: 1300px) and (max-width: 1399px) {
.organicproductmain.imagewrap.stickIt img {
position: fixed;
top: 85px;
z-index: -1;
max-width: 500px;
min-width: 500px;
}
}
@media only screen and (min-width: 1200px) and (max-width: 1299px) {
.organicproductmain.imagewrap.stickIt img {
position: fixed;
top: 85px;
z-index: -1;
max-width: 445px;
min-width: 445px;
}
}
@media only screen and (min-width: 1100px) and (max-width: 1199px) {
.organicproductmain.imagewrap.stickIt img {
position: fixed;
top: 85px;
z-index: -1;
max-width: 402px;
min-width: 402px;
}
}
@media only screen and (min-width: 1000px) and (max-width: 1099px) {
.organicproductmain.imagewrap.stickIt img {
position: fixed;
top: 100px;
z-index: -1;
max-width: 380px;
min-width: 380px;
}
}
@media only screen and (min-width: 900px) and (max-width: 999px) {
.organicproductmain.imagewrap.stickIt img {
position: fixed;
top: 120px;
z-index: -1;
max-width: 340px;
min-width: 340px;
}
}
@media only screen and (min-width: 800px) and (max-width: 899px) {
.organicproductmain.imagewrap.stickIt img {
position: fixed;
top: 120px;
z-index: -1;
max-width: 320px;
min-width: 320px;
}
}
@media only screen and (min-width: 768px) and (max-width: 799px) {
.organicproductmain.imagewrap.stickIt img {
position: fixed;
top: 120px;
z-index: -1;
max-width: 300px;
min-width: 300px;
}
}
@media only screen and (min-width: 768px) and (max-width: 1370px) {
.productinfowrap h3 {
font: normal normal 500 25px/25px Poppins !important;
}
p.pricerange,.pricerange span {
font: normal normal 500 15px/30px Poppins;
}
p.productdesp {
font: normal normal 500 12px/18px Poppins;
}
.pricebox h4 {
font: normal normal 500 14px/30px Poppins;
}
.pricebox ul li p {
font: normal normal 600 12px/22px Poppins;
}
.dateqtybix ul li label {
font: normal normal 600 12px/20px Poppins;
margin: 10px 0px;
}
.dateqtybix ul li select {
font: normal normal 500 12px/20px Poppins;
}
.pricebox {
margin: 0px 0px 0px;
}
.addtocartbox {
margin-top: 10px;
}
.addtocartbox label, .addtocartbox label span {
font: normal normal 600 12px/23px Poppins;
position:relative;
}
.querycontent p {
font: normal normal 500 14px/20px Poppins;
}
.organicproductmain.contentwrap .tabcontent p {
font: normal normal 500 12px/20px Poppins;
}
.organicproductmain.contentwrap .tab button {
font: normal normal 500 14px/20px Poppins;
padding: 15px 16px;
}
.clsFoodStores.clsMealSelect.clsPgWidth.relatedpujas h3 {
text-align: left;
font: normal normal 600 14px/30px Poppins;
}
.queryimg img {
width: 75px;
}
.querycontent a {
font: normal normal 500 13px/20px Poppins;
}
}
@media only screen and (min-width: 768px) and (max-width: 1088px) {
.topsection ul li {
padding: 7px 3px;
}
.topsection a, .topsection a label {
font: normal normal 500 12px/0px Poppins !important;
}
.clsFoodStores.clsMealSelect.clsPgWidth {
width: 100% !important;
}
.productinfowrap h3 {
font: normal normal 500 16px/25px Poppins!important;
}
.haveanypujarelated {
padding: 15px 16px;
}
.queryimg {
margin-right: 15px;
}
}
@media only screen and (min-width: 320px) and (max-width: 767px) {
.organicstickycart {
}
.subcartitems {
position: relative;
padding: 0 10px;
}
.pricebox ul li {
background: #FFFFFF 0% 0% no-repeat padding-box;
border: 1px solid #E4E4E4;
border-radius: 8px;
margin-right: 10px;
text-align: left;
padding: 8px 6px;
width: 100%;
}
select#priceselect {
width: 100%;
}
ul.mainsizehtml {
display: block;
align-items: center;
list-style: none;
margin: 8px 0px;
position: relative;
width: 100%;
}
.topsection.hidemob{
display:none;
}
.clsFoodStores.clsMealSelect.clsPgWidth {
width: 100% !important;
}
.clsFoodStores.clsMealSelect.clsPgWidth.astrologypoojamix {
display: block;
}
.organicproductmain.imagewrap {
width: 100%;
}
.organicproductmain.contentwrap {
width: 100%;
padding-left: 0;
}
.productinfowrap h3 {
font: normal normal 500 14px/22px Poppins;
margin-top: 10px;
}
p.pricerange,.pricerange span {
font: normal normal 600 12px/22px Poppins;
}
p.productdesp {
font: normal normal 500 12px/18px Poppins;
}
.pricebox h4 {
font: normal normal 600 12px/22px Poppins;
}
.pricebox ul li p {
font: normal normal 600 12px/18px Poppins;
}
.dateqtybix ul li label {
font: normal normal 600 12px/20px Poppins;
margin: 10px 0px;
}
.dateqtybix ul li select {
font: normal normal 500 12px/20px Poppins;
}
.pricebox {
margin: 0px 0px 0px;
}
.addtocartbox {
margin-top: 10px;
}
.addtocartbox label, .addtocartbox label span {
font: normal normal 600 12px/23px Poppins;
position:relative;
}
.querycontent p {
font: normal normal 500 12px/18px Poppins;
}
.organicproductmain.contentwrap .tabcontent p {
font: normal normal 500 12px/18px Poppins;
}
.organicproductmain.contentwrap .tab button {
font: normal normal 500 12px/20px Poppins;
padding: 12px 10px;
}
.clsFoodStores.clsMealSelect.clsPgWidth.relatedpujas h3 {
text-align: left;
font: normal normal 600 14px/22px Poppins;
}
.haveanypujarelated {
margin: 25px 0px;
padding: 10px 5px;
}
.querycontent a {
font: normal normal 500 12px/20px Poppins;
margin-right: 10px;
padding: 5px 5px;
}
.queryimg {
margin-right: 10px;
}
.queryimg img {
width: 75px;
}
.dateqtybix ul li {
width: 100%;
}
.dateqtybix ul {
display: block;
list-style: none;
}
.addtocartbox a {
width: 100%;
}
.addtocartbox label {
display: flex;
justify-content: space-between;
}
.organicproductmain.contentwrap .tabcontent {
padding: 10px 0px;
}
.clsFoodStoreCard.include-calculation.productcatBox {
}
.dateqtybix.astrologydetails ul li {
width: 49%;
}
}
.faq-first{
border-top: #E4E4E4 1px solid;
}
.btn-grey{
background-color:#D8D8D8;
color:#FFF;
}
.rating-block{
/*background-color:#FAFAFA;*/
border:1px solid #EFEFEF;
padding:15px 15px 20px 15px;
border-radius:3px;
}
.bold{
font-weight:700;
}
.padding-bottom-7{
padding-bottom:7px;
}
.review-block{
background-color:#FAFAFA;
border:1px solid #EFEFEF;
padding:15px;
border-radius:3px;
margin-bottom:15px;
}
.review-block-name{
font-size:12px;
margin:10px 0;
}
.review-block-date{
font-size:12px;
}
.review-block-rate{
font-size:13px;
margin-bottom:15px;
}
.review-block-title{
font-size:15px;
font-weight:700;
margin-bottom:10px;
}
.review-block-description{
font-size:13px;
}
.stars-ghost {
width: 0px;
position: relative;
float: left;
overflow: hidden;
height: 100%;
z-index: 2;
}
.stars .star:nth-child(1) {
left: 0;
}
.stars .star:nth-child(2) {
left: 84px;
}
.stars .star:nth-child(3) {
left: 168px;
}
.stars .star:nth-child(4) {
left: 252px;
}
.stars .star:nth-child(5) {
left: 336px;
}
.fill:before {
background-color: #EDB600;
background-image: linear-gradient(white, white);
background-size: 100% 50%;
background-repeat: no-repeat;
}
.info {
width: 100%;
font-size: 30px;
text-align: center;
font-family: "Consolas";
position: absolute;
top: -80px;
}
* {
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
}
*:before, *:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.clearfix {
clear:both;
}
.text-center {text-align:center;}
a {
color: tomato;
text-decoration: none;
}
a:hover {
color: #9D2F88;
}
pre {
display: block;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.42857143;
color: #333;
word-break: break-all;
word-wrap: break-word;
background-color: #F5F5F5;
border: 1px solid #CCC;
border-radius: 4px;
}
.header {
padding:20px 0;
position:relative;
margin-bottom:10px;
}
.header:after {
content:"";
display:block;
height:1px;
background:#eee;
position:absolute;
left:30%; right:30%;
}
.header h2 {
font-size:3em;
font-weight:300;
margin-bottom:0.2em;
}
.header p {
font-size:14px;
}
#a-footer {
margin: 20px 0;
}
.new-react-version {
padding: 20px 20px;
border: 1px solid #eee;
border-radius: 20px;
box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
text-align: center;
font-size: 14px;
line-height: 1.7;
}
.new-react-version .react-svg-logo {
text-align: center;
max-width: 60px;
margin: 20px auto;
margin-top: 0;
}
.success-box {
margin:50px 0;
padding:10px 10px;
border:1px solid #eee;
background:#f9f9f9;
}
.success-box img {
margin-right:10px;
display:inline-block;
vertical-align:top;
}
.success-box > div {
vertical-align:top;
display:inline-block;
color:#888;
}
/* Rating Star Widgets Style */
.rating-stars ul {
list-style-type:none;
padding:0;
-moz-user-select:none;
-webkit-user-select:none;
}
.rating-stars ul > li.star {
display:inline-block;
}
/* Idle State of the stars */
.rating-stars ul > li.star > i.fa {
font-size:1.3em; /* Change the size of the stars */
color:#ccc; /* Color on idle state */
}
/* Hover state of the stars */
.rating-stars ul > li.star.hover > i.fa {
color:#FFCC36;
}
/* Selected state of the stars */
.rating-stars ul > li.star.selected > i.fa {
color:#FF912C;
}
.pull-right
{
font: normal normal normal 14px/20px Poppins;
}
form#commentForm {
display: block;
position: relative;
width:100%!important;
margin: auto;
border-radius: 5px;
background: #FFF;
}
.reviewbtnDiv {
position: relative;
display: block;
/* border-bottom: 2px solid #c6c4c4; */
padding-bottom: 10px;
padding-top: 20px;
}
div.stars {
width: 113px;
display: inline-block;
}
label.star {
float: right;
padding: 1px;
font-size: 22px;
color: #444;
}
label {
display: inline-block;
margin-bottom: 0.5rem;
}
input.star:checked ~ label.star:before {
content: '\f005';
color: #FD4;
}
form#commentForm button#submit
{
background-color:#35336D!important;
border:1px solid #35336D !important;
border-radius:0px!important;
}
</style>
</head>
<body>
<div id="prod-loader" > <div class="ajax-loader"></div></div>
<link rel="stylesheet" href="<?php echo SITE_URL; ?>/plugin/dist/css/lightbox.min.css">
<style>
.lb-outerContainer {
position: initial !important;
}
.lb-data .lb-close {
position: fixed;
right: 10px;
top: 10px;
z-index:99;
}
.lb-nav a.lb-next {
opacity:1 !important;
}
label.slectsize {
color: #000;
padding-top: 7px;
font-weight: 500;
clear: both;
font: normal normal 500 14px/20px Poppins;
letter-spacing: 0px;
color: #000000;
}
select#pPrice {
width: 150px;
padding: 8px 10px;
display: block;
margin-top: 11px;
border: 1px solid #cccc;
outline: none;
font: normal normal 500 14px/20px Poppins;
letter-spacing: 0px;
color: #000000;
}
.faq-row-handle
{font: normal normal 600 16px/20px Poppins !important; color:black;
}
.faq-row a:hover,.faq-row a:active, {
color: #9D2F88 !important;
}
.faq-row {
border-bottom: #E4E4E4 1px solid !important;
margin-bottom: 12px;
}
.faq-row-content p
{
font: normal normal 400 14px/20px Poppins !important;
padding:0px!important;
}
.faq-row-content
{font: normal normal 500 14px/20px Poppins !important;}
*{margin:revert;}
/*p {*/
/* margin: revert-layer!important;*/
/*}*/
.reviewbtnDiv {
position: relative;
display: block;
/* border-bottom: 2px solid #c6c4c4; */
padding-bottom: 10px;
padding-top: 20px;
}
.reviewDivcount {
padding: 10px 20px;
color: #000;
font-size: inherit;
font-family: 'Montserrat';
font-weight: 600;
position: relative;
text-decoration: none;
border-radius: 5px;
border: 0px solid;
background: #fff;
}
.panel.panel-primary {
position: relative;
display: flex;
margin: 10px;
border: 0px solid #ccc3c3;
padding: 0px 10px;
}
.panel.panel-primary .commentImg {
width: max-content;
}
.panel.panel-primary img.user_profile_tag.rounded-circle {
display: block;
position: relative;
top: 2%;
width: 45px;
left: 2%;
border: 2px solid #fff;
border-radius: 50%;
}
.panel.panel-primary .panel-heading {
border-bottom: 0px solid #d4cbcb;
padding: 5px;
margin: 5px;
font-family: 'Montserrat';
}
.br-theme-fontawesome-stars .br-widget a.br-selected:after {
color: #EDB600;
}
.br-theme-fontawesome-stars .br-widget a:after {
content: '\f005';
color: #d2d2d2;
}
input.star:checked ~ label.star:before {
content: '\f005';
color: #FD4;
}
label.star:before {
content: '\f006';
font-family: FontAwesome;
}
input.star { display: none; }
.no_of_rating
{
margin: revert-layer!important;
}
.commentbody .form-group
{
margin-bottom: 0.1rem !important;
}
.panel-heading
{
padding: 0px 0px !important;
font-weight:bold;
font-family:Poppins!important;
font-size:14px;
}
.panel.panel-primary .panel-heading
{
margin-right : 0px !important;
margin-left : 3px !important;
margin-top : 0px !important;
margin-bottom : 0px !important;
}
.commentImg.user_profile_tag.rounded-circle
{
display: block;
position: relative;
top: 2%;
width: 70px;
right: 2%;
height:60px;
border: 2px solid #fff;
border-radius: 50%;
background-color:#E9E9E9;
}
.user_profile_tag.rounded-circle p
{
padding: 13px !important;
font-size: 22px !important;
font-family: Poppins !important;
color:#333;
font-weight:500;
}
.fill-60 {
display: inline-block;
position: relative;
font-size: 100px;
color: #ddd;
}
.fill-60:after {
font-family: FontAwesome;
content: "\f005";
position: absolute;
left: 0;
top: 0;
width: 60%;
overflow: hidden;
color: #f80;
}
h3
{
font: normal normal 600 20px/2px Poppins!important;
}
.mainproland
{
background: #F9F9F9 0% 0% no-repeat padding-box;
}
section.reviewSection {
padding:0px!important;
}
#searchhide .clsPgWidth h4
{
font: normal normal 600 16px/2px Poppins!important;
}
.pagination {
display: inline-block;
}
.pagination a {
color: black;
float: left;
padding: 8px 16px;
text-decoration: none;
}
.pagination a.active {
background-color: black;
color: white;
}
.pagination a:hover:not(.active) {background-color: #ddd;}
@media only screen and (min-width: 450px) and (max-width: 767px) {
.subcartitems .totalitemselected {
font-size: 13px;
top: -27px;
padding: 0 0px;
text-align: center;
width: 100%;
}
div#myProgress:after {
width: 85%;
margin-left: 0px;
content: '$<?php echo $plstProducts->mini_amt;?>';
}
.subcartitems .cartscrollwithminorder {
position: absolute;
top: -49px;
width: 100%;
left: 0;
display:none;
}
#myProgress {
width: 75%;
}
.subcartitems .Addtocartrow {
float: unset;
position: relative;
top: -15px;
padding: 10px;
}
.subcartitems .Addtocartrow button.addtocartorganicbox {
float: right;
}
div#myProgress:after {
width: 85%;
margin-left: 0px;
}
.organicstickycart {
padding-top:70px;
}
}
@media only screen and (min-width: 320px) and (max-width: 449px) {
.organicstickycart {
padding-top: 70px;
}
.subcartitems .totalitemselected {
font-size: 13px;
top: -27px;
padding: 0 0px;
text-align: center;
width: 100%;
margin-top:7px;
}
.subcartitems .cartscrollwithminorder {
position: absolute;
top: -49px;
width: 100%;
left: 0;
display:none;
}
#myProgress {
width: 75%;
}
div#myProgress:after {
width: 85%;
margin-left: 0px;
content: '$<?php echo $plstProducts->mini_amt;?>';
}
.subcartitems .Addtocartrow {
float: unset;
position: relative;
top: -15px;
padding: 10px;
}
.subcartitems .Addtocartrow button.addtocartorganicbox {
float: right;
}
}
</style>
<a href="javascript:void(0);" class="clsClose" style="z-index: 9999999;width: 32px!important;height: 32px!important;top: 5px;right: 5px;" onclick="closePopup(<?=$pid?>)" title="Close"></a>
<script>
$("#prod-loader").show();
var enabledDates=[];
</script>
<div id="searchhide" style="position:relative;">
<br><br>
<section class="productsection poojaandastroogy">
<input type="hidden" id="pids" value="<?php echo $pid ?>">
<input type="hidden" id="hdnStoreID" value="<?php echo $plstProducts->sid ?>">
<input type="hidden" id="hdnStoreName" value="<?php echo $plstProducts->store_name ?>">
<input type="hidden" id="hdnStoreImg" value="<?php echo $plstProducts->store_icon?>">
<input type="hidden" id="hdnSelect" value="5">
<input type="hidden" id="ddlProdQty" value="1">
<input type="hidden" id="hdnPPrice" value="">
<input type="hidden" id="hdnPTax" value="">
<input type="hidden" id="hdnStoreMin" value="<?php echo $plstProducts->mini_fee?>">
<input type="hidden" id="hdnStoreMinOrder" value="<?php echo $plstProducts->mini_amt ?>">
<input type="hidden" id="hdnDeliveryDate" value="<?php echo $finaldeliverydate; ?>">
<?php if (isset( $plstProducts->mainProdPhoto)) { ?>
<input type="hidden" id="hdnPPhoto" value="<?php echo $plstProducts->mainProdPhoto;?>">
<?php } else { ?>
<input type="hidden" id="hdnPPhoto" value="images/no-img.jpg">
<?php } ?>
<input type="hidden" id="hdnsectionid" value="36">
<input type="hidden" name="hdnPID" id="hdnPID" value="<?php echo $plstProducts->mainProdPid;?>" />
<input type="hidden" id="hdnPName" value="<?php echo $plstProducts->mainProdName;?>">
<input type="hidden" id="hdnSubcriptionTYpe" value="<?php if($_REQUEST['subcription_type']){ echo $_REQUEST['subcription_type'];} else { echo $_COOKIE['subscriptiontypejustlassin'];}?>">
<input type="hidden" id="hdnDeliveryType" value="<?php echo $deliverytype;?>">
<?php
$prodSizeArray = array();
$prodSizeimgArray = array();
$defautsize='';
$dmcount=0;
$optionhtml='';
$display_price='';
$dnutrionfacts='';
$sizeprice='';
$sizeName='';
foreach($plstProducts->lstsize as $rsltprodSizeObj) {
$prodSizeArray[] = $rsltprodSizeObj;
$mrp = number_format($rsltprodSizeObj->mrp, 2);
$sellprice = number_format($rsltprodSizeObj->cost, 2);
$mrp=$rsltprodSizeObj->mrp;
$wprice= $rsltprodSizeObj->cost;
if($mrp>$wprice) {
$wshowprice="<span class='righp gprice'>$".number_format($wprice,2)."<span class='crossprice'>$".number_format($mrp,2)."</span></span>";
} else {
$wshowprice="<span class='righp gprice'>$".$wprice."</span>";
}
$biprice= $rsltprodSizeObj->cost;
if($mrp>$biprice) {
$bshowprice="<span class='righp gprice'>$".number_format($biprice,2)."<span class='crossprice'>$".number_format($mrp,2)."</span></span>";
} else {
$bshowprice="<span class='righp gprice'>$".$biprice."</span>";
}
$mprice= $rsltprodSizeObj->cost;
if($mrp>$mprice) {
$mshowprice="<span class='righp gprice'>$".number_format($mprice,2)."<span class='crossprice'>$".number_format($mrp,2)."</span></span>";
} else {
$mshowprice="<span class='righp gprice'>$".$mprice."</span>";
}
$price= $rsltprodSizeObj->cost;
if($mrp>$price) {
$oneshowprice="<span class='righp gprice'>$".number_format($price,2)."<span class='crossprice'>$".number_format($mrp,2)."</span></span>";
} else {
$oneshowprice="<span class='righp gprice'>$".$price."</span>";
}
if($dmcount==0){
$defautsize=$rsltprodSizeObj->sizeID;
$dnutrionfacts=$rsltprodSizeObj->nutrionFacts;
if($subscriptiontype=='Weekly'){
$display_price=$wshowprice;
} else if($subscriptiontype=='Bi Weekly') {
$display_price=$bshowprice;
} else if($subscriptiontype=='Monthy') {
$display_price=$mshowprice;
}else {
$display_price=$oneshowprice;
}
}
if($dmcount==0){
$defautsize=$rsltprodSizeObj->sizeID;
$defaultphoto=$rsltprodSizeObj->photo;
if($subscriptiontype=='Weekly'){
$display_price=$wshowprice;
} else if($subscriptiontype=='Bi Weekly') {
$display_price=$bshowprice;
} else if($subscriptiontype=='Monthy') {
$display_price=$mshowprice;
}else {
$display_price=$oneshowprice;
}
}
if($subscriptiontype=='Weekly'){
$mdisplay_price=$wshowprice;
} else if($subscriptiontype=='Bi Weekly') {
$mdisplay_price=$bshowprice;
} else if($subscriptiontype=='Monthy') {
$mdisplay_price=$mshowprice;
}else {
$mdisplay_price=$oneshowprice;
}
$dnutrionfactss = nl2br($rsltprodSizeObj->nutrionFacts);
$sizeprice.='<div style="display:none" class="paisa" id="sizeg'.$rsltprodSizeObj->sizeID.'" data-qty="0" data-parentid="'. $pid.'" data-name="'.$plstProducts->name.'" data-pid="'.$rsltprodSizeObj->sizeID.'" data-sizeid="'. $rsltprodSizeObj->sizeID.'" data-remark="'.$rsltprodSizeObj->sizeName.'" data-tax="'.$rsltprodSizeObj->tax.'" data-cost="'.$rsltprodSizeObj->cost.'" data-mrp="'.$rsltprodSizeObj->mrp.'" data-photo="'.$rsltprodSizeObj->photo.'"></div>';
$optionhtml.= '<option value="'.$rsltprodSizeObj->sizeID.'" data-parentid="'. $plstProducts->mainProdPid.'" data-pid="'.$rsltprodSizeObj->sizeID.'" data-sizeid="'. $rsltprodSizeObj->sizeID.'" data-remark="'.$rsltprodSizeObj->sizeName.'" data-tax="'.$rsltprodSizeObj->tax.'" data-cost="'.$rsltprodSizeObj->cost.'" data-mrp="'.$rsltprodSizeObj->mrp.'" data-photo="'.$rsltprodSizeObj->photo.'" data-showprice="'.$mdisplay_price.'" data-dnutrionfacts="'.$dnutrionfactss.'">'.$rsltprodSizeObj->sizeName.'</option>';
$sizeName=$rsltprodSizeObj->sizeName;
?>
<?php
$dmcount++;}
?>
<div class="clsFoodStoreCard include-calculation clsFoodStores clsMealSelect clsPgWidth astrologypoojamix catcontentwrapper productcatBox prodcust<?php echo $product_id;?> catdetail<?php echo $plstProducts->catID;?>" style="width:100%;" data-pqty="1" data-pid="<?php echo $plstProducts->mainProdPid; ?>" data-name="<?php echo $plstProducts->name?>" data-photowide="<?php echo $plstProducts->photo;?>" data-remark="<?php echo $defautsize;?>" data-sizeid="<?php echo $defautsize;?>">
<div class="organicproductmain imagewrap" id="v-bar-fixed">
<div class="organicproductmainimg">
<?php
$ill=0;foreach($plstProducts->lstsize as $rsltprodSizeObjm) {
if(count($rsltprodSizeObjm->lstProdPhotoGallery)>0){
?>
<div class="progall" id="sizepp<?php echo $rsltprodSizeObjm->sizeID;?>" <?php if($ill==0){?> style="display:block;" <?php } else {?> style="display:none;" <?php } ?>>
<?php $kk=0; foreach($rsltprodSizeObjm->lstProdPhotoGallery as $rsltprodSizeGall) {
if($kk==0){
?>
<a class="example-image-link clsProdImg dynamic_url" href="<?php echo $rsltprodSizeGall->photo;?>" data-lightbox="example-set<?php echo $rsltprodSizeObjm->sizeID;?>"><img class="example-image photo_dynamic" src="<?php echo $rsltprodSizeGall->photo;?>" alt="<?php echo $plstProducts->name; ?>" id="img_<?php echo $rsltprodSizeGall->sizeID;?>"/></a>
<ul>
<?php } ?>
<?php if($rsltprodSizeGall->photo!='') {?>
<li><a class="" style="cursor:pointer;" onclick="getPhoto('<?php echo $rsltprodSizeGall->photo;?>')"><img class="example-image" src="<?php echo $rsltprodSizeGall->photo;?>" alt="<?php echo $plstProducts->name; ?>"/></a></li>
<?php if(count($rsltprodSizeObjm->lstProdPhotoGallery)==$k){?>
</ul>
<?php } } $kk++; } ?>
</div>
<?php } else {?> <div class="progall" id="sizepp<?php echo $rsltprodSizeObjm->sizeID;?>" <?php if($ill==0){?> style="display:block;" <?php } else {?> style="display:none;" <?php } ?>>
<a class="example-image-link clsProdImg" href="<?php echo $rsltprodSizeObjm->photo;?>" data-lightbox="example-set<?php echo $rsltprodSizeObjm->sizeID;?>"><img class="example-image" src="<?php echo $rsltprodSizeObjm->photo;?>" alt="<?php echo $plstProducts->name; ?>" id="img_<?php echo $rsltprodSizeObjm->sizeID;?>"/></a>
</div>
<?php } $ill++; }?>
</div>
</div>
<div class="organicproductmain contentwrap clspujapath" style="overflow-y: scroll;
height: 500px;">
<?php $productname=$plstProducts->name?>
<div class="productinfowrap">
<h3><?php echo $productname;?></h3>
<div class="organicboxsizes">
<?php echo $sizeprice;?>
<label>Serving Size : <?=$sizeName?></label>
<select class="selectorgaincbox selectorgaincboxmm selectOrganicBox<?php echo $pid; ?>" style="display:none;" onchange="calculateValue(this); selectSize(<?=$pid?>)" >
<?php echo $optionhtml;?>
</select>
<!-- <p class="priceboxleft"><?php echo $display_price;?></p>-->
</div>
<script>
var sizeid = $('.selectOrganicBox'+<?=$pid?>).find(':selected').data('sizeid');
var addcls='selectOrganicBox'+sizeid;
$(".selectOrganicBox"+<?=$pid?>).addClass(addcls);
</script>
<div class="organicboxsizesss" style="width:50%;">
<div class="selectorgaincboxnn">
<div style="width: 100%;display: inline-block; padding:0px 8px; left: -7px;">
<div class="" style="width: 100%;text-align: center;margin-left: 0px;">
<p class="setprodqty addtocartbox<?php echo $pid ?>" id="prodDetailssssQty" style="<?php if($_POST['tempQty']==0){ echo "display: none;";}else{ echo "display:block;";}?>"><a class="Meal-Kit" href="javascript:void(0);">
<span class="minusQty minusQty<?php echo $pid ?>" onClick="updateMainPageQty('minus','<?php echo $pid ?>','<?=$_POST['minOrder']?>')" style="padding: 2px 5px; color: #fff;font-size: 24px;">-</span>
<span class="qty qty<?php echo $pid ?>" id="checkQty<?=$pid?>" style="padding:0px 8px 0px 8px ;background-color: #9D2F88;color: #fff;font-size: 14px;position: relative; top: 0px; font-weight: 500;"><?=$_POST['tempQty']?></span>
<span class="plusQty plusQty<?php echo $pid ?>" onClick="updateMainPageQty('plus','<?php echo $pid ?>','<?=$_POST['minOrder']?>')" style="padding: 2px 5px; color: #fff;font-size: 24px;">+</span>
</a></p>
<a class="grilladdtocart grilladdtocart<?php echo $pid ?>" id="prodDetailssss" href="javascript:void(0);" style="border: 1px solid #9D2F88; background-color: #9D2F88; border-radius: 4px; padding: 8px 5px; color: #fff; position: initial; float: left;width: 88%;display: inline-grid;font-size: 13px; <?php if($_POST['tempQty']==0){ echo "display: block;";}else{ echo "display:none;";}?>" data-pid="<?php echo $pid; ?>" data-sizeid="" data-remark="" data-cost="" data-tax="" onclick="addToCart_ProdInfo(this);addToCart_ProdInfoProd(<?php echo $pid ?>);">
Add
</a>
</div>
<?php
$description = nl2br(addslashes(trim(preg_replace('/\s\s+/', '', $resultproduct->desp))));
$resultproduct->desp = $description;
?>
</div>
</div>
</div>
<div class="productdespbox">
<?php
$originalDate = $_POST['delDate'];
$newDate = date("d-M-Y", strtotime($originalDate));
?>
<p><img src="/images/new-just-lassi/homeimg/delivery.svg" alt="Our Story">Delivery on <?php echo $newDate;?></p>
</div>
<div class="faq-row-container">
<?php if($plstProducts->desp!='' && $plstProducts->desp!=null){?>
<div class="faq-row open" style="padding-bottom:10px">
<a href="javascript:;" class="faq-row-handle faq-first" onclick="openaccordian('des')">Product Description <span class="faq-plus"><img src="/images/arrow-up.png"></span></a>
<div class="faq-row-content des" id="desc" style="display: block;">
<p><?php $product_description=$plstProducts->desp;?>
<?php echo $product_description;?></p>
</div>
</div>
<?php } ?>
<?php if($plstProducts->ingredents!='' && $plstProducts->ingredents!=null){?>
<div class="faq-row">
<a href="javascript:;" class="faq-row-handle" onclick="openaccordian('in')">Ingredients<span class="faq-plus"><img src="/images/arrow-down.png"></span></a>
<div class="faq-row-content in" style="display: none;">
<p><?php echo $plstProducts->ingredents;?></p>
</div>
</div>
<?php } ?>
<?php if(count($plstProducts->attributes)>0){?>
<div class="faq-row">
<a href="javascript:;" class="faq-row-handle" onclick="openaccordian('att')">Attributes<span class="faq-plus"><img src="/images/arrow-down.png"></span></a>
<div class="faq-row-content att" style="display: none;">
<ul class="attributeslist">
<?php foreach($plstProducts->attributes as $rsltprodatt) {?>
<li><img src="<?php echo $rsltprodatt->ingredientIcon;?>" alt="<?php echo $rsltprodatt->ingredientName;?>"></li>
<?php } ?>
</ul>
</div>
</div>
<?php } ?>
<div class="faq-row" id="dnutrionfactss" <?php if($dnutrionfacts=='' || $dnutrionfacts==null){?> style="display:none;" <?php } ?>>
<a href="javascript:;" class="faq-row-handle" onclick="openaccordian('nu')">Nutrionfacts<span class="faq-plus"><img src="/images/arrow-down.png"></span></a>
<div class="faq-row-content nu" style="display: none;">
<p id="dnutrionfacts"><?php echo $dnutrionfacts = nl2br($dnutrionfacts);?></p>
</div>
</div>
<?php if($plstProducts->returnPolicy!='' && $plstProducts->returnPolicy!=null){?>
<div class="faq-row">
<a href="javascript:;" class="faq-row-handle">Shipping & Returns<span class="faq-plus"><img src="/images/arrow-down.png"></span></a>
<div class="faq-row-content" style="display: none;">
<p><?php echo $plstProducts->returnPolicy;?></p>
</div>
</div>
<?php } ?>
</div>
<!--<div class="productdesp showtxt">-->
<?php //$product_description=$plstProducts->desp;?>
<?php //echo $product_description;?>
<!--</div>-->
</div>
</div>
</div>
<div id="previousdata">
</div>
</div>
</section>
</div>
<?php
// include("footer.php");
// include("js.php");
?>
<script src="/<?php echo SITE_URL; ?>/plugin/dist/js/lightbox.js"></script>
<script>
function getPhoto(photo){
$(".photo_dynamic").attr('src',photo);
$(".dynamic_url").attr('href',photo)
}
$(document).ready(function (){
$("#prod-loader").hide();
lazyload();
$("#desc").show();
})
// saveCategoryViewData("justbyquicklly", "<?php echo $plstProducts->sid; ?>", "<?php echo $plstProducts->store_name;?>");
function openaccordian(id)
{
$(".faq-row-content").hide();
$("."+id).toggle();
}
function selectSize(pid)
{
/* var sizeid = $('.selectOrganicBox'+pid).find(':selected').data('sizeid');
var addcls='selectOrganicBox'+sizeid;
$(".selectOrganicBox"+pid).removeClass(addcls);
$(".selectOrganicBox"+pid).addClass(addcls);*/
}
function addToCart_ProdInfoProd(a)
{
var selectedq=0;
$(".clsFoodStoreCard.include-calculation").each(function (e) {
// alert('ok');
var $this = $(this);
$this.find(".paisa").each(function(){
// alert('paisa');
var prodQty = $(this).attr('data-qty');
if(prodQty){
console.log('else');
selectedq = selectedq + parseFloat($.trim(prodQty));
}
});
});
if(selectedq==<?=$_POST['minOrder']?>)
{
}
else
{
//addToCart_Just_Temp('justbyquicklly');
$(".grilladdtocart"+a).hide();
$(".addtocartbox"+a).show();
$('#ddlProdQty').val('1');
//var selectqty = $("#selected_time").html();
//alert(selectqty);
// $("#selected_time").html(parseInt(selectqty)+1);
}
}
function updateMainPageQty(q,a,c){
$(".prodcust"+a).addClass('active');
if(q=="plus"){
var qty = $(".qty"+a).html();
var selectedq=0;
$(".clsFoodStoreCard.include-calculation").each(function (e) {
// alert('ok');
var $this = $(this);
$this.find(".paisa").each(function(){
// alert('paisa');
var prodQty = $(this).attr('data-qty');
if(prodQty){
console.log('else');
selectedq = selectedq + parseFloat($.trim(prodQty));
}
});
});
if(selectedq==<?=$_POST['minOrder']?>)
{
alert("Select total <?=$_POST['minOrder']?> items to add in the cart.")
}
else
{
$(".qty"+a).html(parseInt(qty)+1);
$('.paisa'+a).attr('data-qty', parseInt(qty)+1);
var selectqty = $("#selected_time").html();
// alert(selectqty);
if(selectqty==0)
{
var selectqty=0;
}
else
{
var selectqty=$("#selected_time").html();
}
$("#selected_time").html(parseInt(selectqty)+1);
$("#TempCount").val(parseInt(selectqty)+1);
var selected = parseInt(selectqty)+1;
var percentagewith = Math.round((selected / <?=$_POST['minOrder']?>) * 100);
$("#myBar").width(percentagewith + "%");
$(".slidecontent span").text("" + selected);
var displayN= <?=$_POST['minOrder']?> - selected;
// alert('minus');
// alert(displayN);
if(displayN==0)
{
$('#myProgress').attr('data-after',"");
$('#myProgressMobile').html("");
}
else
{
$('#myProgress').attr('data-after',"Select more "+displayN+" Items");
$('#myProgressMobile').html("Select more "+displayN+" Items");
}
addToCart_Just_Temp('justbyquicklly');
if(parseInt(selectqty)+1==<?=$_POST['minOrder']?>)
{
addToCart_MealKit('justbyquicklly');
}
}
}else{
var qty = $(".qty"+a).html();
$(".qty"+a).html(parseInt(qty)-1);
$('.paisa'+a).attr('data-qty', parseInt(qty)-1);
var selectqty = $("#selected_time").html();
// alert(selectqty);
$("#selected_time").html(parseInt(selectqty)-1);
$("#TempCount").val(parseInt(selectqty)-1);
var selected = parseInt(selectqty)-1;
var percentagewith = Math.round((selected / <?=$_POST['minOrder']?>) * 100);
$("#myBar").width(percentagewith + "%");
$(".slidecontent span").text("" + selected);
var displayN= <?=$_POST['minOrder']?> - selected;
// alert('minus');
// alert(displayN);
if(displayN==0)
{
$('#myProgress').attr('data-after',"");
$('#myProgressMobile').html("");
}
else
{
$('#myProgress').attr('data-after',"Select more "+displayN+" Items");
$('#myProgressMobile').html("Select more "+displayN+" Items");
}
addToCart_Just_Temp('justbyquicklly');
var qtyy = $(".qty"+a).html();
if(qtyy==0)
{
$(".grilladdtocart"+a).show();
$(".grilladdtocart"+a).removeClass('disabled-link');
$(".addtocartbox"+a).hide();
}
}
var selecteItems=$("#selected_time").html();
// alert(selecteItems);
var minOrder=parseInt(c);
if(selecteItems >= minOrder){
$('.addtocartorganicbox').prop("disabled", false);
$('.addtocartorganicbox').removeClass("disablecrt");
}
else{
$('.addtocartorganicbox').prop("disabled", true);
$('.addtocartorganicbox').addClass("disablecrt");
}
}
</script>
</body>
Directory Contents
Dirs: 12 × Files: 58