Opened 5 weeks ago

Closed 6 days 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-2.0.6.1
Component: Module Version: 2.0.5.1

Description

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));
      }

Gruß,
noRiddle

Attachments (0)

Change History (2)

comment:1 Changed 3 weeks ago by GTB

  • Milestone set to modified-shop-2.0.6.1

comment:2 Changed 6 days 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

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


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

 
Note: See TracTickets for help on using tickets.