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

Prevent email from sending on pending payment for rvvup orders created in magento admin #165

Merged
merged 8 commits into from
Aug 29, 2024

Conversation

andrii-onufriichuk
Copy link
Contributor

No description provided.

@andrii-onufriichuk andrii-onufriichuk self-assigned this Aug 28, 2024
@andrii-onufriichuk andrii-onufriichuk changed the title Feature/email notifications for backend orders Disable email notifications for Rvvup backend orders Aug 28, 2024
@@ -23,16 +23,35 @@ $url = $block->getUrl('rvvup/availability/index');
Will create and share in order email
</label>
</div>
<script>
require(['jquery', 'Rvvup_Payments/js/available-payment'], function($, availablePayment) {
<?php if ($secureRenderer): ?>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Secure renderer is available for >2.4.0, so we can don't need to duplicate the logic.

Available after placing order
</label>
</div>
<script>
require(['jquery', 'Rvvup_Payments/js/available-payment'], function($, availablePayment) {
<?php if ($secureRenderer): ?>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Secure renderer is available for >2.4.0, so we can don't need to duplicate the logic.

Comment on lines 11 to 14
var element = ($('label[for="send_confirmation"]'));
if (element && element[0]) {
element[0].innerText = 'Order Confirmation email is always sent for Rvvup payment methods';
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var element = ($('label[for="send_confirmation"]'));
if (element && element[0]) {
element[0].innerText = 'Order Confirmation email is always sent for Rvvup payment methods';
}
$('label[for="send_confirmation"]').first().text("Order Confirmation email is always sent for Rvvup payment methods");

@aashwin-rvvup aashwin-rvvup changed the title Disable email notifications for Rvvup backend orders Prevent email from sending on pending_payment for rvvup orders created in magento admin Aug 29, 2024
@aashwin-rvvup aashwin-rvvup changed the title Prevent email from sending on pending_payment for rvvup orders created in magento admin Prevent email from sending on pending payment for rvvup orders created in magento admin Aug 29, 2024
@aashwin-rvvup aashwin-rvvup merged commit 5da87a8 into main Aug 29, 2024
7 checks passed
@aashwin-rvvup aashwin-rvvup deleted the feature/email-notifications-for-backend-orders branch August 29, 2024 13:49
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.

2 participants