Merge pull request #24268 from bloxera/fix_for_extrafields_parseexpression
Fix #24267: loading the extrafields of the related product in dynamic price expression
This commit is contained in:
commit
df6dfc34e9
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user