Preview: bkup.php
Size: 5.22 KB
/home/justbyquicklly-old/justbyquicklly/www/bkup.php
<?php foreach($lstProds as $row)
{
$i=0;
foreach($row['lstProds'] as $lstItem)
{
$i=$i+1;
// $catslug = str_replace("~","",$lstItem['catSlug']);
$catslug='ready-to-eat-indian-food';
$purl=str_replace(" ","-",strtolower($lstItem['name']));
// $product_url = $catslug.'/'.$purl.'/'.$lstItem['pid'];
$product_url='detail-page.php?id='.$lstItem['pid'];
$prodSizeArray = array();
$defautsize='';
$dmcount=0;
$optionhtml='';
$sizeprice='';
$display_price='';
$defaultphoto=$lstItem['photo'];
$x=0;
?>
<div style="background-color: #fff;" class="selboxinner-item clsFoodStoreCard include-calculation catcontentwrapper productcatBox prodcust<?php echo $lstItem['pid'];?> catdetail<?php echo $lstItem['catID'];?>" data-pqty="1" data-pid="<?php echo $lstItem['pid']; ?>" data-name="<?php echo $lstItem['name'] ?>" data-photowide="<?php echo $defaultphoto;?>" data-remark="<?php echo $defautsize;?>" data-sizeid="<?php echo $defautsize;?>">
<a href="<?php echo $product_url?>">
<img class="clsProdImg" src="<?php echo $defaultphoto;?>" id="img_<?php echo $lstItem['pid']; ?>" alt="<?php echo ucwords($lstItem['name']); ?>" loading="lazy" /></a>
<?php $string = strip_tags($lstItem['name']);
if (strlen($string) > 45) {
// truncate string
$stringCut = substr($string, 0, 45);
$endPoint = strrpos($stringCut, ' ');
//if the string doesn't contain any space then it will cut without word basis.
$string = $endPoint? substr($stringCut, 0, $endPoint) : substr($stringCut, 0);
$string .= '...';
}
?>
<?php $string2 = strip_tags($lstItem['desp']);
if (strlen($string2) > 60) {
// truncate string
$stringCut = substr($string2, 0, 1060);
$endPoint = strrpos($stringCut, ' ');
//if the string doesn't contain any space then it will cut without word basis.
$string2 = $endPoint? substr($stringCut, 0, $endPoint) : substr($stringCut, 0);
$string2 .= '...';
}
?>
<div class="intClass">
<div class="short_desp_wrap">
<div class="short_desp"><?php echo $string;?></div>
<div class="quickviewclickdetails">$<?=$lstItem['cost']?></div>
</div>
<div class="title"><?php echo $string2?></div>
<div class="organicboxsizese">
<div class="shipping" style="width:100%;padding: 2px 10px 7px 10px;">
<div class="shippingText" style="font: normal normal 500 14px / 27px Poppins;
letter-spacing: 0px;
color: #000000;
opacity: 1;">Shipping Charges</div>
<div class="shippingAmount" style="float: right;
position: relative;
top: -33px;
font: normal normal 500 14px / 27px Poppins;
letter-spacing: 0px;
color: #000000;
opacity: 1;">$4.99</div>
</div>
</div>
<p class="priceboxleft"><?php echo $display_price;?></span></p>
<div class="organicboxsizesss">
<div class="selectorgaincboxnn">
<div style="width: 100%;display: inline-block; padding:0px 8px;">
<div class="" style="width: 100%;text-align: center;margin-left: 0px;">
<a class="grilladdtocart1" id="hrefval<?=$i?>" href="all_products.php?planSize=<?=$lstItem['nuberOfSelect']?>&catID=<?=$lstItem['catID']?>&planID=<?=$lstItem['pid']?>" style="border: 1px solid #9D2F88; background-color: #9D2F88; border-radius: 4px; padding: 13px 5px; color: #fff; position: initial; float: left;width: 100%;display: inline-grid;font: normal normal 500 15px / 21px Poppins !important;" >
Build Your Box
</a>
</div>
<?php
$description = nl2br(addslashes(trim(preg_replace('/\s\s+/', '', $resultproduct->desp))));
$resultproduct->desp = $description;
?>
<script>
productDetail['<?php echo $resultproduct->pid ?>'] = '<?php echo json_encode($lstItem); ?>';
productSize['<?php echo $resultproduct->pid ?>'] = '<?php echo json_encode($prodSizeArray); ?>';
</script>
</div>
</div>
</div>
</div>
</div>
<?php } }?>
Directory Contents
Dirs: 12 × Files: 58