| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 | |||
| 23 | return view('mongicommerce.pages.single-product',compact('product','details_fields')); |
||
| 24 | } |
||
| 26 |