douzha8489 2011-11-09 12:03
浏览 20
已采纳

Magento客户关联网站

My installation of magento is set to share customer accounts global. So any customer can log in to any magento-website. But I want them to be redirected to their "associated-website" after they loggged in.

I override the AccountController and override the Login-flow and let the _loginPostRedirect() function deal with the redirect. Their may be a better way to do this but it "works".

The problem is that they are not logged in after they've been redirected. As far as I know it is some sort of anonymous user in the session that keeps track of what site your on. And it is also the place you will be logged in to after you've logged in.

I want to reset/update or do something to get magento to sign in the customer on their associated website insted.

I've also looked at the Mage/Customer/Model/Session.php and hardcoded the website_id on places I've thought were in charge of this without effect.

Any hint/answer is welcome.

  • 写回答

1条回答 默认 最新

  • doufei7464 2011-11-10 10:06
    关注

    I found a solution to my problem :).

    This thread talks about it and mention an extension that solves the problem.

    In case someone else is wondering.

    /G

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题