Completed
Push — development ( ff0ab6...d6912b )
by Bhanu
20:01 queued 09:34
created
app/Http/Controllers/Product/ExtendedBaseProductController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,8 @@
 block discarded – undo
62 62
             $file_upload = ProductUpload::find($id);
63 63
             $file_upload->update(['title'=>$request->input('producttitle'), 'description'=>$request->input('description'), 'version'=> $request->input('version')]);
64 64
             $autoUpdateStatus = StatusSetting::pluck('update_settings')->first();
65
-            if ($autoUpdateStatus == 1) { //If License Setting Status is on,Add Product to the AutoUpdate Script
65
+            if ($autoUpdateStatus == 1) {
66
+//If License Setting Status is on,Add Product to the AutoUpdate Script
66 67
                 $productSku = $file_upload->product->product_sku;
67 68
                 $updateClassObj = new \App\Http\Controllers\AutoUpdate\AutoUpdateController();
68 69
                 $addProductToAutoUpdate = $updateClassObj->editVersion($request->input('version'), $productSku);
Please login to merge, or discard this patch.
app/Http/Controllers/Front/ExtendedBaseCartController.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -135,18 +135,21 @@
 block discarded – undo
135 135
             if ($this->checkPlanSession() === true) {
136 136
                 $planid = Session::get('plan');
137 137
             }
138
-            if (!$planid) {//When Product Is Added from Cart
138
+            if (!$planid) {
139
+//When Product Is Added from Cart
139 140
                 $planid = Plan::where('product', $productid)->pluck('id')->first();
140 141
             }
141 142
             $plan = Plan::where('id', $planid)->where('product', $productid)->first();
142
-            if ($plan) { //Get the Total Plan Cost if the Plan Exists For a Product
143
+            if ($plan) {
144
+//Get the Total Plan Cost if the Plan Exists For a Product
143 145
                 $months = 1;
144 146
                 $cont = new CartController();
145 147
                 $currency = $cont->currency($userid);
146 148
                 $product = Product::find($productid);
147 149
                 $days = $plan->periods->pluck('days')->first();
148 150
                 $price = ($product->planRelation->find($planid)->planPrice->where('currency', $currency['currency'])->first()->add_price);
149
-                if ($days) { //If Period Is defined for a Particular Plan ie no. of Days Generated
151
+                if ($days) {
152
+//If Period Is defined for a Particular Plan ie no. of Days Generated
150 153
                     $months = $days >= '365' ? $days / 30 / 12 : $days / 30;
151 154
                 }
152 155
                 $finalPrice = str_replace(',', '', $price);
Please login to merge, or discard this patch.