Jump to content
xt:Commerce Community Forum

Artikelkurzbeschreibung auf Rechnung


frankcom

Recommended Posts

Hallo,

ich möchte wie im Warenkorb in anderen Bereichen wie in der Rechnung die Kurzbeschreibung des Artikels erscheinen lassen, da die Artikelnamen nicht genügend aussagekräftig sind.

In der Rechnung müsste demnach diese Variable stehen:

{$order_values.PRODUCTS_SHORT_DESCRIPTION}

Wo muss ich denn die Information noch importieren?

Hoffe mir kann jemand helfen.

Gruß

Marco

Link to comment
Share on other sites

  • 5 months later...
Guest tuvalu

Kurzbeschreibung in Bestellungen eingefügt, auch für Email und Ausdruck

In:

adim/print_order.php

root/print_order.php

root/send_order.php

suche:

        while ($order_data_values = xtc_db_fetch_array($order_query)) {

            $attributes_query=xtc_db_query("SELECT

                        products_options,

                        products_options_values,

                        price_prefix,

                        options_values_price

                        FROM ".TABLE_ORDERS_PRODUCTS_ATTRIBUTES."

                        WHERE orders_products_id='".$order_data_values['orders_products_id']."'");

            $attributes_data='';

            $attributes_model='';

            while ($attributes_data_values = xtc_db_fetch_array($attributes_query)) {

            $attributes_data .='<br />'.$attributes_data_values['products_options'].':'.$attributes_data_values['products_options_values'];    

            $attributes_model .='<br />'.xtc_get_attributes_model($order_data_values['products_id'],$attributes_data_values['products_options_values'],$attributes_data_values['products_options']);

            }

        $order_data[]=array(

                'PRODUCTS_MODEL' => $order_data_values['products_model'],

                'PRODUCTS_NAME' => $order_data_values['products_name'],

                'PRODUCTS_ATTRIBUTES' => $attributes_data,

                'PRODUCTS_ATTRIBUTES_MODEL' => $attributes_model,

                'PRODUCTS_PRICE' => xtc_format_price_order($order_data_values['final_price'],1,$order->info['currency']),

                'PRODUCTS_QTY' => $order_data_values['products_quantity']);

        }
ersetze mit:
        while ($order_data_values = xtc_db_fetch_array($order_query)) {

        $short_query = xtc_db_query("SELECT products_short_description FROM " . TABLE_PRODUCTS_DESCRIPTION . " WHERE products_id=" . $order_data_values['products_id'] . " AND language_id=" . $_SESSION['languages_id']);

        $short_result = xtc_db_fetch_array($short_query);

        $attributes_query = xtc_db_query("SELECT

                                products_options,

                                products_options_values,

                                price_prefix,

                                options_values_price

                                FROM ".TABLE_ORDERS_PRODUCTS_ATTRIBUTES."

                                WHERE orders_products_id='".$order_data_values['orders_products_id']."'");

        $attributes_data = '';

        $attributes_model = '';

        while ($attributes_data_values = xtc_db_fetch_array($attributes_query)) {

            $attributes_data .= '<br />'.$attributes_data_values['products_options'].':'.$attributes_data_values['products_options_values'];

            $attributes_model .= '<br />'.xtc_get_attributes_model($order_data_values['products_id'], $attributes_data_values['products_options_values'],$attributes_data_values['products_options']);

        }

        $order_data[]=array(

                'PRODUCTS_MODEL' => $order_data_values['products_model'],

                'PRODUCTS_NAME' => $order_data_values['products_name'],

                'PRODUCTS_ATTRIBUTES' => $attributes_data,

                'PRODUCTS_ATTRIBUTES_MODEL' => $attributes_model,

                'PRODUCTS_PRICE' => xtc_format_price_order($order_data_values['final_price'],1,$order->info['currency']),

                'PRODUCTS_QTY' => $order_data_values['products_quantity'],

                'PRODUCTS_SHORT_DESCRIPTION' => $short_result['products_short_description']);

    }

In

templates/deineTemplates/admin/print_order.html

{$order_values.PRODUCTS_SHORT_DESCIPTION} eingefügt

templates/deineTemplates/module/print_order.html

{$order_values.PRODUCTS_SHORT_DESCIPTION} eingefügt

tuvalu

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...