Fix price in member public form
This commit is contained in:
parent
9825586d41
commit
97da464343
@ -767,7 +767,7 @@ if (GETPOST("source") == 'membersubscription' && $valid)
|
||||
$valtoshow=GETPOST("newamount",'int');
|
||||
if (! empty($conf->global->MEMBER_MIN_AMOUNT) && $valtoshow) $valtoshow=max($conf->global->MEMBER_MIN_AMOUNT,$valtoshow);
|
||||
print '<input type="hidden" name="amount" value="'.GETPOST("amount",'int').'">';
|
||||
print '<input class="flat" size="8" type="text" name="newamount" value="'.$valtoshow.'">';
|
||||
print '<input class="flat" class="maxwidth75" type="text" name="newamount" value="'.price($valtoshow).'">';
|
||||
}
|
||||
else {
|
||||
$valtoshow=$amount;
|
||||
|
||||
@ -1235,7 +1235,7 @@ if ($source == 'membersubscription')
|
||||
//$valtoshow=GETPOST("newamount",'int');
|
||||
if (! empty($conf->global->MEMBER_MIN_AMOUNT) && $valtoshow) $valtoshow=max($conf->global->MEMBER_MIN_AMOUNT,$valtoshow);
|
||||
print '<input type="hidden" name="amount" value="'.GETPOST("amount",'int').'">';
|
||||
print '<input class="flat" size="8" type="text" name="newamount" value="'.$valtoshow.'">';
|
||||
print '<input class="flat" class="maxwidth75" type="text" name="newamount" value="'.price($valtoshow).'">';
|
||||
}
|
||||
else {
|
||||
$valtoshow=$amount;
|
||||
|
||||
@ -920,7 +920,7 @@ if (GETPOST("source") == 'membersubscription')
|
||||
$valtoshow=GETPOST("newamount",'int');
|
||||
if (! empty($conf->global->MEMBER_MIN_AMOUNT) && $valtoshow) $valtoshow=max($conf->global->MEMBER_MIN_AMOUNT,$valtoshow);
|
||||
print '<input type="hidden" name="amount" value="'.GETPOST("amount",'int').'">';
|
||||
print '<input class="flat" size="8" type="text" name="newamount" value="'.$valtoshow.'">';
|
||||
print '<input class="flat" class="maxwidth75" type="text" name="newamount" value="'.$valtoshow.'">';
|
||||
}
|
||||
else {
|
||||
$valtoshow=$amount;
|
||||
|
||||
@ -989,7 +989,7 @@ if (GETPOST("source") == 'membersubscription')
|
||||
$valtoshow=GETPOST("newamount",'int');
|
||||
if (! empty($conf->global->MEMBER_MIN_AMOUNT) && $valtoshow) $valtoshow=max($conf->global->MEMBER_MIN_AMOUNT,$valtoshow);
|
||||
print '<input type="hidden" name="amount" value="'.GETPOST("amount",'int').'">';
|
||||
print '<input class="flat" size="8" type="text" name="newamount" value="'.$valtoshow.'">';
|
||||
print '<input class="flat" class="maxwidth75" type="text" name="newamount" value="'.price($valtoshow).'">';
|
||||
}
|
||||
else {
|
||||
$valtoshow=$amount;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user