Jump to content

[SOLVED]Create tracking order page for all customers


caromax

Recommended Posts

Hi,

I created a tracking-order.tpl page to allow customers to check the statut an order.

The customer comes to the page tracking-order.php and entering his order number and his email address and must to click on submit button to search the history of this order.

 

After clicking this button, the result is displayed.

But i don't how to code the page tracking-order.php.

Someone can help me please ?

 

This is my tracking-order.tpl

 

{capture name=path}
{l s='Tracking Order'}
{/capture}
{include file=$tpl_dir./breadcrumb.tpl}
{include file=$tpl_dir./errors.tpl}

<h2>
{l s='Tracking My Order'}
</h2>	

<form action="{$base_dir_ssl}tracking-order.php" method="post" id="tracking" class="std4">
<fieldset>
	<h3>
		{l s='Tracking This Order'}
	</h3>
	<p class="text">
		<label for="id_order">
			{l s='ID Order :'}
		</label>
		<span>
			<input type="text" id="id_order" name="id_order" value="{if isset($smarty.post.id_order)}{$smarty.post.id_order|escape:'htmlall'|stripslashes}{/if}" class="account_input input_id_order" />
		</span>
	</p>		
	<p class="text">
		<label for="email">
			{l s='E-mail address :'}
		</label>
		<span>
			<input type="text" style="text-transform: lowercase;" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'htmlall'|stripslashes}{/if}" class="account_input input_email_login" />
		</span>
	</p>
	<p class="submit">
		{if isset($back)}
			<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />
		{/if}
		<input type="submit" name="submitTrackingOrder" class="button" value="{l s='Search this order'}" />
	</p>
</fieldset>
</form>

Edited by caromax (see edit history)
Link to comment
Share on other sites

  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...