订单发错店了

发布于 2024-12-11 02:37:54 字数 465 浏览 0 评论 0原文

我在多商店设置中使用 Magento 1.3.2。 www.example.com 是主商店,abc.example.com、foo.example.com 和 bar.example.com 是附属商店,具有单独的子域、单独的库存、单独的购物车、单独的设计。

我的问题是,一些通过附属公司下的订单显示为来自总店。这种情况并不常见,大概每 1000 个订单中就会出现一次。当我去履行订单时,我注意到这些,并且我发现 SKU 不是我的,而是附属公司的之一,尽管订单屏幕上的网站、商店和商店视图都显示主商店。我知道客户正在从联属网站将产品添加到购物车(我们甚至没有在主网站上列出联属产品),并且他们会在联属网站上完成结账流程。有谁知道可能导致此问题的原因吗?

编辑:我希望我可以重新创建这个,这样我就可以发布一些我认为可能有错误或其他有用的代码,但我已经尝试了我能想到的所有排列(登录附属网站与主网站,有两个购物车打开,以各种顺序添加/删除产品)但我仍然无法重现该问题。

I am using Magento 1.3.2 in a multi-store setup. www.example.com is the main store, and abc.example.com, foo.example.com and bar.example.com are affiliate stores with separate subdomains, separate inventory, separate carts, separate designs.

My problem is that some orders being placed through the affiliates are showing up as coming from the main store. It doesn't happen frequently, maybe once in every 1000 orders. I notice these when I go to fulfill the order and I see that the SKU is not one of mine but rather it is one of the affiliate's, despite the fact that the website, store and store view on the order screen all show the main store. I know that the customers are adding the product to their cart from the affiliate site (we don't even list affiliate products on the main site) and they go through the checkout process on the affiliate site. Does anybody have any ideas what could be causing this?

EDIT: I wish I could recreate this so I could post some code that I think might be buggy or something else helpful, but I've tried every permutation I can think of (logging in on the affiliate site vs the main site, having two carts open, adding/removing products in various sequences) but I still can't reproduce the issue.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

死开点丶别碍眼 2024-12-18 02:37:54

您应该遵循一些步骤:

  • 确保附属机构使用不同的数据库。为他们提供不同的数据库用户名/密码集。这可以确保他们不会弄乱您的数据库。
  • 确保您拥有 CSRF 令牌,或者某些 URL 重定向/DNS 配置会使附属机构的订单最终出现在主商店上。
  • 如果您愿意,请浏览 Web 服务器日志以查看发生了什么(可能会很耗时)
  • 向您寻求帮助的人员提供系统配置,例如 Web 服务器、服务器端脚本语言、数据库服务器、操作系统等。
  • 如果是千分之一的问题,那么有两种一般的触发情况:
    • 某些具有特定系统设置/点击习惯的特定客户会导致这种情况。
    • 您的代码中存在并发问题(数据库事务?)

希望它有所帮助

You should follow some steps :

  • Make sure affiliates use different databases. Provide them with different database username/password sets. This ensures they are not messing with your database.
  • Make sure you have CSRF tokens, Or some URL Redirection/DNS config would make orders of affiliates to end up on the main shop.
  • If you feel like it, Browse web server logs to see what happened (might be time-consuming)
  • Provide people you ask for help with your system configuration, e.g Web Server, Server-side Scripting Language, Database Server, Operating System, etc.
  • If it is 1 in a 1000 problem, Then there are two general case of triggers for that:
    • Some particular costumers with particular system setup / clicking habits result in that.
    • You have concurrency problems in your code (Database Transactions?)

Hope it helped

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文