Fehlermeldung checkout.php

  • Fehlermeldung: Fatal error: Call to undefined function xtc_display_tax_value() in /home/www/includes/classes/checkout.php on line 260

    Hallo,

    wir haben commerce:seo V2 auf Netto-Preise eingestellt. Ist ein B2B-Shop und es sollen im Frontend nur Netto-Preise angezeigt werden. Jetzt funktioniert jedoch die checkout.php beim Warenkorb nicht fehlerfrei. Das Problem tritt auf sobald ich vom Warenkorb (shopping_cart.php) zur Kasse (checkout.php) klicke. Hat wohl mit der Steuer (Tax) zu tun. Anbei die Zeilen aus der checkout.php

    Zeile 258 - 265

    PHP
    if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) {
                    if (sizeof($order->info['tax_groups']) > 1)
                        $data_products .= '            <td class="main" valign="top" align="right"><span id="tax_'.$order->products[$i]['id'].'">' . xtc_display_tax_value($order->products[$i]['tax']) . '</span>%</td>' . "\n";
                }
                $data_products .= '</tr></table></div>' . "\n";
                $data_products .= '</div>';
            }
            $data_products .= '</div>';

    Wie kann man das Problem am besten lösen? Einfach auskommentieren? Danke ...

    • Offizieller Beitrag

    Schitt 1:
    DB Update:

    SQL
    INSERT INTO `configuration` (`configuration_id`, `configuration_key`,  `configuration_value`, `configuration_group_id`, `sort_order`,  `last_modified`, `date_added`, `use_function`, `set_function`) VALUES  (NULL, 'TAX_DECIMAL_PLACES', '2', '1', '30', '', '', '', '');

    Schritt 2:

    Suche:

    PHP
    if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) {                if (sizeof($order->info['tax_groups']) > 1)                    $data_products .= '            <td class="main" valign="top" align="right"><span id="tax_'.$order->products[$i]['id'].'">' . xtc_display_tax_value($order->products[$i]['tax']) . '</span>%</td>' . "\n";            }

    Ändere in:

    PHP
    if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) {
                    if (sizeof($order->info['tax_groups']) > 1){
                        require_once (DIR_FS_INC.'xtc_display_tax_value.inc.php'); 
                        $data_products .= '            <td class="main" valign="top" align="right"><span id="tax_'.$order->products[$i]['id'].'">' . xtc_display_tax_value($order->products[$i]['tax']) . '</span>%</td>' . "\n";
                    }
                }

    <p>Wir geben nur Anregungen und Hilfestellung auf Basis unserer Erfahrung, keine Rechtshilfe!<br>\m/('_')\m/</p>