Fix: loading the extrafields of the related product
This commit is contained in:
parent
83174ee703
commit
72860e3385
@ -156,11 +156,10 @@ class PriceParser
|
||||
|
||||
//Retrieve all extrafield for product and add it to values
|
||||
$extrafields = new ExtraFields($this->db);
|
||||
$extralabels = $extrafields->fetch_name_optionals_label($product->table_element);
|
||||
$product->fetch_optionals();
|
||||
if (is_array($extrafields->attributes[$product->table_element]['label'])) {
|
||||
foreach ($extrafields->attributes[$product->table_element]['label'] as $key => $label) {
|
||||
$values["extrafield_".$key] = $product->array_options['options_'.$key];
|
||||
}
|
||||
foreach ($extralabels as $key => $label) {
|
||||
$values["extrafield_".$key] = $product->array_options['options_'.$key];
|
||||
}
|
||||
|
||||
//Process any pending updaters
|
||||
|
||||
Loading…
Reference in New Issue
Block a user