Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Aaaa

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

25:-min=15:14 video

27:-min=after 15,18:21
26:-variation color,size

28:addcart 20:45 baki table thi

@php
$total=$total+($val['price']+'45');
@endphp

$cart=session()->get('cart');
if($cart!='')
{
`
}

public function validcode($code)


{
// echo $code;
$cart=session()->get('cart');
$total=0;
if($cart!='')
{
foreach($cart as $val)
{
$total=$total+val['price'];
}
if(session()->has('user'))
{
$uid=session()->get('user.u_id');
}

$promocode=promocode::where([['co_code'],['status',0]])->first();
if($promocode!='')
{
if($promocode->u_id==0 || (session()->has('user') &&
$promocode->u_id==$uid) )
{
// echo "Valid Promocode";
if($total>=$promocode->min_order)
{

}
}
else
{
echo "Invalid Promocodes";

}
else
{
echo "Invalid Promocode";
}
}
else
{
echo "Your Cart Is Empty";
}

You might also like