简体   繁体   English

如何为Magento中的所有客户制作全球通讯录?

[英]How to make a global address book for all customers in Magento?

I'm investigating if there is a possibility to pre-populate the address book with some fixed shipping addresses for all customer in my Magento 1.6.1 Community shop? 我正在调查是否可以在Magento 1.6.1社区商店中为所有客户预先填充一些固定的送货地址的通讯录? So the address select box in the onstepcheckout gets populated for all customers? 那么,onstepcheckout中的地址选择框是否已为所有客户填充?

Of course it is possible but I don't know where to start? 当然可以,但是我不知道从哪里开始? Any links to resources or perhaps extensions that does this would be very much appreciated. 到资源或可能这样做的扩展的任何链接将不胜感激。

Many thanks, Ismail 非常感谢,Ismail

This would have to be done by creating a module. 这必须通过创建模块来完成。 Whether something like this already exists, I don't know, but I doubt it. 我不知道这样的事情是否已经存在,但我对此表示怀疑。

All you'd really have to do is override the shipping template, or possibly the block that's generating the select html. 您真正要做的就是覆盖运输模板,或者覆盖生成select html的代码块。

I haven't looked into how it's done exactly. 我没有仔细研究它是如何完成的。 If you need more help, I'd be happy to assist, but these are general guidelines of what you'd have to do. 如果您需要更多帮助,我们很乐意为您提供帮助,但这是您必须做的一般性指导。 I'm assuming you already know how to create a module. 我假设您已经知道如何创建模块。

Ok, guys! 好了朋友们!

I made a custom extension for Magento. 我为Magento进行了自定义扩展。 If you want it you can comment below. 如果需要,您可以在下面评论。

Best, Ismail 最好,伊斯梅尔

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM