I did it this way:
$data['product_info'] = $product_info;
var_dump($product_info);
$data['weight'] = $this->weight->format($product_info['weight'], (int)$product_info['weight_class_id']);
$data['dimensions'] = $this->length->format($product_info['height'], (int)$product_info['length_class_id']);
and got this on top of the webpage:
array(45) { ["product_id"]=> string(4) "1114" ["name"]=> string(70) "12inch Universal Oil Filter Pliers Wrench 2-1/2 to 4-1/2 or 63.5-115mm" ["description"]=> string(1705) "<p>These oil filter pliers will remove 99% of all filters on motorbikes, cars, and light trucks. The pliers have a three gears position handle which provides extra grip around filter body adjustment. The shape of the pliers has a slight bend that helps to keep the handles out of the way from other parts of the engine. Double foam dip handles provide excellent leverage and secure grip that helps to remove any stubborn filters from your vehicle and make your oil change a simple task.</p><p><b>Features:</b></p><ul><li>Compatible with most car and light truck filters</li><li>Three positions for grip diameter adjustment</li><li>Black surface treatment for rust or corrosion protection</li><li>Undercut tongue and groove won't slip</li><li>Black comfort foam grips for ultimate hand comfort</li><li>Dipped cushioned handles</li></ul><p><b>Specifications:</b></p><ul><li>Brand: Harden</li><li>Model: 670312</li><li>Three gear positions</li><li>Material: carbon steel, foam dipped handles</li><li>Specifically bent design for more leverage and difficult to reach areas</li><li>Tool length: 12 inches or 300mm</li><li>Fits filter in diameter between: 2.5-4.5inch or 63.5-115mm</li><li>Black surface treatment</li><li>Foam dip handles</li><li>Weight: 17oz or 480g</li></ul><p><b>Package Includes:</b></p><ul><li>Oil filter wrench pliers</li><li>Retail packaging</li></ul>" ["meta_title"]=> string(70) "12inch Universal Oil Filter Pliers Wrench 2-1/2 to 4-1/2 or 63.5-115mm" ["meta_description"]=> string(165) "12inch Universal Oil Filter Pliers Wrench 2-1/2 to 4-1/2 or 63.5-115mm - These oil filter pliers will remove 99 of all filters on motorbikes, cars, and light trucks." ["meta_keyword"]=> string(79) " 12inch universal oil filter pliers wrench 2-1/2 4-1/2 63.5-115mm pliers 670312" ["custom_imgtitle"]=> string(70) "12inch Universal Oil Filter Pliers Wrench 2-1/2 to 4-1/2 or 63.5-115mm" ["custom_h2"]=> string(0) "" ["custom_h1"]=> string(79) "12inch Universal Oil Filter Pliers Wrench 2-1/2 to 4-1/2 or 63.5-115mm - Pliers" ["custom_alt"]=> string(70) "12inch Universal Oil Filter Pliers Wrench 2-1/2 to 4-1/2 or 63.5-115mm" ["tag"]=> string(72) "12inch, universal, oil, filter, pliers, wrench, 2-1/2, 4-1/2, 63.5-115mm" ["model"]=> string(6) "670312" ["sku"]=> string(0) "" ["upc"]=> string(0) "" ["ean"]=> string(0) "" ["jan"]=> string(0) "" ["isbn"]=> string(0) "" ["mpn"]=> string(0) "" ["location"]=> string(0) "" ["quantity"]=> string(3) "300" ["stock_status"]=> string(12) "Out Of Stock" ["image"]=> string(97) "catalog/Tools/Pliers/12inch Universal Oil Filter Pliers Wrench 2-12 to 4-12 or 63.5-115mm (1).jpg" ["manufacturer_id"]=> string(2) "23" ["manufacturer"]=> string(6) "Harden" ["price"]=> string(6) "4.9900" ["special"]=> NULL ["reward"]=> NULL ["points"]=> string(1) "0" ["tax_class_id"]=> string(1) "9" ["date_available"]=> string(10) "2021-09-18" ["weight"]=> string(10) "0.55000000" ["weight_class_id"]=> string(1) "1" ["length"]=> string(11) "36.00000000" ["width"]=> string(11) "11.00000000" ["height"]=> string(10) "5.00000000" ["length_class_id"]=> string(1) "1" ["subtract"]=> string(1) "1" ["rating"]=> float(0) ["reviews"]=> int(0) ["minimum"]=> string(1) "1" ["sort_order"]=> string(1) "1" ["status"]=> string(1) "1" ["date_added"]=> string(19) "2021-09-18 15:27:51" ["date_modified"]=> string(19) "2021-09-19 11:00:29" ["viewed"]=> string(5) "11881" }