Admin liste et fiche client AUP

  • Posts: 2605
  • Thank you received: 65
  • Hikashop Business
12 years 1 month 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: 81563
  • Thank you received: 13071
  • MODERATOR
12 years 4 weeks 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: 2605
  • Thank you received: 65
  • Hikashop Business
12 years 4 weeks 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 4 weeks 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.058 seconds
Powered by Kunena Forum