View Issue Details

IDProjectCategoryView StatusLast Update
0001489OXID eShop (all versions)1.05. Userspublic2015-05-04 15:34
ReporterBergfreunde Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.2.0 revision 23610 
Fixed in Version4.3.0 revision 26948 
Summary0001489: User Group 'oxidnotyetordered' in EE missing in table oxgroups
DescriptionIn PE 4 a user who hasn't ordered yet belongs to a group called "oxidnotyetordered". This is missing in EE 4, but half of the work was done but the developers. There is just the entry "oxidnotyetordered" at "oxgroups" missing.

But the user will just become a "oxidnotyetordered"-groupmember if he opens an account outside the check out (because just the function "createUser" is called during check out when opening an account).

Our developer added at /views/oxcmp_user.php the following function:

################
    /**
     * Creates new oxid user while order process and add to group oxidnotyetordered
     *
     * @return string partial parameter string or null
     */
    public function registerUserFromBasket()
    {
        if ( $this->createuser()!= false && $this->_blIsNewUser ) {
            // 0001672 R
            $this->getUser()->addToGroup( 'oxidnotyetordered' );
        } else { // problems with registration ...
            $this->logout();
        }
        return 'payment';
    }

###################

At "user.tpl" on line 90: instead of "createuser" at "fnc" the value "registerUserFromBasket".

#############
    <form action="[{ $oViewConf->getSslSelfLink() }]" name="order" method="post" onsubmit="clearDefaultText('order_remark','[{ oxmultilang ident="USER_MESSAGEHERE" }]')">
      <div>
          [{ $oViewConf->getHiddenSid() }]
          [{ $oViewConf->getNavFormParams() }]
          <input type="hidden" name="option" value="[{$oView->getLoginOption()}]">
          <input type="hidden" name="cl" value="user">
          <input type="hidden" name="CustomError" value='user'>
          [{if !$oxcmp_user->oxuser__oxpassword->value }]
            <input type="hidden" name="fnc" value="registerUserFromBasket">
          [{else}]
            <input type="hidden" name="fnc" value="changeuser">
            <input type="hidden" name="lgn_cook" value="0">
          [{/if}]
      </div>
#############
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Relationships

child of 0001949 resolvedvilma_liorensaityte New customers don't get discount 

Activities

arvydas_vapsva

2009-11-26 13:36

reporter   ~0002128

fixed by moving oxUser::addToGroup( 'oxidnotyetordered' ); to oxcmp_user::createuser().

Same should be done by customer who reported it - just simple module for oxcmp_user::createuser() and no need to modify templates.