@@ -13,13 +13,13 @@ |
||
| 13 | 13 | |
| 14 | 14 | class ShopSingleProductController extends Controller |
| 15 | 15 | { |
| 16 | - public function page($id,$product_item_id = null){ |
|
| 17 | - $product = Product::find($id); |
|
| 18 | - $details_fields = Template::getDetailsFields($product); |
|
| 19 | - if($product_item_id != null){ |
|
| 20 | - $product = ProductItem::find($product_item_id); |
|
| 21 | - } |
|
| 16 | + public function page($id,$product_item_id = null){ |
|
| 17 | + $product = Product::find($id); |
|
| 18 | + $details_fields = Template::getDetailsFields($product); |
|
| 19 | + if($product_item_id != null){ |
|
| 20 | + $product = ProductItem::find($product_item_id); |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | - return view('mongicommerce.pages.single-product',compact('product','details_fields')); |
|
| 24 | - } |
|
| 23 | + return view('mongicommerce.pages.single-product',compact('product','details_fields')); |
|
| 24 | + } |
|
| 25 | 25 | } |