feat: localize landing page content and update icon asset paths
This commit is contained in:
@@ -74,8 +74,8 @@ class ProductController extends Controller
|
||||
return view($product->view_template, compact('product', 'settings', 'renderedHeader', 'renderedFooter', 'meta'));
|
||||
}
|
||||
|
||||
// Use landing page template if landing_page_data exists and product type is 'product'
|
||||
if ($product->type === 'product' && !empty($product->landing_page_data)) {
|
||||
// Use landing page template if landing_page_data exists
|
||||
if (!empty($product->landing_page_data)) {
|
||||
return view('front.products.landing', compact('product', 'settings', 'renderedHeader', 'renderedFooter', 'meta'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user