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
|
|
@ -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("/");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue