Array ( [name] => expressDelivery [title] => Express Delivery [content] => 'mainland', 2 => 'island']; $currencyPrefix = $currArray[0]['pretext']; $sql = "SELECT * FROM jss_shipping_rates WHERE shippingID = {$nextDayShippingId} AND sfrom > -1 ORDER BY price1 ASC"; $res = $dbA->query($sql); $shipping = []; while ($row = $dbA->fetch($res)) { if (! array_key_exists($row['zoneID'], $zoneIds)) { continue; } if ($row['sto'] == 99999) { $label = round($row['sfrom']) . 'kg +'; } else { $label = round($row['sfrom']) . ' - ' . round($row['sto']) . 'kg'; } $exVat = $row['price1']; $incVat = $exVat * retrieveOption($isoCode . '_taxProportion'); if (! array_key_exists($label, $shipping)) { $shipping[$label] = [ 'label' => $label ]; } $shipping[$label][$zoneIds[$row['zoneID']]]['pricing'] = [ 'primary' => $currencyPrefix . number_format(($allow['showPricesIncVat']) ? $incVat : $exVat, 2), 'secondary' => $currencyPrefix . number_format(($allow['showPricesIncVat']) ? $exVat : $incVat, 2) ]; } $shipping = array_values($shipping); ?> [showInJargonBuster] => N [jargonBuster] => [metaDescription] => [metaKeywords] => [CSS] => .popup-icon { border-bottom: 1px dashed #E8E8E8; line-height: 1.3em; margin: 0 0 20px 0; padding: 0 0 6px 0; } .popup-icon span { float: left; margin: 0 16px 0 0; height: 70px; width: 100px; } .popup-content h3 { margin: 0 0 10px 0; } [TopBar] => [snippetType] => 2 )