Language ID rework
This commit is contained in:
@@ -10,7 +10,7 @@ $translate = $record->product_translate->where('product_id','=',$record->id)->an
|
||||
// If there isnt a translated page, show the default language
|
||||
// @todo - default language should come from configuration
|
||||
if (! $translate->loaded())
|
||||
$translate = $record->product_translate->where('product_id','=',$record->id)->and_where('language_id','=','en')->find();
|
||||
$translate = $record->product_translate->where('product_id','=',$record->id)->and_where('language_id','=',1)->find();
|
||||
|
||||
// @todo Need to add in product attributes
|
||||
// @todo Need to add in product plugins
|
||||
|
Reference in New Issue
Block a user