1{capture name=path}{l s='Guest Tracking'}{/capture} 2 3<h1 class="page-heading">{l s='Guest Tracking'}</h1> 4 5{if isset($order_collection)} 6 {foreach $order_collection as $order} 7 {assign var=order_state value=$order->getCurrentState()} 8 {assign var=invoice value=$order->invoice} 9 {assign var=order_history value=$order->order_history} 10 {assign var=carrier value=$order->carrier} 11 {assign var=address_invoice value=$order->address_invoice} 12 {assign var=address_delivery value=$order->address_delivery} 13 {assign var=inv_adr_fields value=$order->inv_adr_fields} 14 {assign var=dlv_adr_fields value=$order->dlv_adr_fields} 15 {assign var=invoiceAddressFormatedValues value=$order->invoiceAddressFormatedValues} 16 {assign var=deliveryAddressFormatedValues value=$order->deliveryAddressFormatedValues} 17 {assign var=currency value=$order->currency} 18 {assign var=discounts value=$order->discounts} 19 {assign var=invoiceState value=$order->invoiceState} 20 {assign var=deliveryState value=$order->deliveryState} 21 {assign var=products value=$order->products} 22 {assign var=customizedDatas value=$order->customizedDatas} 23 {assign var=HOOK_ORDERDETAILDISPLAYED value=$order->hook_orderdetaildisplayed} 24 {if isset($order->total_old)} 25 {assign var=total_old value=$order->total_old} 26 {/if} 27 {if isset($order->followup)} 28 {assign var=followup value=$order->followup} 29 {/if} 30 31 <div id="block-history"> 32 <div id="block-order-detail" class="std"> 33 {include file="./order-detail.tpl"} 34 </div> 35 </div> 36 {/foreach} 37 38 <h2 id="guestToCustomer" class="page-heading">{l s='For more advantages...'}</h2> 39 40 {include file="$tpl_dir./errors.tpl"} 41 42 {if isset($transformSuccess)} 43 <div class="alert alert-success">{l s='Your guest account has been successfully transformed into a customer account. You can now log in as a registered shopper. '} <a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}">{l s='Log in now.'}</a></div> 44 {else} 45 <form method="post" action="{$action|escape:'html':'UTF-8'}#guestToCustomer" class="std"> 46 <fieldset class="description_box box"> 47 48 <p><strong>{l s='Transform your guest account into a customer account and enjoy:'}</strong></p> 49 <ul> 50 <li> -{l s='Personalized and secure access'}</li> 51 <li> -{l s='Fast and easy checkout'}</li> 52 <li> -{l s='Easier merchandise return'}</li> 53 </ul> 54 <div class="row"> 55 <div class="col-xs-12 col-sm-5 col-md-4 col-lg-3"> 56 <div class="text form-group"> 57 <label for="guest-order-password"><strong>{l s='Set your password:'}</strong></label> 58 <input id="guest-order-password" type="password" name="password" class="form-control"> 59 </div> 60 </div> 61 </div> 62 63 <input type="hidden" name="id_order" value="{if isset($order->id)}{$order->id}{else}{if isset($smarty.get.id_order)}{$smarty.get.id_order|escape:'html':'UTF-8'}{else}{if isset($smarty.post.id_order)}{$smarty.post.id_order|escape:'html':'UTF-8'}{/if}{/if}{/if}"> 64 <input type="hidden" name="order_reference" value="{if isset($smarty.get.order_reference)}{$smarty.get.order_reference|escape:'html':'UTF-8'}{else}{if isset($smarty.post.order_reference)}{$smarty.post.order_reference|escape:'html':'UTF-8'}{/if}{/if}"> 65 <input type="hidden" name="email" value="{if isset($smarty.get.email)}{$smarty.get.email|escape:'html':'UTF-8'}{else}{if isset($smarty.post.email)}{$smarty.post.email|escape:'html':'UTF-8'}{/if}{/if}"> 66 67 <p> 68 <button type="submit" name="submitTransformGuestToCustomer" class="btn btn-lg btn-success"> 69 <span>{l s='Send'} <i class="icon icon-chevron-right"></i></span> 70 </button> 71 </p> 72 </fieldset> 73 </form> 74 {/if} 75{else} 76 {include file="$tpl_dir./errors.tpl"} 77 {if isset($show_login_link) && $show_login_link} 78 <p><img src="{$img_dir}icon/userinfo.gif" alt="{l s='Information'}" class="icon"><a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">{l s='Click here to log in to your customer account.'}</a><br><br></p> 79 {/if} 80 <form method="post" action="{$action|escape:'html':'UTF-8'}" class="std" id="guestTracking"> 81 <fieldset class="description_box box"> 82 <h2 class="page-subheading">{l s='To track your order, please enter the following information:'}</h2> 83 <div class="text form-group"> 84 <label for="guest-order-reference">{l s='Order Reference:'} </label> 85 <input id="guest-order-reference" class="form-control" type="text" name="order_reference" value="{if isset($smarty.get.id_order)}{$smarty.get.id_order|escape:'html':'UTF-8'}{else}{if isset($smarty.post.id_order)}{$smarty.post.id_order|escape:'html':'UTF-8'}{/if}{/if}" size="8" required> 86 <p class="help-block">{l s='For example: QIIXJXNUI or QIIXJXNUI#1'}</p> 87 </div> 88 <div class="text form-group"> 89 <label for="guest-order-email">{l s='Email:'}</label> 90 <input id="guest-order-email" class="form-control" type="email" name="email" value="{if isset($smarty.get.email)}{$smarty.get.email|escape:'html':'UTF-8'}{else}{if isset($smarty.post.email)}{$smarty.post.email|escape:'html':'UTF-8'}{/if}{/if}" required> 91 </div> 92 <p> 93 <button type="submit" name="submitGuestTracking" class="btn btn-lg btn-success"> 94 <span>{l s='Send'} <i class="icon icon-chevron-right"></i></span> 95 </button> 96 </p> 97 </fieldset> 98 </form> 99{/if} 100