Jump to content

modification tpl


Jluis

Recommended Posts

Salut ,

je viens de modifier le fichier view.tpl  issue du racine  www\admin-monsite\themes\default\template\controllers\orders\helpers\view . Le code initial  est comme ceci : 

{if Configuration::get('PS_ORDER_RETURN')}
						<a id="desc-order-standard_refund" class="btn btn-default" href="#refundForm">
							<i class="icon-exchange"></i>
							{if $order->hasBeenShipped()}
								{l s='Return products'}
							{elseif $order->hasBeenPaid()}
								{l s='Standard refund'}
							{else}
								{l s='Cancel products'}
							{/if}
						</a>
						&nbsp;
					{/if}

la modification apportée est :

	{if Configuration::get('PS_ORDER_RETURN')}
						<a id="desc-order-standard_refund" class="btn btn-default" href="#refundForm">
							<i class="icon-exchange"></i>
							{if $order->hasBeenShipped()}
								{l s='Return products'}
							{elseif $order->hasBeenPaid()}
						<a id="desc-order-standard_refund" class="btn btn-default" href="#refundForm">
								{l s='Standard refund'}</a>
					<a id="desc-order-standard_refund" class="btn btn-default" href="#refundForm">
					{l s='Return products'}</a>
							{else}
							<a id="desc-order-standard_refund" class="btn btn-default" href="#refundForm">
							{l s='Cancel products'}	</a>
														
                           <a id="desc-order-standard_refund" class="btn btn-default" href="#refundForm">
	                      {l s='Return products'}</a>
							{/if}
						</a>
						&nbsp;
					{/if}

le résultat parait comme voulu  mais le souci est si cette modification est de bonne pratique sur cette fichier  www\admin-monsite\themes\default\template\controllers\orders\helpers\view.tpl

Merci d'avance

Link to comment
Share on other sites

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...