checkout, register, payment,

checkout correction,
register wizard,
payment packege,
This commit is contained in:
Kevin Adametz 2019-03-02 00:08:11 +01:00
parent 6e3adac4d7
commit 446bc4561b
48 changed files with 2580 additions and 1493 deletions

View file

@ -52,6 +52,15 @@ class Util
return false;
}
public static function getAuthUser(){
if(\Session::has('auth_user')){
if($auth_user = \Session::get('auth_user')){
return $auth_user;
}
}
return false;
}
public static function addRoute($p = []){
$b = [];
@ -73,11 +82,11 @@ class Util
return false;
}
public static function getUserShopBackUrl(){
public static function getUserShopBackUrl($reference = ""){
if(\Session::has('user_shop')){
if($user_shop = \Session::get('user_shop')){
return 'http://'.$user_shop->slug.".".Config('app.domain')."/back/to/shop";
return 'http://'.$user_shop->slug.".".Config('app.domain')."/back/to/shop/".$reference;
}
}
return url("/");