checkout, register, payment,
checkout correction, register wizard, payment packege,
This commit is contained in:
parent
6e3adac4d7
commit
446bc4561b
48 changed files with 2580 additions and 1493 deletions
|
|
@ -21,7 +21,6 @@ class Checkout
|
|||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
|
||||
if($identifier = ShoppingInstance::where('identifier', $request->route('identifier'))->first()){
|
||||
//user shop
|
||||
$user_shop = $identifier->user_shop;
|
||||
|
|
@ -29,7 +28,12 @@ class Checkout
|
|||
Util::setPostRoute('user.');
|
||||
\Session::put('user_shop', $user_shop);
|
||||
\Session::put('isCheckout', true);
|
||||
|
||||
if($identifier->auth_user_id){
|
||||
\Session::put('auth_user', $identifier->auth_user);
|
||||
}
|
||||
}
|
||||
Yard::instance('shopping')->destroy();
|
||||
//restore yard
|
||||
Yard::instance('shopping')->restore($request->route('identifier'));
|
||||
Yard::instance('shopping')->setShippingCountryWithPrice($identifier->country_id);
|
||||
|
|
@ -47,4 +51,4 @@ class Checkout
|
|||
return redirect(config('app.url'));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue