foreach ($products as $product) {
echo "SIZE (X х Y х Z),mm: ";
$myf = [8,4,5]; // my custom fields is X,Y,Z and print it
foreach($product->customfields as $field){ // get fields
if (in_array($field->virtuemart_custom_id, $myf)) {
$output[] = $field->customfield_value;
}
}
echo implode('x', $output); // is getting re-assigned each time. So whatever the problem is, it is a result of whatever $output is getting assigned with.
}
in second product I have this data from first product
SIZE (X х Y х Z),mm: 280x260x350x290x325x435 (need 290x325x435 only!). on each products I have all previous XYZ data from all previous products.
Very mistiq. pls help print data 1 XYZ to 1 product only :)
I thinks implode not correct method