简体   繁体   English

如何自定义woocommerce“我的帐户”页面?

[英]How can I Customize woocommerce “My Account” page?

I'm making an online shop page with Woocommerce. 我正在使用Woocommerce制作在线商店页面。

When someone go to "My Account" page to see their recent ordering history or shipping address, My Account page always shows useless welcome message page (which named Dashboard) and customers have to click additional buttons to see useful information they need. 当有人进入“我的帐户”页面查看他们最近的订购历史记录或送货地址时,“我的帐户”页面始终显示无用的欢迎消息页面(名为仪表板),客户必须单击其他按钮才能查看所需的有用信息。

Is there some easy ways to customize the "Dashboard" ? 是否有一些简单的方法来自定义“仪表板”? I want to show recent order history and shipping address in there instead of welcome message. 我想在那里显示最近的订单历史记录和送货地址,而不是欢迎消息。

You can find all the Woocommerce "My Account" page templates in the following folder: 您可以在以下文件夹中找到所有Woocommerce“我的帐户”页面模板:

wp-content/plugins/woocommerce/templates/myaccount

If you wish to edit any of it I would suggest you to open your theme directory and add a new folder called "woocommerce", and inside it you can copy any files from the original however keep the same file structure but removing the /templates/ subdirectory. 如果你想编辑其中的任何一个,我建议你打开你的主题目录并添加一个名为“woocommerce”的新文件夹,在其中你可以复制原始的任何文件但是保持相同的文件结构但删除/ templates /子目录。

For more info on editing Woocommerce templates you can read here . 有关编辑Woocommerce模板的更多信息,请参阅此处

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

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