PDA

View Full Version : Add promotion code box to Addons page



Nathan123
06-05-07, 04:24 PM
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,


<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} ({$smarty.server.PHP_SELF}?step=4&removepromo=true) {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:


{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. :D

congkai
10-21-07, 11:58 PM
Posted: Tue Jun 05, 2007 4:24 pm Post subject: Add promotion code box to Addons page

--------------------------------------------------------------------------------

I noticed when clicking addons in a hosting package there was no promotion code box there to add this simply:




This instruction is not clear. There is already a promotion code on step 4?

congkai
10-22-07, 12:02 AM
and when code is applied, step 4 SHOWS A BLANK PAGE.

Nathan123
10-22-07, 02:04 AM
Hi,

It did work so maybe files have been changed with a new release.

Nathan