ISSUE:
Your gift card extension have a bug in email templates. It sends current date even no expiry set for the gift card.
bss_giftcard_pattern_code > expiry_day column is set as NULL because we don't set expiry for the Gift card code. But in email, it passes the current date even though it's null
This seems invalid (unconditional) expires email value passed without checking expiry date is empty or not and hence it's passing current date
public function autoSendMail($code)
'expires' => $this->localeDate->formatDate(
$code->getExpiryDay(),
\IntlDateFormatter::MEDIUM
),
You can see the email send date and expiry is same even though No expiry set for that code.
SOLUTION:
To resolve the issue, please edit the file app/code/Bss/Bss/GiftCard/Model/Email.php as below:
If you need any further assistance, please feel free to contact us. We'd be happy to support you!
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article