Douglas Ruiz Posted March 3, 2023 Share Posted March 3, 2023 Hello, how create custom action button? i mean like "Cancel" button but run my own code? Link example: clientarea.php?action=change&id=40 where change will be my function, i need it to run at same tpl productdetails like here for example, i need display a message when click at my button. {if $modulecustombuttonresult} {if $modulecustombuttonresult == "success"} {include file="$template/includes/alert.tpl" type="success" msg=$LANG.moduleactionsuccess textcenter=true idname="alertModuleCustomButtonSuccess"} {else} {include file="$template/includes/alert.tpl" type="error" msg=$LANG.moduleactionfailed|cat:' ':$modulecustombuttonresult textcenter=true idname="alertModuleCustomButtonFailed"} {/if} {/if} i created the button <a href="clientarea.php?action=change&id={$id}" class="btn btn-block btn-info">Trocar Máquina</a> but i don't know the next step. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.