【问题标题】:WooCommerce Student Discount issueWooCommerce 学生折扣问题
【发布时间】:2020-04-25 11:13:23
【问题描述】:

如果电子邮件是 .ac.uk,我会尝试在 Wordpress 上为 Woocommerce 提供折扣。

我在 answer 上找到了解决方案

我尝试使用上述解决方案,但它给出了这个错误:

语法错误,意外')'

在线:

$mail_tld = $domain_part[1] . '.' . $domain_part[2]);

任何想法如何解决?

【问题讨论】:

  • 谢谢,函数现在接受它,但是,现在在购物车上抛出一个错误。
  • 完整错误粘贴:pastebin.com/dYDCwmhn

标签: php wordpress woocommerce discount


【解决方案1】:
$mail_tld = ($domain_part[1] . '.' . $domain_part[2]);

在这一行添加'('。

【讨论】:

    猜你喜欢
    • 2016-10-07
    • 2018-02-26
    • 2014-02-12
    • 1970-01-01
    • 1970-01-01
    • 2018-03-08
    • 1970-01-01
    • 2023-03-31
    • 1970-01-01
    相关资源
    最近更新 更多