Skip to content
Code-Schnipsel Gruppen Projekte
Commit c0188f3c erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: shipping dissabled considered

Übergeordneter b6c68040
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -80,6 +80,10 @@ public static function onQuiqqerOrderBasketToOrderEnd(
QUI\ERP\Order\AbstractOrder $Order,
QUI\ERP\Products\Product\ProductList $Products
) {
if (Shipping::getInstance()->shippingDisabled()) {
return;
}
$Shipping = $Order->getShipping();
if (!$Shipping) {
......@@ -161,6 +165,10 @@ public static function onOrderProcessCustomerDataEnd(
$Address,
$Order
) {
if (Shipping::getInstance()->shippingDisabled()) {
return;
}
$Control = new QUI\ERP\Shipping\Order\ShippingAddress([
'User' => $User,
'Order' => $Order
......@@ -178,6 +186,10 @@ public static function onOrderProcessCustomerDataEnd(
public static function onQuiqqerOrderCustomerDataSave(
QUI\ERP\Order\Controls\OrderProcess\CustomerData $CustomerData
) {
if (Shipping::getInstance()->shippingDisabled()) {
return;
}
if (!isset($_REQUEST['shipping-address'])) {
return;
}
......@@ -211,6 +223,10 @@ public static function onFrontendUsersAddressTop(
Collector $Collector,
QUI\Users\User $User
) {
if (Shipping::getInstance()->shippingDisabled()) {
return;
}
$ShippingAddress = new QUI\ERP\Shipping\FrontendUsers\ShippingAddressSelect([
'User' => $User
]);
......@@ -223,6 +239,10 @@ public static function onFrontendUsersAddressTop(
*/
public static function onUserSaveBegin(QUI\Users\User $User)
{
if (Shipping::getInstance()->shippingDisabled()) {
return;
}
$Request = QUI::getRequest()->request;
$submit = $Request->get('submit-shipping');
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren