I am trying to display attributes of simple products on a grouped product page. I have everything setup to pull the info. My issue is how to display it correctly. I have two foreach loops that display the data but I get:
Manufacturer: UPC: Manufacturer Part Number: X-Stream0100055PLV-A-B
When I want it to be
Manufacturer: X-Stream
UPC: 0100055
Manufacturer Part Number: PLV-A-B
The code used is
<?php foreach($gridattributes as $attrib){
echo '<b>'.$this->htmlEscape($attrib[label]).': </b>';} ?>
<?php foreach($gridattributes as $attribname=>$attribval){
echo ''.$this->htmlEscape($_item->getData($attribname)).'';} ?>
How can I merge these to display as my second example?
Thank you for any help.