Hello there,
im try to Redirect the User after successfull Login to order.tpl or payment.tpl, it should depend if Customer selected a Payment method or not.
FIrstly, i try to edit proteced function _afterLogin in views/oxcmp_user.php (i know its a bad idea because Updates but im still learning ).
Heres my Example:
$clUser = oxConfig::getParameter( 'cl' );
if ($clUser != 'account' && $oUser->getUserPayments() !== null){
oxUtils::getInstance()->redirect( $myConfig->getShopHomeURL().'cl=order', true, 302 );
}
else{
oxUtils::getInstance()->redirect( $myConfig->getShopHomeURL().'cl=payment', true, 302 );
}
Thanks!