@@ -80,7 +80,8 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | public function checkoutForm(Request $request) |
| 82 | 82 | { |
| 83 | - if (!\Auth::user()) {//If User is not Logged in then send him to login Page |
|
| 83 | + if (!\Auth::user()) { |
|
| 84 | +//If User is not Logged in then send him to login Page |
|
| 84 | 85 | $url = $request->segments(); //The requested url (chekout).Save it in Session |
| 85 | 86 | \Session::put('session-url', $url[0]); |
| 86 | 87 | $content = Cart::getContent(); |
@@ -106,7 +107,8 @@ discard block |
||
| 106 | 107 | |
| 107 | 108 | try { |
| 108 | 109 | $domain = $request->input('domain'); |
| 109 | - if ($domain) {//Store the Domain in session when user Logged In |
|
| 110 | + if ($domain) { |
|
| 111 | +//Store the Domain in session when user Logged In |
|
| 110 | 112 | foreach ($domain as $key => $value) { |
| 111 | 113 | \Session::put('domain'.$key, $value); |
| 112 | 114 | } |
@@ -131,7 +133,8 @@ discard block |
||
| 131 | 133 | public function getAttributes($content) |
| 132 | 134 | { |
| 133 | 135 | try { |
| 134 | - if (count($content) > 0) {//after ProductPurchase this is not true as cart is cleared |
|
| 136 | + if (count($content) > 0) { |
|
| 137 | +//after ProductPurchase this is not true as cart is cleared |
|
| 135 | 138 | foreach ($content as $key => $item) { |
| 136 | 139 | $attributes[] = $item->attributes; |
| 137 | 140 | $cart_currency = $attributes[0]['currency']['currency']; //Get the currency of Product in the cart |
@@ -190,7 +190,8 @@ discard block |
||
| 190 | 190 | $this->product_upload->save(); |
| 191 | 191 | $this->product->where('id', $product_id->id)->update(['version'=>$request->input('version')]); |
| 192 | 192 | $autoUpdateStatus = StatusSetting::pluck('update_settings')->first(); |
| 193 | - if ($autoUpdateStatus == 1) { //If License Setting Status is on,Add Product to the License Manager |
|
| 193 | + if ($autoUpdateStatus == 1) { |
|
| 194 | +//If License Setting Status is on,Add Product to the License Manager |
|
| 194 | 195 | $updateClassObj = new \App\Http\Controllers\AutoUpdate\AutoUpdateController(); |
| 195 | 196 | $addProductToAutoUpdate = $updateClassObj->addNewVersion($product_id->id, $request->input('version'), $request->input('filename'), '1'); |
| 196 | 197 | } |
@@ -280,7 +281,8 @@ discard block |
||
| 280 | 281 | |
| 281 | 282 | try { |
| 282 | 283 | $licenseStatus = StatusSetting::pluck('license_status')->first(); |
| 283 | - if ($licenseStatus == 1) { //If License Setting Status is on,Add Product to the License Manager |
|
| 284 | + if ($licenseStatus == 1) { |
|
| 285 | +//If License Setting Status is on,Add Product to the License Manager |
|
| 284 | 286 | $addProductToLicensing = $this->licensing->addNewProduct($input['name'], $input['product_sku']); |
| 285 | 287 | } |
| 286 | 288 | $licenseCont = new \App\Http\Controllers\AutoUpdate\AutoUpdateController(); |