Magento 自定义浏览目录工作流程
我正在为我的一个特定客户评估 Magento。他们希望强制执行特定的工作流程来浏览目录。他们是一家旅游公司,提供定制度假套餐,并希望确保用户在选择住宿之前输入成人/儿童人数等信息(因为人数会影响可用的住宿和价格)。
请注意,住宿只是一个例子,度假套餐还有其他几个不同的组成部分。他们给了我一个 7 步(大部分)线性工作流程,他们希望用户在我们进行任何可能类似于结帐流程的操作之前遵循(即使这样,他们的“结帐”概念与 Magento 的概念也有很大不同)。
我正在考虑将住宿(以及每个其他包装组件)存储在单独的产品类别中。然后,我可以根据用户已添加到购物车中的内容来限制用户在浏览目录时可以看到的内容。
我的研究表明 Magento 并没有真正做到这种开箱即用的事情。我错了吗?是否有支持此类事情的附加组件?
如果我要走这条路,我会重新设计(或者实际上替换)Magento 的目录浏览功能的很大一部分吗?
I'm evaluating Magento for a particular client of mine. They want to enforce a particular workflow for browsing the catalogue. They're a travel company which puts together custom holiday packages and want to make sure users enter things like the number of adults / children before selecting accommodation (as number of people will affect available accommodation and pricing).
Note that accommodation is just an example, there are several other different components to a holiday package. And they've given me a 7 step (mostly) linear workflow they want users to follow before we get to anything which might resemble a checkout process (and even then their concept of "checkout" is quite different to Magento's).
I'm thinking of storing accommodation (and each of the other package components) in separate product categories. Then I can restrict what users can see as they browse the catalogue based on what they've already added to their shopping cart.
My research indicates that Magento doesn't really do this kind of thing out of the box. Am I mistaken? Are there add-ons which would support this kind of thing?
If I was to go down this road, would I be redesigning (or indeed, replacing) a large chunk of Magento's catalogue browsing functionality?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以采取多种方法来实现这样的事情;但所有这些都需要您进行定制开发工作。
您可以将包定义为简单的产品,其中包含每个特定包选项的属性,并使用它来从其他包中过滤每个包,现在您需要创建一个新模块,在前端添加一条路由,该路由将成为您的多步骤表单将获取所有信息一旦您拥有所有信息,您就可以获得与这些属性匹配的所有产品(包)的集合。
现在的交易是,如果价格根据所选选项而变化,如果是这种情况,那么您可能需要可配置的产品或自定义的东西来更改每个包的价格。
如果没有真正说明您的客户需要什么,真的很难说,但如果问题是 Magento 是否可能,那么答案是肯定的,这完全取决于您的技能水平:)
亲切的问候
Well there are several approaches that you can take to implement something like this; but all require that you do custom development work.
You could define your packages as simple products with attributes for each of the specific package options and use that to filter each package from the others, now you would need to create a new module that adds a route on the frontend that is going to be your multistep form that will get all the information once you have all the information you can get a collection of all the products(packages) that match those attributes.
Now the deal there is if that price changes depending on the options selected if that's the case then you might need configurable products or something custom to change the price of each package.
It's really hard to say without real specifications of what your client needs, but if the question is if it's possible with Magento then the answer is yes it all depends on your level of skill :)
Kind Regards
因此,我最终选择 Magento 作为产品基础,并使用一些自定义代码对其进行扩展(自从我在 LAMP 环境中开发以来已经有一段时间了!)
我创建了一个静态块,用作工作流程的根。工作流程中有 8 个步骤,按有序列表列出。每个项目旁边都有两个自定义 Magento 小部件,它们是 a) 当您完成工作流程阶段时显示的一个小刻度图像和 b) 当您到达该阶段时显示的链接,单击该链接将带您进入适当的目录页面(例如:选择住宿、租车、确认购物车等)。
我禁用了正常的顶部目录导航,以鼓励用户保持在工作流程中。也就是说,将鼠标悬停在“假期计划器”上查看更多目录详细信息已被禁用(尽管您可以导航到正确的网址,如果您知道它们,或者足够聪明,可以使用页面底部的 SEO 链接! )。
您假期中的所有内容都会添加为购物车产品(这具有积极的副作用,如果您完成了假期,Magento 会记住您的假期)。
帮助程序类中有一个大型状态机,用于确定您所处的工作流程的哪个阶段。这会检查您的购物车,以查看是否添加了具有特定 sku 或特定属性集的产品。
我还覆盖了许多 URL 和重定向(例如:添加产品后),将用户返回到根假期计划页面。这会添加到工作流程中,因为您执行的几乎每个操作或添加的产品都会将您弹回该工作流程页面(该页面始终告诉您下一步是什么)。
So I ended up going with Magento as a product base and extending it using some custom code (been a while since I've developed in a LAMP environment!)
I created a static block which is used as the root of the workflow. There are 8 steps in the workflow which get listed in an ordered list. Each item has two custom Magento widgets next to it, which are a) a little tick image displayed when you've completed the workflow stage and b) a link which displays when you're up to that stage, clicking the link takes you to an appropriate catalog page (eg: choose accommodation, hire car, confirm shopping cart, etc).
I disabled the normal top catalog navigation to encourage users to keep within the workflow. That is, the mouse over to see more catalog detail of the "holiday planner" is disabled (although you can just navigate to the correct urls if you know them, or are smart enough to use the SEO link at the bottom of the page!).
Everything in your holiday is added as cart products (which has the positive side effect of Magento will remember your holiday if you get part way through it).
There is a big state machine in a helper class to determine what stage of the workflow you're up to. This checks your cart to see if products with particular sku's or from a particular attribute set are added.
I also overrode many URLs and redirects (eg: after you add a product) to send the user back to the root holiday planner page. This added to the workflow as almost every action you did or product you add bounces you back to that workflow page (which always tells you what the next step is).