Jump to content

Back Office Modification Prestashop 1.6


Recommended Posts

So My client has a little bit of a clumsy fingers.

I am trying to remove the "remove voucher" button on orders:

image.thumb.png.4346108658ce833e01ea87e3cc809cbc.png

I technacly I found the tpl in:

admin>themes>default>template>controllers>orders>helpers>view>view.tpl

I just need to comment a piece of the code. But no matter what i do it has no effect. I can break teh page if i comment certain logics in the file. But nothing else seems to have an effect.

I just need to comment this code and make it stick:

<a href="{$current_index}&amp;submitDeleteVoucher&amp;id_order_cart_rule={$discount['id_order_cart_rule']}&amp;id_order={$order->id}&amp;token={$smarty.get.token|escape:'html':'UTF-8'}">
														<i class="icon-minus-sign"></i>
														{l s='Delete voucher'}
													</a>

I have disabled the cache, and forced to recompile. 

Anyone have an idea how to fix it?

Thank you for your time.

Link to comment
Share on other sites

Just add a html comment

<!--
<a href="{$current_index}&amp;submitDeleteVoucher&amp;id_order_cart_rule={$discount['id_order_cart_rule']}&amp;id_order={$order->id}&amp;token={$smarty.get.token|escape:'html':'UTF-8'}">
														<i class="icon-minus-sign"></i>
														{l s='Delete voucher'}
													</a>
-->

 

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