Fix: loading the extrafields of the related product

This commit is contained in:
priojk 2023-03-19 11:03:05 +01:00
parent 83174ee703
commit 72860e3385

View File

@ -156,11 +156,10 @@ class PriceParser
//Retrieve all extrafield for product and add it to values //Retrieve all extrafield for product and add it to values
$extrafields = new ExtraFields($this->db); $extrafields = new ExtraFields($this->db);
$extralabels = $extrafields->fetch_name_optionals_label($product->table_element);
$product->fetch_optionals(); $product->fetch_optionals();
if (is_array($extrafields->attributes[$product->table_element]['label'])) { foreach ($extralabels as $key => $label) {
foreach ($extrafields->attributes[$product->table_element]['label'] as $key => $label) { $values["extrafield_".$key] = $product->array_options['options_'.$key];
$values["extrafield_".$key] = $product->array_options['options_'.$key];
}
} }
//Process any pending updaters //Process any pending updaters