【问题标题】:change base url email notifications in Wordpress/woocommerce在 Wordpress/woocommerce 中更改基本 url 电子邮件通知
【发布时间】:2016-09-13 14:56:56
【问题描述】:

我正在通过网站 (https://www.domain.com) 中的 iframe 加载 woocommerce 商店 (https://domain.webshop.com)。当用户注册时,信息将存储在商店的域中,并通过以下链接向新注册的用户发送一封电子邮件:http://domain.webshop.com/myaccount。我想将此电子邮件中的链接更改为https://www.domain.com/myaccount,该页面包含一个带有http://domain.webshop.com/myaccount 页面的iframe。

提前致谢

【问题讨论】:

    标签: wordpress email templates woocommerce


    【解决方案1】:

    您必须overwrite WooCommerce 新帐户模板。 templates/emails/customer-new-account.php

    你必须用给定的代码替换第 33 行

    <p>
        <?php
            printf(__('You can access your account area to view your orders and change your password here: %s.', 'woocommerce'), make_clickable('https://mydomain.nl/mijn-account/'));
        ?>
    </p>
    

    只需将多行注释替换为您的 https://www.domain.com/myaccount 网址即可。

    【讨论】:

    • Hi Raunak, thnx.. 该文件如下所示: mydomain.nl/mijn-account/'))); ?> 但是,在下订单和注册帐户时,我收到内部服务器错误。有什么想法吗?
    • @Michel:我已经用上述网址更新了我的答案,现在试试这个。
    猜你喜欢
    • 2017-09-17
    • 2018-03-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-01-12
    • 2022-01-03
    • 2021-05-02
    相关资源
    最近更新 更多