我可以在没有销售功能的情况下使用 Magento 吗?或者我从头开始构建会更好吗?

发布于 2024-09-25 17:07:23 字数 630 浏览 0 评论 0原文

我有一个网站构建,在某种程度上似乎适合 Magento,但客户实际上并不想出售任何东西 - 在选择产品的过程结束时,用户将简单地被重定向到另一个网站来完成交易(或不交易)。

我想避免完全从 Magento 中破解这些功能,这样我们就可以在自动更新出现时升级网站......

以前有人做过类似的事情吗?或者,常驻专家会推荐一个更加“从头开始”的构建,重新创建必要的功能吗?


抱歉,我应该说清楚,我是开发者。

我熟悉为其他平台编写模块/插件/主题 - 例如 Wordpress 和 Drupal - 特别是这样我的客户就有一个“纯粹”的核心结构,可以以通常的方式升级......但并不是所有的东西都有一个钩子你想要它的地方......你只能用Wordpress(例如)做这么多,直到它与平台的设计目的相去甚远,以至于你别无选择,只能破解核心。

所以我想我在问 - Magento 是否有所有正确的钩子?有人真正尝试过这样做吗?它是否会像这样简单:

add_listener('checkout', my_func_without_checkout);

my_func_without_checkout() {
 stuff...
}

或者事务处理功能是否集成得如此紧密以至于很难完全删除?

I have a site build which would seem to suit Magento up to a point, but the client doesn't actually want to sell anything - at the end of the process of choosing a product the user would simply be redirected to another site to complete the transaction (or not).

I would like to avoid just hacking these features out of Magento entirely so we can upgrade the site as automatic updates come out...

Anyone done anything like this before? Or would the resident gurus recommend a more 'from-scratch' build recreating the necessary features?


Sorry, I should have made it clear, I am the developer.

I'm familiar with writing modules/plugins/themes for other platforms - Wordpress and Drupal for example - specifically so my clients have a 'pure' core structure which can be upgraded in the usual way... But not everything has a hook just where you want it... There's only so much you can do with Wordpress (for example) until it departs so far from what the platform was designed for that you have no choice but to hack the core.

So I guess I'm asking - does Magento have all the right hooks? Has anyone actually tried to do this? Will it be as simple as:

add_listener('checkout', my_func_without_checkout);

my_func_without_checkout() {
 stuff...
}

Or is the transaction processing functionality so tightly integrated that it will be difficult to remove entirely?

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

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

发布评论

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

评论(2

你的往事 2024-10-02 17:07:23

是的,Magento 非常适合这种情况,假设您雇佣了一位知道自己在做什么的开发人员。我推荐从头开始构建的唯一方法是,如果您的客户财力雄厚并且想要继续这一旅程。

Magento 的架构是从头开始构建的,允许用户无需修改核心代码即可进行此类修改。从较高的层次来看,您将构建一个模块(模块实际上在 Magento 中意味着某种东西,它不仅仅是一个通用术语),该模块将插入一个事件侦听器(或覆盖一个代码方法),该事件侦听器将在结帐过程中的某个时刻收集收集有关订单的信息并将其传递到下一个系统。

您将遇到的问题不是代码问题,而是文化问题。尽管 Magento 是面向对象的架构,但它仍然是用 PHP 实现的。这意味着雄心勃勃但缺乏经验的开发人员(无论是离岸还是在岸)将发现更容易侵入核心源以从系统中获得他们想要的结果。这种方式总是能更快地获得结果,但代价是长期稳定性。

Yes, Magento would be well suited for this, assuming you hire a developer who knows what they're doing. The only way I'd recommend the from scratch build is if you have a client who has deep pockets and wants to go along on that ride.

Magento's architecture was built, from the ground up, to allow users to make these kind of modifications without hacking on core code. From a high level you would build a Module (module actually means something in Magento talk, it's not just a generic term) that would insert an event listener (or override a code method) that would, at some point in the checkout process, collect up information about the order and pass it on to the next system.

The problem you're going to run into isn't one of code, it's one of culture. For all its object oriented architecture, Magento is still implemented in PHP. That means ambitious but inexperienced developers (both offshore and onshore) are going to find it easier to hack on the core source to get the results they want out of the system. Its always faster to get results this way, at the cost of long term stability.

忘你却要生生世世 2024-10-02 17:07:23

根据个人经验,我可以推荐“没有销售的 Magento”方法(我称之为“目录驱动”)。

您可以禁用不需要的核心模块,这将显着提高性能。有一些依赖关系不是特别明显,所以需要一些尝试和错误来禁用和测试。确保通过设置 false 来禁用 app/etc/modules/ 中的模块,就像仅在 Web 管理员中将它们设置为禁用一样禁用管理渲染功能。

如果您能够实现合理的性能(并且有大量的 wiki 文章、博客文章等!),那么我没有发现这种方法有任何缺点,并且该框架有很多优点。它还使您有机会在不重写网站的情况下添加电子商务。

I can recommend the "Magento without sales" approach (I call it "catalog-driven") from personal experience.

You can disable the core modules that are not required which will significantly improve performance. There are some dependencies that are not particularly obvious, so some trial and error is required to disable and test. Make sure that you disable the modules in app/etc/modules/ by setting <active>false</active> as just setting them to disable in the Web Admin only disables the admin rendering functionality.

If you can achieve reasonable performance (and there are plenty of wiki articles, blog posts, etc on that!), then I haven't found any downside to this approach, and plenty of advantages from the framework. It also gives you the opportunity to add in eCommerce down the track without rewriting the site.

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