ukicnet Posted July 31, 2007 Share Posted July 31, 2007 Could I use the below code to add a promotional box to the upgrades order form I noticed when clicking addons in a hosting package there was no promotion code box there to add this simply: find this code in order-stepfour.tpl, Code: <form method="post" action="{$smarty.server.PHP_SELF}?step=4"> <input type="hidden" name="validatepromo" value="true"> <p align="center">{if $promoerrormessage}<font style="color:#cc0000">{$promoerrormessage}</font> {/if} {$LANG.orderpromotioncode}: {if $promotioncode}{$promotioncode} - {$promotiondescription} - {$LANG.orderdontusepromo} {else}<input type="text" name="promocode" size="20"> <input type="submit" value="{$LANG.orderpromovalidatebutton}">{/if}</p> </form> Remove it from its current place and add it under this code: Code: {else} <p align="center"><input type="button" onClick="window.location='{$smarty.server.PHP_SELF}'" value="{$LANG.orderchangeproduct}"> <input type="button" onClick="window.location='{$smarty.server.PHP_SELF}?step=2&modify=true'" value="{$LANG.orderchangedomain}"> <input type="button" onClick="window.location='{$smarty.server.PHP_SELF}?step=3&modify=true'" value="{$LANG.orderchangeconfig}"></p> {/if} Any problems let me know. Back to top 0 Quote Link to comment Share on other sites More sharing options...
Nathan123 Posted July 31, 2007 Share Posted July 31, 2007 Hi, No, I don't think that code will work on the Upgrade page. Nathan 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.