bibleman Posted August 4, 2009 Share Posted August 4, 2009 Customers are always contacting us and asking what our promo code is, even when we are not running any promo. Please how can I remove that promotional code request field whenever it is not needed? 0 Quote Link to comment Share on other sites More sharing options...
D9Hosting Posted August 4, 2009 Share Posted August 4, 2009 If you go into: /whmcs_location/templates/orderforms/whatever_you_use Open up viewcart.tpl or whatever the equivalent is for the template you are using and get rid of: <form method="post" action="{$smarty.server.PHP_SELF}?a=view"> <input type="hidden" name="validatepromo" value="true" /> <strong>{$LANG.orderpromotioncode}</strong><br /> {if $promotioncode}{$promotioncode} - {$promotiondescription}<br /><a href="{$smarty.server.PHP_SELF}?a=removepromo">{$LANG.orderdontusepromo}</a>{else}<input type="text" name="promocode" size="20" /><br /><b /><input type="submit" class="green-but" value="{$LANG.orderpromovalidatebutton}" />{/if} </form> This would leave an empty space where the validate code form used to be, and your checkout/empty cart buttons would still be to the right of the page. 0 Quote Link to comment Share on other sites More sharing options...
bibleman Posted August 4, 2009 Author Share Posted August 4, 2009 Thank you so much. 0 Quote Link to comment Share on other sites More sharing options...
minadreapta Posted August 4, 2009 Share Posted August 4, 2009 or if you don't want to use it, but you want the form to be there in the source code for the future: {php} /* <code you want to get rid of> */ {/php} 0 Quote Link to comment Share on other sites More sharing options...
kctan Posted August 3, 2010 Share Posted August 3, 2010 Hi, I follow what D9Hosting has advised but my promo code form is still showing to the public.. I am using the default template. My url is at: http://www.websproutconsulting.com/webhosting/whmcs/cart.php Can anyone help? 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted August 3, 2010 Share Posted August 3, 2010 Looks like you just got rid of the first line, and not the rest of it. This is just basic HTML you're removing, its very simple. 0 Quote Link to comment Share on other sites More sharing options...
kctan Posted August 3, 2010 Share Posted August 3, 2010 Looks like you just got rid of the first line, and not the rest of it. This is just basic HTML you're removing, its very simple. I have already deleted the whole block of codes but the promotional codes is still there.. AM i deleting the codes in the right file? websproutconsulting.com/webhosting/whmcs/templates/orderforms/default/viewcart.tpl You can download the file and take a look, the codes are no longer there.. Would appreciate any help here, thank you. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted August 3, 2010 Share Posted August 3, 2010 You're using the "web20cart" template for your order form, not the default one. You edited the wrong template file. 0 Quote Link to comment Share on other sites More sharing options...
kctan Posted August 6, 2010 Share Posted August 6, 2010 You're using the "web20cart" template for your order form, not the default one. You edited the wrong template file. Thank you! This has solved the issue =) 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.