payment Card first 4 payments inc. mails

This commit is contained in:
Kevin Adametz 2019-02-28 18:09:54 +01:00
parent c20deac3fe
commit 6e3adac4d7
38 changed files with 3063 additions and 921 deletions

View file

@ -73,7 +73,17 @@ class Util
return false;
}
public static function getUserShopBackUrl($uri){
public static function getUserShopBackUrl(){
if(\Session::has('user_shop')){
if($user_shop = \Session::get('user_shop')){
return 'http://'.$user_shop->slug.".".Config('app.domain')."/back/to/shop";
}
}
return url("/");
}
public static function getUserCardBackUrl($uri){
if(\Session::has('user_shop')){
if($user_shop = \Session::get('user_shop')){

View file

@ -226,6 +226,13 @@ class Yard extends Cart
return $this->numberFormat($subTotal, $decimals, $decimalPoint, $thousandSeperator);
}
public function destroy()
{
$this->ysession->remove($this->yinstance);
parent::destroy();
}
/**
* Get the Formated number