Modify

Opened 6 years ago

Closed 6 years ago

#1716 closed Bug/Fehler (fixed)

Zahlungsart erforderlich bei Null-Euro-Bestellung

Reported by: Andreas Guder Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.5.0
Component: Shop Version: trunk
Keywords: Cc:
Blocked By: Blocking:

Description

Hi,

folgendes Szenario:
mein Kunde bietet unter-anderem kostenlose Kataloge mit Gratis-Versand an. Die Bestellung mit nur dem Katalog kostet demnach nichts.

Auf der checkout_payment.php wird dennoch die Auswahl einer Zahlungsart gefordert.
Ursache ist das nicht installierte/nicht aktivierte ot_gv-Modul

genauer dieser Code in der checkout_payment.php

} 
//Guthaben
elseif (!isset($_SESSION['cot_gv'])) {
  $order_total_modules->pre_confirmation_check();
  //$smarty->assign('GV_COVER', 'true');
} elseif ($total <= 0) {
  unset($_SESSION['payment']);
  $smarty->assign('NO_PAYMENT', 'true');
}

Das Script läuft in diesen if-else-Zweig:
elseif (!isset($_SESSIONcot_gv)) {

Die Gründe für den Code muss ich noch klären.

Quick&Dirty habe ich es nun so gelöst:

}
//Guthaben
elseif (!isset($_SESSION['cot_gv']) && defined('MODULE_ORDER_TOTAL_GV_STATUS') && MODULE_ORDER_TOTAL_GV_STATUS == 'True') {
  $order_total_modules->pre_confirmation_check();
  //$smarty->assign('GV_COVER', 'true');
} elseif ($total <= 0) {
  unset($_SESSION['payment']);
  $smarty->assign('NO_PAYMENT', 'true');
}

Attachments (0)

Change History (1)

comment:1 by Gerhard Waldemair, 6 years ago

Resolution: fixed
Status: newclosed

In 12467:

fix #1716 - fix checkout for free of charge products

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.