add: block and it's corresponding metadata entry
This commit is contained in:
parent
c9e9f8b8a6
commit
a7026c6b6c
@ -16,7 +16,9 @@
|
||||
*/
|
||||
|
||||
use D3\ModCfg\Application\Model\d3utils;
|
||||
use D3\PdfDocuments\Modules\Application\controllers\d3_overview_controller_pdfdocuments;
|
||||
use D3\PdfDocuments\Modules\Application\Model\d3_Order_PdfDocuments as d3_pdfdocs_OrderModel;
|
||||
use OxidEsales\Eshop\Application\Controller\Admin\OrderOverview;
|
||||
use OxidEsales\Eshop\Application\Model as OxidModel;
|
||||
|
||||
/**
|
||||
@ -43,13 +45,20 @@ $aModule = [
|
||||
'url' => 'http://www.oxidmodule.com/',
|
||||
'extend' => [
|
||||
OxidModel\Order::class => d3_pdfdocs_OrderModel::class,
|
||||
'oxorder' => d3_pdfdocs_OrderModel::class
|
||||
OrderOverview::class => d3_overview_controller_pdfdocuments::class
|
||||
],
|
||||
'controllers' => [],
|
||||
'templates' => [
|
||||
'd3deliverynote.tpl' => 'd3/pdfdocuments/Application/views/tpl/deliverynote.tpl',
|
||||
'invoice.tpl' => 'd3/pdfdocuments/Application/views/tpl/invoice/invoice.tpl',
|
||||
'd3tplheader.tpl' => 'd3/pdfdocuments/Application/views/tpl/header.tpl'
|
||||
],
|
||||
'events' => [],
|
||||
'blocks' => []
|
||||
'blocks' => [
|
||||
[
|
||||
'template' => 'order_overview.tpl',
|
||||
'block' => 'admin_order_overview_export',
|
||||
'file' => 'views/admin/blocks/order_overview.tpl'
|
||||
],
|
||||
]
|
||||
];
|
||||
|
@ -0,0 +1,49 @@
|
||||
[{$smarty.block.parent}]
|
||||
[{if $edit && $oView->canExport()}]
|
||||
<br>
|
||||
<form name="myedit2" id="myedit2" action="[{$oViewConf->getSelfLink()}]" method="post" target="expPDF">
|
||||
[{$oViewConf->getHiddenSid()}]
|
||||
<input type="hidden" name="cl" value="order_overview">
|
||||
<input type="hidden" name="fnc" value="createPDF">
|
||||
<input type="hidden" name="oxid" value="[{$oxid}]">
|
||||
<table cellspacing="0" cellpadding="0"
|
||||
style="padding-top: 5px; padding-left: 5px; padding-right: 5px; padding-bottom: 5px; border : 1px #A9A9A9; border-style : solid solid solid solid;"
|
||||
width="220">
|
||||
|
||||
<tr>
|
||||
<td rowspan="3">
|
||||
<img src="[{$oViewConf->getImageUrl()}]/pdf_icon.gif" width="41" height="38" alt="" border="0"
|
||||
hspace="0" vspace="0" align="absmiddle">
|
||||
</td>
|
||||
<td valign="top" class="edittext" align="right">
|
||||
[{oxmultilang ident="ORDER_OVERVIEW_PDF_TYPE"}]: <select name="pdftype" class="editinput"
|
||||
style="width:80px;">
|
||||
<option value="standart"
|
||||
SELECTED>[{oxmultilang ident="ORDER_OVERVIEW_PDF_STANDART"}]
|
||||
</option>
|
||||
<option value="dnote">[{oxmultilang ident="ORDER_OVERVIEW_PDF_DNOTE"}]</option>
|
||||
<option value="standart_without_logo">[{oxmultilang ident="ORDER_OVERVIEW_PDF_STANDART_WITHOUT_LOGO" }]</option>
|
||||
<option value="dnote_without_logo">[{oxmultilang ident="ORDER_OVERVIEW_PDF_DNOTE_WITHOUT_LOGO" }]</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="edittext">
|
||||
[{oxmultilang ident="GENERAL_LANGUAGE"}]<select name="pdflanguage" class="saveinnewlanginput"
|
||||
style="width:80px;">
|
||||
[{foreach from=$alangs key=lang item=slang}]
|
||||
<option value="[{$lang}]" [{if $lang == "0"}]SELECTED[{/if}]>[{$slang}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="edittext"><br/>
|
||||
<input type="submit" class="edittext" name="save"
|
||||
value="[{oxmultilang ident="ORDER_OVERVIEW_PDF"}]">
|
||||
<iframe name="expPDF" width="0" height="0" border="0" style="display:none;"></iframe>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
[{/if}]
|
@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This Software is the property of Data Development and is protected
|
||||
* by copyright law - it is NOT Freeware.
|
||||
* Any unauthorized use of this software without a valid license
|
||||
* is a violation of the license agreement and will be prosecuted by
|
||||
* civil and criminal law.
|
||||
* http://www.shopmodule.com
|
||||
*
|
||||
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
||||
* @author D3 Data Development <support@shopmodule.com>
|
||||
* @link http://www.oxidmodule.com
|
||||
*/
|
||||
$sLangName = "Deutsch";
|
||||
$aLang = array(
|
||||
'charset' => 'utf-8',
|
||||
'ORDER_OVERVIEW_PDF_auftragsbestaetigung' => 'Auftragsbestätigung',
|
||||
'ORDER_OVERVIEW_PDF_auftragsbestaetigung_TEXTAREA' => 'Text für Auftragsbestätigung',
|
||||
'ORDER_OVERVIEW_PDF_AUFTRAGSNUMMER' => 'Auftragsbestätigung:',
|
||||
//'ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_1' => 'Herzlichen Dank für Ihre Bestellung! Bitte empfehlen Sie uns weiter.',
|
||||
'ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_1' => 'Vielen Dank für Ihren Einkauf!',
|
||||
'ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_2' => 'Ihr Elektroversand Schmidt',
|
||||
//'ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_2' => '',
|
||||
'ORDER_OVERVIEW_PDF_auftragsbestaetigung_Alternativtext' => 'Alle Artikel sind ab Lager lieferbar und gehen schnellstmöglich in den Versand.',
|
||||
'ORDER_OVERVIEW_PDF_bestellbestaetitung_TEXTAREA' => 'Individueller Zahlungstext',
|
||||
'PAYMENT_MAIN_D3SHORTDESCPDF' => 'Rechnungstext',
|
||||
'D3_OFFERPDF_FINAL_1' => 'Die hier angegebene Materialzusammenstellung dient lediglich der Unterstützung Ihrer Planung. Sie wurde nach bestem Wissen erstellt, erhebt jedoch keinen Anspruch auf Richtigkeit und Vollständigkeit und ersetzt auch nicht Ihre individuelle Planung. Eine Haftung unsererseits für Richtigkeit und Vollständigkeit wird nicht übernommen.',
|
||||
'D3_OFFERPDF_FINAL_2' => 'Alle Preisangaben sind inkl. Kupfer- und Metallzuschlägen.',
|
||||
'D3_OFFERPDF_FINAL_3' => 'Dieses Angebot ist 14 Tage gültig.',
|
||||
'D3_OFFERPDF_FINAL_4' => 'Wir hoffen, dass Ihnen unser Angebot zusagt und würden uns über Ihren Auftrag freuen.',
|
||||
|
||||
'ORDER_OVERVIEW_PDF_d3pdftextkostenstelle_kunden' => 'kundenspezifischer Kostenstellen',
|
||||
'ORDER_OVERVIEW_PDF_d3pdftextkostenstelle_kunden_PDF' => 'Rechnungsvermerk:',
|
||||
'D3_ORDERCONFIRMATION_ACTION_ORDERGENERATEPDFORDERCONFIRMATION' => 'Auftragsbestätigung',
|
||||
//pdf
|
||||
'ORDER_OVERVIEW_PDF_ORDERSAT' => ' beim Elektroversand Schmidt',
|
||||
'ORDER_OVERVIEW_PDF_ORDERSINCERELY' => 'Ihre Bestellung vom ',
|
||||
'D3_ORDER_OVERVIEW_PDF_BANKVERBINDUNG' => 'Bankverbindung:',
|
||||
'ORDER_OVERVIEW_PDF_ACCOUNTNR' => 'IBAN: ',
|
||||
'ORDER_OVERVIEW_PDF_BANKCODE' => 'BIC-/SWIFT-Code: ',
|
||||
'ORDER_OVERVIEW_PDF_BANKCODE_HEADER' => 'BIC: ',
|
||||
'D3_ORDER_OVERVIEW_PDF_GET_IN_CONTACT' => 'So erreichen Sie uns:',
|
||||
'D3_ORDER_OVERVIEW_PDF_GESCHAEFTSFUEHRER' => 'Geschäftsführer: Denis Schmidt',
|
||||
'D3_ORDER_OVERVIEW_PDF_COURT' => 'Amtsgericht ',
|
||||
'D3_ORDER_OVERVIEW_PDF_HRBNR' => 'HRB ',
|
||||
'D3_AUFTRAGSBESTAETIGUNG_PDF_PRETEXT' => 'Auf Grundlage unserer allgemeinen Liefer- und Geschäftsbedingungen bestätigen wir Ihnen folgenden Auftrag:',
|
||||
'D3_ORDER_OVERVIEW_PDF_USTID' => 'Ust.-ID: ',
|
||||
'D3_ORDER_OVERVIEW_PDF_USTIDNR' => 'Ust.-ID-Nr: ',
|
||||
'D3_ORDER_OVERVIEW_PDF_USTPERCENTAGE' => 'Ust. %: ',
|
||||
'D3_ORDER_OVERVIEW_PDF_TELEFON' => 'Telefon: ',
|
||||
'D3_ORDER_OVERVIEW_PDF_FAX' => 'Fax: ',
|
||||
'D3_ORDER_OVERVIEW_PDF_ORDERBILLNR' => 'Rechnungs-Nr.: ',
|
||||
'D3_ORDER_OVERVIEW_PDF_ORDERNR' => 'Bestellnr.: ',
|
||||
'D3_ORDER_OVERVIEW_PDF_DATE' => 'Datum: ',
|
||||
'D3_ORDER_OVERVIEW_PDF_AMOUNT' => 'Menge',
|
||||
'D3_ORDER_OVERVIEW_PDF_ARTNR' => 'Art.-Nr.',
|
||||
'D3_ORDER_OVERVIEW_PDF_DESCRIPTION' => 'Beschreibung',
|
||||
'D3_ORDER_OVERVIEW_PDF_UNITPRICE' => 'Einzelpreise',
|
||||
'D3_ORDER_OVERVIEW_PDF_TOTALPRICE' => 'Gesamtpreis',
|
||||
'D3_ORDER_OVERVIEW_PDF_USED_PAYMENTMETHOD' => 'Ihre gewählte Zahlungsweise: ',
|
||||
'D3_ORDER_OVERVIEW_PDF_USED_GREETINGSORDER' => 'Den Rechnungsbetrag haben wir dankend erhalten.',
|
||||
'D3_ORDER_OVERVIEW_PDF_ORDERBILL_SUMBRUTTO' => 'Summe Artikel (brutto)',
|
||||
'D3_ORDER_OVERVIEW_PDF_ORDERBILL_DISCOUNT' => 'Rabatt',
|
||||
'D3_ORDER_OVERVIEW_PDF_ORDERBILL_SUMNETTO' => 'Summe Artikel (netto)',
|
||||
'D3_ORDER_OVERVIEW_PDF_ORDERBILL_TAX' => 'zzgl. MwSt. ',
|
||||
'D3_ORDER_OVERVIEW_PDF_ORDERBILL_PERCENTAGE' => '%',
|
||||
'D3_ORDER_OVERVIEW_PDF_ORDERBILL_TAXPERCVALUE' => ' Betrag',
|
||||
'D3_ORDER_OVERVIEW_PDF_ORDERBILL_DELIVERY' => 'Versandkosten (netto)',
|
||||
'D3_ORDER_OVERVIEW_PDF_ORDERBILL_TOTALSUMBRUT' => 'Gesamtsumme (brutto)',
|
||||
'D3_ORDER_OVERVIEW_PDF_ORDERBILL_CUSTOMERNR' => 'Kundennummer: ',
|
||||
);
|
Loading…
Reference in New Issue
Block a user