如何在单页结帐“订单审核”中显示自定义属性(选项)阻止和订单确认电子邮件?
是否可以在结帐期间的订单审核中显示“颜色”等自定义选项?关于确认电子邮件的同样问题。 我查看了购物车项目渲染器的模板,并且在产品选项上有一个 foreach 循环...但是我如何在其中放置自定义选项?
目前我只是再次加载产品并手动提取模板中的属性......但它是 a) 不可携带 b)必须在我想要显示自定义选项的所有模板中完成
是否有正确的方法?
Is it possible to display custom option like 'color' for instance in the order review during checkout? Same question about confirmation email.
I've looked at the template for the cart item renderer and there is a foreach loop over the product options... But how do i put a custom option in there?
At the moment i just load the product again and manually pull out the attribute in the template... But it is
a) not portable
b) has to be done in all of the templates where i want to display custom option
Is there a correct way of doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该产品不包含所有属性。您可以在 config.xml 文件中定义在结帐期间要加载的属性,而不是通过新查询加载属性,如下所示:
The product doesn't contain all of the attributes. Instead of the load attributes by new query, you can define in config.xml file what attributes you want to load during the checkout like below :