Opened 7 months ago

Closed 6 months ago

#2003 closed Bug/Fehler (fixed)

Undefined index notice in account_checkout_express.php

Reported by: anonymous Owned by: GTB
Priority: normal Milestone: modified-shop-
Component: Module Version:


In der im Betreff genannten Datei account_checkout_express.php kommt es bei manchen Versandmodulen zu einer Notice:
Undefined index: methods in File: PATH_TO_FILE/account_checkout_express.php on Line: 125

Beispiel: /includes/modules/shipping/freeamount.php
Dort ist $this->quotes['methods'] unter bestimmten Bedingungen definiert, die, wenn sie nicht zutreffen zu der Notice führen wenn MODULE_SHIPPING_FREEAMOUNT_DISPLAY auf 'true' steht.

Möglicher Fix:
Zumindest im Modul freeamount müsste man also die method mitdefinieren in

      $this->quotes = array('id' => $this->code,
                            'module' => $this->title);

also z.B. so:

      $this->quotes = array('id' => $this->code,
                            'module' => $this->title);
      if(strtolower(MODULE_SHIPPING_FREEAMOUNT_DISPLAY) == 'true') {
        $this->quotes['methods'] = array(array('id' => $this->code));


Attachments (0)

Change History (2)

comment:1 Changed 7 months ago by GTB

  • Milestone set to modified-shop-

comment:2 Changed 6 months ago by GTB

  • Owner set to GTB
  • Resolution set to fixed
  • Status changed from new to closed

In 13515:

fix #2003 - fix notice

Add Comment

Modify Ticket

as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.