Skip to content
Snippets Groups Projects

A first approach to handle D7 Commerce 1 products translated using i18n

1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
@@ -65,6 +65,8 @@ class ProductDisplay extends FieldableEntity {
'changed' => t('Changes'),
'field_name' => t('Field name for variations'),
'variations_field' => t('Value of the product reference field'),
'language' => $this->t('Language (fr, en, ...)'),
'tnid' => $this->t('The translation set id for this product'),
];
}
@@ -94,6 +96,8 @@ class ProductDisplay extends FieldableEntity {
'status',
'created',
'changed',
'language',
'tnid',
]);
$query->fields('fc', ['field_name']);
Loading