Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update class-omise-payment-konbini.php #360

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bluantinoo
Copy link

Add payment link to konbini emails only if order is not paid yet

1. Objective

Konbini Payment link is added in every email notification, this is confusing, both for admins that do not know what they are clicking and for customers that receive notification after successful payment.

This section will be used in the release notes.

2. Description of change

check if the order is still unpaid before adding the Konbini payment link in the email with the woocommerce_email_after_order_table action

Add payment link to konbini emails only if order is not paid yet
@aashishgurung
Copy link
Contributor

aashishgurung commented Mar 29, 2023

@bluantinoo Thank you for submitting your pull request. We have received it and We will review it as soon as possible. We appreciate your contribution to our project.

@bluantinoo
Copy link
Author

@aashishgurung thank you for the quick reaction!
I made a very small edit, it's more of a suggestion...
I think there should be some sort of control on where to add the payment link in emails.

I would love 2 options for the single email setting:
a) add a payment link to this email (yes or no);
b) where would you like to add the link? (choosing the position between available WC email template's hooks);

But generally, I think the payment link on emails sent after a successful transaction makes no sense.

Furthermore, the link sent in admin emails is broken.

@ajzkk ajzkk removed their request for review August 30, 2023 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants