Commit d7745025 by Francisco Salazar

carrito cargar cliente

parent 017a7775
......@@ -168,7 +168,7 @@ public function shipping()
if(count(\Session::get('cart')) <= 0) {return redirect()->route('cart.show');}
if(\Session::has('client')) {
$client = \Session::get('client');
$client = Client::find(\Session::get('client')->id);
$addres = $client->shipping;
}
......@@ -199,10 +199,9 @@ public function shipping()
$cart = \Session::get('cart');
$costoEnvio = 0;
if(\Session::has('client')) {
$client = \Session::get('client');
$client = Client::find(\Session::get('client')->id);
if ($client->shipping != null) {
$addres = $client->shipping;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment