kweb Posted November 11, 2012 Report Share Posted November 11, 2012 Hallo, habe mir XT-Rechnung gekauft und suche verzweifelt nach einer Möglichkeit das Logo auf dem Rechnungsformular zu ändern. Ich sehe im Rechnungstemplate nur CSS-Definitionen, siehe: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>{txt key=TEXT_XT_ORDERS_INVOICES}</title> <style type="text/css"> {literal} body { font-family: Helvetica; font-size: 10px; color: #434343; } #wrapper{ width: 100%; /* height: 500px; */ margin: 1em; padding: 2em 0; /*border: 1px solid #000;*/ } #logo { border-bottom: 0.5em solid #434343; } #logo img {height: 15em;} .heading, .dates, .bankdetails .total_table{ clear: both; display: block; height: auto; min-height: 100px; padding: 2em 0.5em 0.5em 0.5em; width: auto; } .table-item { clear: both; display: block; height: auto; width: auto; } .total{width:70px;text-align:right;} div.data { display: block; margin: 0.5em; } ul { list-style: none inside none; margin: 0; padding: 0;} li { margin: 0; padding: 0; line-height: 1.4em; font-size: 1.1em; } li .name{width:100px;text-align: left;} li .value{width:70px;text-align: right;} li strong{ font-size: 1.3em; line-height: 2em; color: #000000; } .left { float: left; } .right { float: right;} .alignr {text-align: right;} table{ width: 100%; padding: 0.5em; margin-top: 2em; border-collapse: collapse; margin-bottom: 2em;} thead, tfoot { font-weight: bold; font-size: 1.3em; line-height: 1.5em; background: #F9F9F9; border-bottom: 2px solid #000000; color: #000000; } tr td { border-bottom: 1px solid #434343; line-height: 2em; padding-bottom: 0.5em} tr.item td { line-height: 2em; color: #9b9b9b; padding: 0.5em; border: none; } tr.item td.name { padding-left: 1em;font-family: times; } tr.last td { border-bottom: 1px solid #434343; } #footer { position: fixed; bottom: 0; width: 100%; height: 5em; } #footer tr td { padding: 0; line-height: 1.5em;} #footer tr.last td { border-bottom: none; } .clear{clear:both;} {/literal} </style> </head> <body> <!------------------------------------------------- START FOOTER -------------------------------------------------> <div id="footer"> <table> <tbody> <tr> <td>{$data.shopUrl}</td> <td class="alignr">Issued using <a href="http://www.xt-commerce.com">xt:Commerce</a></td> </tr> <tr class="last"> <td>{$data.config._STORE_ORDERS_INVOICES_MERCHANT_ADDRESS}</td> <td></td> </tr> </tbody> </table> </div> <!------------------------------------------------- END FOOTER -------------------------------------------------> <div id="wrapper"> <!------------------------------------------------- START HEAD -------------------------------------------------> <div id="logo"> <img src="../media/logo/{$data.config._STORE_LOGO}" /> </div> <!------------------------------------------------- END HEAD -------------------------------------------------> <!------------------------------------------------- START HEADING -------------------------------------------------> <div class="heading"> <div class="data right alignr"> <ul> <li><strong>{txt key=TEXT_XT_ORDERS_INVOICES_FROM}:</strong></li> <li>{$data.config._STORE_NAME}</li> <li>{txt key=TEXT_XT_ORDERS_INVOICES_VAT_ID}: {$data.config._STORE_ORDERS_INVOICES_MERCHANT_VAT}</li> </ul> </div> <div class="data left"> <ul> <li><strong>{txt key=TEXT_XT_ORDERS_INVOICES_TO}:</strong></li> {if !empty($data.order.order_data.billing_company)} <li>{$data.order.order_data.billing_company}</li> {/if} <li>{$data.invoice.invoice_firstname} {$data.invoice.invoice_lastname}</li> <li>{$data.order.order_data.billing_street_address}</li> <li>{$data.order.order_data.billing_postcode} - {$data.order.order_data.billing_city}</li> <li>{$data.order.order_data.billing_country}</li> {if !empty($data.order.order_data.customers_vat_id)} <li>{txt key=TEXT_XT_ORDERS_INVOICES_VAT_ID}: {$data.order.order_data.customers_vat_id}</li> {/if} <li>{txt key=TEXT_XT_ORDERS_INVOICES_CUSTOMERS_ID}: {$data.invoice.customers_id}</li> <li>{txt key=TEXT_XT_ORDERS_INVOICES_ID}: {$data.invoice.invoice_id}</li> </ul> </div> </div> <!------------------------------------------------- END HEADING -------------------------------------------------> <!------------------------------------------------- START DATES -------------------------------------------------> <div class="dates"> <div class="data right alignr"> <ul> <li>{txt key=TEXT_XT_ORDERS_INVOICES_DATE}: {$data.invoice.invoice_issued_date|date_format:"%d/%m/%Y"}</li> <li>{txt key=TEXT_XT_ORDERS_INVOICES_DUE_DATE}: {$data.invoice.invoice_due_date|date_format:"%d/%m/%Y"}</li> <li>{txt key=TEXT_XT_ORDERS_INVOICES_ORDERED_DATE}: {$data.invoice.invoice_ordered_date|date_format:"%d/%m/%Y"}</li> <li><strong>{txt key=TEXT_XT_ORDERS_INVOICES_ORDER_ID}: {$data.invoice.orders_id}</strong></li> </ul> </div> </div> <!------------------------------------------------ END HEADING -------------------------------------------------> <!------------------------------------------------- START ITEM LIST -------------------------------------------------> {if $data.invoice.invoice_subtotal_discount>0} {assign var="showDiscount" value=true} {else} {assign var="showDiscount" value=false} {/if} {if count($data.taxes)} {assign var="showVat" value=true} {else} {assign var="showVat" value=false} {/if} <div class="table-item"> <table> <thead> <tr> <td>{txt key=TEXT_XT_ORDERS_INVOICES_PRODUCTS_MODEL}</td> <td>{txt key=TEXT_XT_ORDERS_INVOICES_PRODUCTS_NAME}</td> <td>{txt key=TEXT_XT_ORDERS_INVOICES_PRODUCTS_QUANTITY}</td> <td>{txt key=TEXT_XT_ORDERS_INVOICES_PRODUCTS_PRICE}</td> {if $showDiscount} <td>{txt key=TEXT_XT_ORDERS_INVOICES_PRODUCTS_DISCOUNT}</td> {/if} {if $showVat} <td>{txt key=TEXT_XT_ORDERS_INVOICES_VAT}</td> {/if} <td class="total">{txt key=TEXT_XT_ORDERS_INVOICES_PRODUCTS_TOTAL_PRICE}</td> </tr> </thead> <tbody> {foreach from=$data.products item=product name=products} <tr class="{if $smarty.foreach.products.last}last {/if} item"> <td>{$product.products_model}</td> <td class="name">{$product.products_name}</td> <td>{$product.products_quantity}</td> <td>{$product.products_price_formatted} {$product.products_currency}</td> {if $showDiscount} <td>{$product.products_total_discount_formatted} {$product.products_currency}</td> {/if} {if $showVat} <td>{$product.products_tax_rate_formatted}%</td> {/if} <td class="total">{$product.products_final_total_price_formatted} {$product.products_currency}</td> </tr> {/foreach} </table> </div> <div class="clear"></div> <div class="total_table"> <div class="data right alignr"> <ul> <li>{txt key=TEXT_XT_ORDERS_INVOICES_SUBTOTAL}: {$data.invoice.invoice_subtotal_price_formatted} {$data.invoice.invoice_currency}</li> <li>{txt key=TEXT_XT_ORDERS_INVOICES_SHIPPING_COST}: {$data.invoice.invoice_shipping_total_formatted} {$data.invoice.invoice_currency}</li> {if count($data.taxes)} {foreach from=$data.taxes item="tax" name="taxes"} <li>{txt key=TEXT_XT_ORDERS_INVOICES_VAT} {$tax.rate_formatted}% : {$tax.amount_formatted} {$data.invoice.invoice_currency}</li> {/foreach} {/if} {if $data.invoice.invoice_coupon_redeem}<li>{txt key=TEXT_XT_ORDERS_INVOICES_COUPON}: {$data.invoice.invoice_coupon_price_formatted} {$data.invoice.invoice_currency}</li> {/if} <li><strong>{txt key=TEXT_XT_ORDERS_INVOICES_TOTAL}: {$data.invoice.invoice_total_formatted} {$data.invoice.invoice_currency}</strong></li> </ul> </div> </div> <div class="clear"></div> <!------------------------------------------------- END ITEM LIST -------------------------------------------------> <!------------------------------------------------- START BANK DETAILS -------------------------------------------------> <div class="bankdetails"> <div class="data right alignr"> <ul> <li><strong>{txt key=TEXT_XT_ORDERS_INVOICES_BANKDETAILS}:</strong></li> <li>{$data.config._STORE_ORDERS_INVOICES_BANK|nl2br}<br /></li> </ul> </div> </div> <!------------------------------------------------- END BANK DETAILS -------------------------------------------------> <div styel="clear: both;"></div> </div> </body> </html> Wenn ich eine Rechnung generiere wird ein verpixeltes "Company Logo" gezeigt, wo ich auch nicht die URL der Bilddatei mir anzeigen lassen kann. Wie kann man das ändern. LG kweb Link to comment Share on other sites More sharing options...
Sentor77 Posted November 12, 2012 Report Share Posted November 12, 2012 Moin, hier wäre dann die richtige Stelle: <!------------------------------------------------- START HEAD -------------------------------------------------> <div id="logo"> <img src="../media/logo/{$data.config._STORE_LOGO}" /> </div> <!------------------------------------------------- END HEAD ------------------------------------------------->[/HTML] Viel Erfolg Link to comment Share on other sites More sharing options...
kweb Posted November 13, 2012 Author Report Share Posted November 13, 2012 Moin, hier wäre dann die richtige Stelle: <!------------------------------------------------- START HEAD -------------------------------------------------> <div id="logo"> <img src="../media/logo/{$data.config._STORE_LOGO}" /> </div> <!------------------------------------------------- END HEAD ------------------------------------------------->[/HTML] Viel Erfolg Ach herrje ich bin ja total blind. Ich hab mich völlig von dem "START FOOTER" täuschen lassen und nicht gedacht das dahinter noch was kommt. Danke für den Hinweis. LG Link to comment Share on other sites More sharing options...
Sentor77 Posted November 13, 2012 Report Share Posted November 13, 2012 lach...gern geschehen ...wäre aber ein verdammt großer footer...gg Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.