Jump to content
xt:Commerce Community Forum

Kundennummer und eigene Box!!


hme-shop

Recommended Posts

Kann man diesen PHP Code so ändern, dass Kundennummer und die GruppenInfo ausgelesen wird??

datei loginbox.php

Code:

if ($_SESSION['customer_gender']=='m') { $box_smarty->assign('C_GENDER', 'Herr'); }

else { $box_smarty->assign('C_GENDER', 'Frau'); }

$box_smarty->assign('C_FIRSTNAME',$_SESSION['customer_first_name']);

$box_smarty->assign('C_LASTNAME',$_SESSION['customer_last_name']);

$box_smarty->assign('C_CID',$_SESSION['customer_cid']);

$box_smarty->assign('BOX_CONTENT', $userboxcontent);

$box_smarty->caching = 0;

$box_smarty->assign('language', $_SESSION['language']);

$box_userbox = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_user.html');

$smarty->assign('box_USER', $box_userbox);

neue box: box_user.html

{config_load file="$language/lang_$language.conf" section="boxes"}

<table border="0" cellpadding="0" cellspacing="0">

<tr><td>

<table border="0" cellpadding="0" cellspacing="0">

<tr>

<td style="height: 22px; text-align: left; color: #D6982B; font-weight: bold;">{$C_GENDER} {$C_FIRSTNAME} {$C_LASTNAME}</td>

</tr>

<tr>

<td>{#text_cid#} {$C_CID}</td>

</tr>

</table>

</td>

<td><img src="{$tpl_path}img/pixel_trans.gif" alt="" height="6" width="6" border="0"></td>

</tr></table>

Code:
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...