tozi Posted June 19, 2014 Share Posted June 19, 2014 Hi all, i have presta 1.5.6.1. I need in order-payment.tpl show for one carrier display only cashondelivery. i tried this code. {if isset($cart->id_carrier) && $cart->id_carrier == 38} <div id="HOOK_TOP_PAYMENT">{$HOOK_TOP_PAYMENT}</div> {else} {if $HOOK_PAYMENT} {if $opc}<div id="opc_payment_methods-content">{/if} <div id="HOOK_PAYMENT">{$HOOK_PAYMENT}</div> {if $opc}</div>{/if} {else} <p class="warning">{l s='No payment modules have been installed.'}</p> {/if} {/if} But how can i hook this module in this hook? In module i tried this function HOOK_TOP_PAYMENT($params) { return $this->payment($params, 'HOOK_TOP_PAYMENT'); } But nothing happend. Please help. 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