lliukes Posted December 3, 2016 Share Posted December 3, 2016 Hello how can i change the invoice to don't calculate shipping cost at total and just the products ? i have this code for the invoice : {* * 2007-2012 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2012 PrestaShop SA * @version Release: $Revision: 6753 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <div style="font-size: 7pt; color: #000;"> <table width="100%" border="1" cellpadding="3" cellspaging="0"> <tr> <td style="width: 33%"> {if $logo_path} <img src="{$logo_path}" border="0" height="30" align="left" /> <br /> {/if} Furnizor: S.C. C & B AutoQuality SRL-D <br /> CIF: 32345121<br /> Reg Com.: J23/3082/2013<br /> Capital Social: 200 LEI<br /> Sediu Social: Ilfov, Buftea, Aleea Tineretului, 12<br /> Banca: Banca Romana Pentru Dezvoltare<br /> IBAN: RO77 BRDE 445S V734 4216 4450<br /> Web: https://aditivi-metalubs.ro/<br /> Tel/Fax: +40733.220.278<br /> Email: [email protected] </td> <td style="width: 34%"> <br /> <br /> <br /> <br /> <table width="100%" border="0" cellpadding="0" cellspaging="0"> <tr align="center"><td><h1>FACTURA</h1></td></tr> <tr align="center"><td><h4>Serie: MET Nr: {$order_invoice ->id|str_pad:7:"0":$smarty.const.STR_PAD_LEFT}</h4></td></tr> <tr align="left"><td> <hr> <br /> <br /> <br /> Data: {$order->date_add|date_format:"%d-%m-%Y"}<br /> ID comanda: {$order->getUniqReference()}<br /> Nr. aviz de insotire a marfii:.......................... </td> </tr> <tr align="center"> <td> (daca este cazul) </td></tr> </table> </td> <td style="width: 33%"> Cumparator:<br /> {$invoice_address} </td> </tr> </table> <table border="1" width="100%" cellspacing="0" cellpadding="3"> <tr align="center"> <th width="25"><b>Nr. Crt</b></th> {if ($order_invoice->total_paid_tax_excl != $order_invoice->total_paid_tax_incl)} <th width="290">Denumirea Produselor</th> {else} <th width="340">Denumirea Produselor</th> {/if} <th width="30">U.M.</th> <th width="43">Cantitatea</th> <th width="50">Pret Unitar (fara TVA) -lei-</th> {if ($order_invoice->total_paid_tax_excl != $order_invoice->total_paid_tax_incl)} <th width="50">TVA -lei-</th> {/if} <th width="50">Valoare -lei-</th> </tr> <tr align="center"> <th>0</th> <th>1</th> <th>2</th> <th>3</th> <th>4</th> {if ($order_invoice->total_paid_tax_excl != $order_invoice->total_paid_tax_incl)} <th>5</th> <th>6 (3x4)</th> {else} <th>5 (3x4)</th> {/if} </tr> {foreach $order_details as $order_detail} {cycle values='#FFF,#DDD' assign=bgcolor} <tr style="line-height:4px;"> <td style="text-align: center;">{counter}</td> <td style="text-align: left;">{$order_detail.product_name}</td> <td style="text-align: center;">buc</td> <td style="text-align: center;">{$order_detail.product_quantity}</td> <td style="text-align: right;"> {displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_excl} </td> {if ($order_invoice->total_paid_tax_excl != $order_invoice->total_paid_tax_incl)} <td style="text-align: right;"> {displayPrice currency=$order->id_currency price= {math equation="x - y" x=$order_detail.unit_price_tax_incl y=$order_detail.unit_price_tax_excl[spam-filter] </td> {/if} <td style="text-align: right;"> {displayPrice currency=$order->id_currency price=$order_detail.total_price_tax_excl} </td> </tr> {foreach $order_detail.customizedDatas as $customizationPerAddress} {foreach $customizationPerAddress as $customizationId => $customization} <tr style="line-height:4px"> <td style="line-height:3px; text-align: left; width: 60%; vertical-align: top"> <blockquote> {if isset($customization.datas[$smarty.const._CUSTOMIZE_TEXTFIELD_]) && count($customization.datas[$smarty.const._CUSTOMIZE_TEXTFIELD_]) > 0} {foreach $customization.datas[$smarty.const._CUSTOMIZE_TEXTFIELD_] as $customization_infos} {$customization_infos.name}: {$customization_infos.value} {if !$smarty.foreach.custo_foreach.last}<br /> {else} <div style="line-height:0.4pt"> </div> {/if} {/foreach} {/if} {if isset($customization.datas[$smarty.const._CUSTOMIZE_FILE_]) && count($customization.datas[$smarty.const._CUSTOMIZE_FILE_]) > 0} {count($customization.datas[$smarty.const._CUSTOMIZE_FILE_])} {l s='image(s)' pdf='true'} {/if} </blockquote> </td> <td style="text-align: right; width: 15%"></td> <td style="text-align: center; width: 10%; vertical-align: top">({$customization.quantity})</td> <td style="width: 15%; text-align: right;"></td> </tr> {/foreach} {/foreach} {/foreach} <!-- END PRODUCTS --> <!-- <tr> <td style="text-align: center;">{counter}</td><td>Transport</td> <td style="text-align: center">buc</td> <td style="text-align: center">1</td> <td style="text-align: right"> {displayPrice currency=$order->id_currency price=$order_invoice->total_shipping_tax_excl} </td> {if ($order_invoice->total_paid_tax_excl != $order_invoice->total_paid_tax_incl)} <td style="text-align: right"> {displayPrice currency=$order->id_currency price= {math equation="x - y" x=$order_invoice->total_shipping_tax_incl y=$order_invoice->total_shipping_tax_excl[spam-filter] </td> {/if} <td style="text-align: right"> {displayPrice currency=$order->id_currency price=$order_invoice->total_shipping_tax_excl} </td> </tr> --> <!-- CART RULES --> {assign var="shipping_discount_tax_incl" value="0"} {foreach $cart_rules as $cart_rule} <tr> <td style="text-align: center;">{counter}</td><td>{$cart_rule.name}</td> <td style="text-align: center">buc</td> <td style="text-align: center">1</td> {if ($order_invoice->total_paid_tax_excl != $order_invoice->total_paid_tax_incl)} <td colspan="3" style="text-align: right"> {else} <td colspan="2" style="text-align: right"> {/if} {if $cart_rule.free_shipping} {assign var="shipping_discount_tax_incl" value=$order_invoice->total_shipping_tax_incl} {/if} {if $tax_excluded_display} - {displayPrice currency=$order->id_currency price=$cart_rule.value_tax_excl} {else} - {displayPrice currency=$order->id_currency price=$cart_rule.value} {/if} </td> </tr> {/foreach} <!-- END CART RULES --> <tr><td colspan="7">Intocmit de: IONITA CIPRIAN-VIOREL CNP: 1850329410065, CI: IF 279531</td></tr> </table> <table style="width: 100%" border="1" cellspacing="0" cellpadding="3"> <tr> <td align="center" width="100"> <br /><br /><br /><br />Conform art. 155 al. 6 din Codul Fiscal, factura circula fara semnatura si stampila.</td> <td width="180"> <h3>Date privind expeditia</h3> Numele delegatului: Ionita Ciprian-Viorel<br> Buletinul/cartea de identitate<br> seria IF nr 279531 eliberat(a)SPCLEP Buftea <br>Mijloc de transport nr..............................<br> Expedierea s-a efectuat in prezenta noastra<br>la data de.................ora.............. <br>Semnaturile........................... </td> <td width="129"><h3>Total<br /> din care:<br /> accize</h3> <hr> Semnatura de primire: </td> <td width="129" align="center"> <table border="1" width="100%"> <tr><td align="center"> <br /> {if ($order_invoice->total_paid_tax_excl != $order_invoice->total_paid_tax_incl)} {displayPrice currency=$order->id_currency price=$order_invoice->total_paid_tax_excl} {/if} <br /> </td> <td align="center"> <br /> {if ($order_invoice->total_paid_tax_excl != $order_invoice->total_paid_tax_incl)} {displayPrice currency=$order->id_currency price=($order_invoice->total_paid_tax_incl - $order_invoice->total_paid_tax_excl)} {else} <br />{displayPrice currency=$order->id_currency price=$order_invoice->total_paid_tax_excl}<br /> {/if} <br /></td></tr> <tr><td align="center"></td><td align="center"> <br />x<br /></td></tr> </table> <br /> Total de plata<br /> {if ($order_invoice->total_paid_tax_excl != $order_invoice->total_paid_tax_incl)} (col. 5 x col 3. + col. 6) {else} (col. 3 x col 4) {/if} <h1>{displayPrice currency=$order->id_currency price=$order_invoice->total_paid_tax_incl}</h1> </td> </tr> <tr><td colspan="4"> Sistem propriu de imprimare si numerotare conform legii 571/2003 privind codul fiscal cu modificari si completari ulterioare si OMF 2226/2006. </td></tr> </table> Thanks in advance Link to comment Share on other sites More sharing options...
tuk66 Posted December 5, 2016 Share Posted December 5, 2016 I think you should have free carriers only. Link to comment Share on other sites More sharing options...
lliukes Posted December 5, 2016 Author Share Posted December 5, 2016 The thing is that i want to show in total cart product price + shipping cost but in the invoice just the product couse i make the invoice for the products and the shipping carrier makes for shipping . this is the problem . Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now