Magento 可配置产品 ->浮动/滑动车
我们有一个电脑配置器,实际上它不是一个“配置产品”,而是一个具有“自定义选项”的产品。
我们希望有一个“购物车”,显示所选属性以及随着页面向下移动而滑动的价格,直到用户查看完所有选项。
有什么想法吗?
我很确定没有现成的模块。
感谢您的帮助
we have a pc configurator, actually its not a "configured product" but a product with "custom options".
we want to have a "cartbox" that shows the selected attributes plus price that slides with the movement of the page down untill the user has viewed all options.
any ideas?
i am pretty sure that there is no ready module.
thanx for any help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是产品页面模板的主题问题,但是为了更好地衡量,还加入了一些前端编程...
您必须了解一点关于 Prototype 的知识才能解决这个“纯粹在前端 javascript”的问题,但我认为这是可以做到的。
我假设您有一个样式为“position:fixed”的“div”,这样无论您如何向下滚动页面,它始终保持在屏幕的右侧。然后在这个 div 中有一个表(或更多 div),总结了您的所有选项。所有这些表选项都用 id 标记。
在自定义产品选项的模板代码中,您可以使用一些 php 代码来检测“自定义 PC”的属性集并编写一些额外的前端 JavaScript。然后,它能够侦听自定义选项的更改并更新固定位置 div 中的额外摘要信息。
除非您真的很擅长原型,否则您可能需要给自己 2-3 天的时间来将代码放入其中,同样的时间用于测试和放入适量的产品。
This is a theming question for the product page template, but with some frontend programming thrown in for good measure...
You have to know a little bit about Prototype to tackle this 'purely in frontend javascript' but I think it can be done.
I am assuming you have a 'div' that is styled up to be 'position: fixed' so that it always stays to the right of the screen, no matter how you scroll down the page. Then in this div is a table (or more divs) that summarises all of your options. All of those table options are marked up with ids.
In your template code for the custom product options you can have some php code to detect the attribute-set for 'custom pc' and write out some extra front-end javascript. This is then able to listen to the changes to the custom options and update your extra summary information in the fixed position div.
Unless you are really good at Prototype you may want to give yourself 2-3 days to get the code in there, the same again for testing and putting in a modest amount of products.