Display credit on standard customer
This commit is contained in:
parent
427258606c
commit
af201001f1
@ -249,7 +249,7 @@ if (Db::getInstance()->getValue($sql) === false) {
|
||||
}
|
||||
|
||||
$customer_credit = 0;
|
||||
if ($display_credits === false) {
|
||||
if ($display_credits === true) {
|
||||
$customer_credit = $invite->_get_credit((int) $cookie->id_customer, false, false, 'frontoffice');
|
||||
}
|
||||
|
||||
|
@ -1431,7 +1431,7 @@ RewriteRule ^invite/(.*)$ '.__PS_BASE_URI__.'modules/invite/sponsor.php?sponsor=
|
||||
WHERE `id_customer` = '.(int) $id_customer
|
||||
);
|
||||
|
||||
if(count($credit) == 0) {
|
||||
if (count($credit) == 0) {
|
||||
$credit = 0;
|
||||
} else {
|
||||
$credit = $credit[0]['credit'];
|
||||
|
Loading…
Reference in New Issue
Block a user