Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 746 | Revision 829 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 746 Revision 817
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
Zeile 3... Zeile 3...
3
    namespace App\Http\Controllers;
3
    namespace App\Http\Controllers;
-
 
4
 
Zeile 4... Zeile 5...
4
 
5
use App\Models\Item as ItemAlias;
5
    use App\Models\Item as ItemAlias;
6
    use App\Http\Controllers\ShippingController;
6
 
7
 
7
    class BasketController extends Controller
8
    class BasketController extends Controller
Zeile 229... Zeile 230...
229
            $this->getPaymentInfo();
230
            $this->getPaymentInfo();
230
            $this->getShipmentCosts();
231
            $this->getShipmentCosts();
231
        }
232
        }
Zeile 232... Zeile 233...
232
 
233
 
233
        private function getShipmentCosts()
234
        private function getShipmentCosts()
234
        {
235
	{
-
 
236
		$sc = new ShippingController();
235
            $buffer = array();
237
		$buffer = $sc->getShippingOptions();
-
 
238
            $this->shipmentCosts = $buffer;
-
 
239
	}
-
 
240
	public function getBasketGewicht()
236
            $this->shipmentCosts = $buffer;
241
	{
-
 
242
		$gewicht = 0;
-
 
243
		foreach($this->items as $item)
-
 
244
		{
-
 
245
			$gewicht+=$item->gewicht;
-
 
246
		}
-
 
247
		return $gewicht;
237
        }
248
	}