Merge branch 'fronkdev' into 'master'

Added addon products to shopping cart icon in CpeProvisioning

See merge request fronk/thetool!589
This commit is contained in:
Frank Schubert
2024-08-20 11:58:07 +00:00

View File

@@ -195,6 +195,11 @@ $pagination_entity_name = "Zu provisionierende CPEs";
$hw[] = (int)$prod->amount . "x " . $prod->product->name;
}
}
if (array_key_exists("addon", $prod->product->attributes)) {
if ($prod->product->attributes["addon"]->value) {
$hw[] = $prod->product->name;
}
}
if (array_key_exists("voip_chan", $prod->product->attributes)) {
if ($prod->product->attributes["voip_chan"]->value) {
$voip = true;
@@ -215,7 +220,7 @@ $pagination_entity_name = "Zu provisionierende CPEs";
}
?>
<?= ($vot || $vo_termin) ? "<i class='fas fa-tools text-purple mr-2' data-toggletooltip='tooltip' title='Vorortinstallation'></i>" : "" ?>
<?= ($hw) ? "<a href='#' class='fas fa-shopping-bag text-purple mr-2' onclick='return false;' title='Hardware' data-toggle='popover' data-placement='top' data-content='" . implode("<br />", $hw) . "' ></a>" : "" ?>
<?= ($hw) ? "<a href='#' class='fas fa-shopping-bag text-purple mr-2' onclick='return false;' title='Zusatzprodukte' data-toggle='popover' data-placement='top' data-content='" . implode("<br />", $hw) . "' ></a>" : "" ?>
<?= ($voip) ? "<i class='fas fa-phone text-purple mr-2' data-toggletooltip='tooltip' title='Voice Produkt vorhanden'></i>" : "" ?>
<?= ($product->order->note) ? "<a href='#' class='fas fa-clipboard-list text-purple' onclick='return false;' data-toggle='popover' data-placement='top' data-content='" . str_replace('"', '&#34;', str_replace("\n", '<br />', $product->order->note)) . "'></a>" : "" ?>
</td>