Skip to content
Code-Schnipsel Gruppen Projekte
Commit 1ed7e199 erstellt von Henning Leutz's avatar Henning Leutz 🥋
Dateien durchsuchen

Merge branch 'dev'

Übergeordnete 87a82b12 3ff9a94f
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
1 Merge Request!25Update 'next-3.x' with latest changes from 'main'
......@@ -4,18 +4,32 @@
background: #ffffff;
border: 1px solid #ddd;
box-shadow: 0 7px 22px -5px rgba(48, 60, 72, 0.2);
display: flex;
flex-direction: column;
left: auto !important;
margin: 0 auto; /* test */
max-height: calc(100vh - 130px); /* header height + top bar height */
overflow-y: auto;
padding: 15px !important;
padding: 0 !important;
width: 350px;
}
.quiqqer-order-basket-small-container > .qui-control {
display: flex;
flex-direction: column;
height: 100%;
}
body.header-fixed .quiqqer-order-basket-small-container {
max-height: calc(100vh - 80px); /* only header height */
}
.quiqqer-order-basket-small-articles {
height: calc(100vh - 400px);
min-height: 0;
overflow-y: auto;
padding: 15px;
}
.quiqqer-order-basket-small-articles-article {
align-items: flex-start;
border-bottom: 1px dashed #ddd;
......@@ -76,8 +90,8 @@ body.header-fixed .quiqqer-order-basket-small-container {
/* basket summary */
.quiqqer-order-basket-small-total {
margin-top: 1em;
width: 100%;
margin: 1em 15px 0 15px;
width: calc(100% - 30px);
}
.quiqqer-order-basket-small-total td {
......@@ -105,8 +119,9 @@ body.header-fixed .quiqqer-order-basket-small-container {
}
.quiqqer-order-basket-small-buttons {
margin-top: 15px;
margin: 15px;
text-align: right;
width: calc(100% - 30px);
}
.quiqqer-order-basket-small-buttons .open-shopping-cart {
......@@ -117,8 +132,8 @@ body.header-fixed .quiqqer-order-basket-small-container {
/* payments - paypal */
/*********************/
.quiqqer-order-basket-small-container .quiqqer-payment-paypal-express {
margin-top: 15px;
margin: 0 15px;
text-align: right;
width: 100%;
width: calc(100% - 30px);
height: auto;
}
\ No newline at end of file
......@@ -55,6 +55,11 @@
{$Field->getValue()}
</div>
{/foreach}
{assign var=ShippingTimeFrontendView value=\QUI\TemplateCologne\Utils::getShippingTimeFrontendView($Product->getId())}
{if $ShippingTimeFrontendView}
{$ShippingTimeFrontendView->create()}
{/if}
</div>
<div class="product-data-actionButtons">
......
......@@ -7,6 +7,7 @@
namespace QUI\TemplateCologne;
use QUI;
use QUI\ERP\Shipping\Shipping;
/**
* Class Utils
......@@ -402,4 +403,29 @@ private static function getPredefinedFooter($Project)
'paymentsData' => $paymentsData
];
}
/**
* Get FrontendView of ShippingTime field
*
* requires quiqqer/shipping to be installed
*
* @param int $productId
* @return false|QUI\ERP\Products\Field\View
*/
public static function getShippingTimeFrontendView(int $productId)
{
if (!QUI::getPackageManager()->isInstalled('quiqqer/shipping')) {
return false;
}
try {
$Product = QUI\ERP\Products\Handler\Products::getProduct($productId);
$ShippingField = $Product->getField(Shipping::PRODUCT_FIELD_SHIPPING_TIME);
} catch (\Exception $Exception) {
QUI\System\Log::writeException($Exception);
return false;
}
return $ShippingField->getFrontendView();
}
}
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren