Hello,
I built a module to display extra fields on product page which is working quite fine. But my issue is that I can not display multiple extra fields in one position.
In public function hookDisplayProductAdditionalInfo($params) I have a foreach loop returning content.
public function hookDisplayProductAdditionalInfo($params) { ... foreach($available_extra_fields as $available_extra_field) { if($available_extra_field['location'] == 'additional_info') { return $this->displayProductExtraFieldContent($id_lang, $available_extra_field, $product_extra_fields); } } }
Only one extra field shows up. Surely because of the "return" statement..?
I tried to return an array, but can't get this right.
Any idea on how I could get this solved please?