0

I am trying to give a discount on Woocommerce on Wordpress if email is .ac.uk.

I found a solution on this answer

I tried to use above solution but it gave this error:

syntax error, unexpected ')'

On line:

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

Any ideas how to resolve?

LoicTheAztec
  • 229,944
  • 23
  • 356
  • 399

1 Answers1

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

add '(' in this line.

AwaisHassan
  • 74
  • 1
  • 10