ba609 Posted January 16, 2014 Share Posted January 16, 2014 Salve, ho notato che nella versione 1.5.4.1 la data relativa al Tracking number è la stessa della creazione dell'ordine.In buona sostanza vorrei che inserendo o aggiornando il Tracking number si aggiorni anche la data. Avete qualche idea!?!?!?La pagina che contiene queste informazioni è la seguente " _shipping.tpl " e si trova in: catalog > admin.... > themes > template > controllers > orders > _shipping.tplil codice che visualizza la data e ora è il seguente:<td>{dateFormat date=$line.date_add full=true}</td> <table class="table" width="100%" cellspacing="0" cellpadding="0" id="shipping_table"> <colgroup> <col width="15%"> <col width="15%"> <col width=""> <col width="10%"> <col width="20%"> </colgroup> <thead> <tr> <th>{l s='Date'}</th> <th>{l s='Type'}</th> <th>{l s='Carrier'}</th> <th>{l s='Weight'}</th> <th>{l s='Shipping cost'}</th> <th>{l s='Tracking number'}</th> </tr> </thead> <tbody> {foreach from=$order->getShipping() item=line} <tr> <td>{dateFormat date=$line.date_add full=true}</td> <td>{$line.type}</td> <td>{$line.carrier_name}</td> <td>{$line.weight|string_format:"%.3f"} {Configuration::get('PS_WEIGHT_UNIT')}</td> <td> {if $order->getTaxCalculationMethod() == $smarty.const.PS_TAX_INC} {displayPrice price=$line.shipping_cost_tax_incl currency=$currency->id} {else} {displayPrice price=$line.shipping_cost_tax_excl currency=$currency->id} {/if} </td> <td> <span id="shipping_number_show">{if $line.url && $line.tracking_number}<a href="{$line.url|replace:'@':$line.tracking_number}">{$line.tracking_number}</a>{else}{$line.tracking_number}{/if}</span> {if $line.can_edit} <form style="display: inline;" method="post" action="{$link->getAdminLink('AdminOrders')|escape:'htmlall':'UTF-8'}&vieworder&id_order={$order->id|escape:'htmlall':'UTF-8'}"> <span class="shipping_number_edit" style="display:none;"> <input type="hidden" name="id_order_carrier" value="{$line.id_order_carrier|htmlentities}" /> <input type="text" name="tracking_number" value="{$line.tracking_number|htmlentities}" /> <input type="submit" class="button" name="submitShippingNumber" value="{l s='Update'}" /> </span> <a href="#" class="edit_shipping_number_link"><img src="../img/admin/edit.gif" alt="{l s='Edit'}" /></a> <a href="#" class="cancel_shipping_number_link" style="display: none;"><img src="../img/admin/disabled.gif" alt="{l s='Cancel'}" /></a> </form> {/if} </td> </tr> {/foreach} </tbody> </table> P.S.data e ora vengono inseriti nel database al momento della creazione però successivamente non è possibile modificarle dal sito, ma solo manualmente da DB. Grazie !!! Link to comment Share on other sites More sharing options...
mhu100 Posted November 29, 2017 Share Posted November 29, 2017 (edited) ba609, Did you find a solution for this? I need it too. Edited November 29, 2017 by mhu100 (see edit history) Link to comment Share on other sites More sharing options...
ba609 Posted November 26, 2018 Author Share Posted November 26, 2018 Quote ba609, Did you find a solution for this? I need it too. NO! I'm sorry. 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