Quantcast
Channel: OXID Community Forum
Viewing all articles
Browse latest Browse all 6951

Protected Function erweitern - oxaddress.php _getMergedAddressFields()

$
0
0
Hi,

wie kann ich die protected function _getMergedAddressFields() in der /application/models/oxaddress.php erweitern?

Muss solch eine Änderung in ein Modul, oder kann ich es in einer TPL Datei, in meinem Fall in die /application/views/MeinTheme/tpl/form/fieldset/user_shipping.tpl schreiben?

Die Function lautet derzeit wie folgt und der Fett-gedruckte Teil soll hinzugefügt werden:
Code:

    protected function _getMergedAddressFields()
    {
        $sDelAddress = '';
        $sDelAddress .= $this->oxaddress__oxcompany;
        $sDelAddress .= $this->oxaddress__oxfname;
        $sDelAddress .= $this->oxaddress__oxlname;
        $sDelAddress .= $this->oxaddress__oxstreet;
        $sDelAddress .= $this->oxaddress__oxstreetnr;
        $sDelAddress .= $this->oxaddress__oxaddinfo;
        $sDelAddress .= $this->oxaddress__oxcity;
        $sDelAddress .= $this->oxaddress__oxcountryid;
        $sDelAddress .= $this->oxaddress__oxstateid;
        $sDelAddress .= $this->oxaddress__oxzip;
        $sDelAddress .= $this->oxaddress__oxfon;
        $sDelAddress .= $this->oxaddress__oxfax;
        $sDelAddress .= $this->oxaddress__oxsal;
        $sDelAddress .= $this->oxaddress__oxchange;

        return $sDelAddress;
    }


Viewing all articles
Browse latest Browse all 6951

Trending Articles