- Posts: 2696
- Thank you received: 74
Admin liste et fiche client AUP
14 years 6 months ago #45119
by erickb
Admin liste et fiche client AUP was created by erickb
Bonjour
comment je peux rajouter dans la liste des clients de l'admin leur points AUP ? et avoir ces points aussi dans la fiche clients de l'admin ?
merci
comment je peux rajouter dans la liste des clients de l'admin leur points AUP ? et avoir ces points aussi dans la fiche clients de l'admin ?
merci
Please Log in or Create an account to join the conversation.
14 years 6 months ago #45310
by nicolas
Replied by nicolas on topic Re: Admin liste et fiche client AUP
Aucune idée mais je crois que jérome vous a répondu la dessus non ?
Please Log in or Create an account to join the conversation.
14 years 6 months ago - 14 years 6 months ago #45317
by erickb
Replied by erickb on topic Re: Admin liste et fiche client AUP
dans ./administrator/templates/bluestork/html/com_hikashop/user/listing.php
au debut
et on recupere la valeur <?= round(@$row->aup_points,0); ?>
au debut
Code:
$ids = array();
foreach($this->rows as $row) {
$ids[] = $row->user_cms_id;
}
$userids = implode(',', $ids);
$qaup = 'SELECT userid,points FROM #__alpha_userpoints WHERE userid IN ';
$db = JFactory::getDBO();
$db->setQuery($qaup . '(' . $userids . ')' );
$ret = $db->loadObjectList('userid');
foreach($this->rows as $k => $row) {
if( isset($ret[$row->user_cms_id]) ) {
$this->rows[$k]->aup_points = $ret[$row->user_cms_id]->points;
}
}
et on recupere la valeur <?= round(@$row->aup_points,0); ?>
Last edit: 14 years 6 months ago by erickb.
The following user(s) said Thank You: nicolas
Please Log in or Create an account to join the conversation.
Time to create page: 0.204 seconds