EEssam Posted January 22, 2008 Share Posted January 22, 2008 Hi, I want to completely remove the coupon code field from the signup process. Is that possible? If so, how? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
JasonO Posted January 23, 2008 Share Posted January 23, 2008 whmcs\templates\orderforms\singlepage\order-stepfour.tpl if your using single page ordering style. whmcs\templates\orderforms\boxes\order-stepfour.tpl If your using box style ordering page. whmcs\templates\orderforms\default\order-stepfour.tpl If your using the default style ordering page. 0 Quote Link to comment Share on other sites More sharing options...
EEssam Posted January 24, 2008 Author Share Posted January 24, 2008 Hello, Here is what I did: {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> <form method="post" action="{$smarty.server.PHP_SELF}?step=4"> <div style="display: none"> <input type="hidden" name="validatepromo" value="true" /> <p align="center">{if $promoerrormessage}<font style="color:#cc0000"><strong>{$promoerrormessage}</strong></font><br />{/if} <strong>{$LANG.orderpromotioncode}:</strong> {if $promotioncode}{$promotioncode} - {$promotiondescription} - <a href="{$smarty.server.PHP_SELF}?step=4&removepromo=true">{$LANG.orderdontusepromo}</a> {else}<input type="text" name="promocode" size="20" /> <input type="submit" value="{$LANG.orderpromovalidatebutton}" />{/if}</p> </div> </form> {/if} I added: <div style="display: none"> And: </div> Will be there any problem? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
freedombi Posted January 24, 2008 Share Posted January 24, 2008 In Smarty, the comment characters are {* *}. If you use those instead of the div tags, the "else" section will not be output or even processed. Especially if you open the comment before the {else}. 0 Quote Link to comment Share on other sites More sharing options...
EEssam Posted January 24, 2008 Author Share Posted January 24, 2008 I though it's better to just hide the coupon form because maybe WHMCS will have an internal error if it can't find the variable or something? 0 Quote Link to comment Share on other sites More sharing options...
JasonO Posted January 25, 2008 Share Posted January 25, 2008 It's an optional field so you shouldn't get an error. 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.