Success text showing only on processing orders
This commit is contained in:
@@ -14,8 +14,6 @@ class WC_Aluxpay_Payment_Gateway extends WC_Payment_Gateway {
|
||||
*/
|
||||
protected function get_generic_notice_html(): string {
|
||||
// Keep inline styles for email clients; translate strings
|
||||
$html .= '<p><strong>' . esc_html__( 'Thank you for your payment!', 'aluxpay-payment-gateway' ) . '</strong> ';
|
||||
$html .= esc_html__( 'Your order has been successfully processed, and a confirmation email has been sent from our webstore.', 'aluxpay-payment-gateway' ) . '</p>';
|
||||
|
||||
$html .= '<h5>' . esc_html__( 'Important Note:', 'aluxpay-payment-gateway' ) . '</h5>';
|
||||
$html .= '<p>' . esc_html__( "Because of the nature of our business and how our website integrates with PayPal, you’ll also receive a PayPal payment confirmation email. That email will display a generic product name instead of the specific item(s) you purchased.", 'aluxpay-payment-gateway' ) . '</p>';
|
||||
@@ -38,8 +36,6 @@ class WC_Aluxpay_Payment_Gateway extends WC_Payment_Gateway {
|
||||
*/
|
||||
protected function get_generic_notice_plain(): string {
|
||||
$lines = array(
|
||||
__( 'Thank you for your payment! Your order has been successfully processed, and a confirmation email has been sent from our webstore.', 'aluxpay-payment-gateway' ),
|
||||
'',
|
||||
__( 'Important Note:', 'aluxpay-payment-gateway' ),
|
||||
__( "Because of the nature of our business and how our website integrates with PayPal, you’ll also receive a PayPal payment confirmation email. That email will display a generic product name instead of the specific item(s) you purchased.", 'aluxpay-payment-gateway' ),
|
||||
__( 'Rest assured — your order is fully confirmed, and the webstore confirmation email contains the correct details of your purchase.', 'aluxpay-payment-gateway' ),
|
||||
@@ -359,7 +355,7 @@ class WC_Aluxpay_Payment_Gateway extends WC_Payment_Gateway {
|
||||
if ( $order->get_payment_method() !== $this->id ) return;
|
||||
|
||||
// Only show for completed/processing orders
|
||||
if ( ! in_array( $order->get_status(), array( 'processing', 'completed' ) ) ) return;
|
||||
if ( ! in_array( $order->get_status(), array( 'processing' ) ) ) return;
|
||||
|
||||
// Pick the right format for the email renderer
|
||||
if ( $plain_text ) {
|
||||
|
||||
Reference in New Issue
Block a user