Admin liste et fiche client AUP

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
12 years 7 months ago #45119

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

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 7 months ago #45310

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.

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
12 years 7 months ago #45317

dans ./administrator/templates/bluestork/html/com_hikashop/user/listing.php

au debut

$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: 12 years 7 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.059 seconds
Powered by Kunena Forum