Commit d7745025 by Francisco Salazar

carrito cargar cliente

parent 017a7775
...@@ -168,7 +168,7 @@ public function shipping() ...@@ -168,7 +168,7 @@ public function shipping()
if(count(\Session::get('cart')) <= 0) {return redirect()->route('cart.show');} if(count(\Session::get('cart')) <= 0) {return redirect()->route('cart.show');}
if(\Session::has('client')) { if(\Session::has('client')) {
$client = \Session::get('client'); $client = Client::find(\Session::get('client')->id);
$addres = $client->shipping; $addres = $client->shipping;
} }
...@@ -199,10 +199,9 @@ public function shipping() ...@@ -199,10 +199,9 @@ public function shipping()
$cart = \Session::get('cart'); $cart = \Session::get('cart');
$costoEnvio = 0; $costoEnvio = 0;
if(\Session::has('client')) { if(\Session::has('client')) {
$client = \Session::get('client'); $client = Client::find(\Session::get('client')->id);
if ($client->shipping != null) { if ($client->shipping != null) {
$addres = $client->shipping; $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