Automatische Rechnung -> kein Logo in der E-Mail

  • pdf_invoice.php, line 235

    Code
    require_once(DIR_FS_INC . 'cseo_get_mail_body.inc.php');


    cseo_get_mail_body.inc.php, line 91

    Code
    $smarty->assign('logo_path', HTTP_SERVER . DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/img/');


    CURRENT_TEMPLATE ist zu diesem Zeitpunkt noch nicht bekannt und wird später in application_top.php, line 681 initialisiert. PHP nimmt als Wert den Konstantenname und erzeugt ein Notice. Dank Shop-Entwickler werden jedoch sämtliche notices schweigend verschluckt.

  • Also das steht auch bei mir so in den Dateien. Heißt das nun, das es nicht geht? Es sieht halt nicht gerade sehr toll wenn die Bestellbestätigung mit Logo kommt und das PDF ohne.

    Commerce:SEO v2.5.03

  • Als temporäre Abhilfe kannst du die zwei Zeilen in pdf_invoice.php

    Code
    $smarty->assign('tpl_path', 'templates/' . $logo_query['configuration_value'] . '/');
    $smarty->assign('logo_path', HTTP_SERVER . DIR_WS_CATALOG . 'templates/' . $logo_query['configuration_value'] . '/img/');


    nach der

    Code
    require_once(DIR_FS_INC . 'cseo_get_mail_body.inc.php');


    verschieben.