Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/woocomme.../includes/shortcod...
File: class-wc-shortcode-checkout.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Checkout Shortcode
[2] Fix | Delete
*
[3] Fix | Delete
* Used on the checkout page, the checkout shortcode displays the checkout process.
[4] Fix | Delete
*
[5] Fix | Delete
* @package WooCommerce\Shortcodes\Checkout
[6] Fix | Delete
* @version 2.0.0
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
defined( 'ABSPATH' ) || exit;
[10] Fix | Delete
[11] Fix | Delete
use Automattic\WooCommerce\Enums\OrderStatus;
[12] Fix | Delete
use Automattic\WooCommerce\Internal\Utilities\Users;
[13] Fix | Delete
[14] Fix | Delete
/**
[15] Fix | Delete
* Shortcode checkout class.
[16] Fix | Delete
*/
[17] Fix | Delete
class WC_Shortcode_Checkout {
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* Get the shortcode content.
[21] Fix | Delete
*
[22] Fix | Delete
* @param array $atts Shortcode attributes.
[23] Fix | Delete
* @return string
[24] Fix | Delete
*/
[25] Fix | Delete
public static function get( $atts ) {
[26] Fix | Delete
return WC_Shortcodes::shortcode_wrapper( array( __CLASS__, 'output' ), $atts );
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
/**
[30] Fix | Delete
* Output the shortcode.
[31] Fix | Delete
*
[32] Fix | Delete
* @param array $atts Shortcode attributes.
[33] Fix | Delete
*/
[34] Fix | Delete
public static function output( $atts ) {
[35] Fix | Delete
global $wp;
[36] Fix | Delete
[37] Fix | Delete
// Check cart class is loaded or abort.
[38] Fix | Delete
if ( is_null( WC()->cart ) ) {
[39] Fix | Delete
return;
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
// Backwards compatibility with old pay and thanks link arguments.
[43] Fix | Delete
if ( isset( $_GET['order'] ) && isset( $_GET['key'] ) ) { // WPCS: input var ok, CSRF ok.
[44] Fix | Delete
wc_deprecated_argument( __CLASS__ . '->' . __FUNCTION__, '2.1', '"order" is no longer used to pass an order ID. Use the order-pay or order-received endpoint instead.' );
[45] Fix | Delete
[46] Fix | Delete
// Get the order to work out what we are showing.
[47] Fix | Delete
$order_id = absint( $_GET['order'] ); // WPCS: input var ok.
[48] Fix | Delete
$order = wc_get_order( $order_id );
[49] Fix | Delete
[50] Fix | Delete
if ( $order && $order->has_status( OrderStatus::PENDING ) ) {
[51] Fix | Delete
$wp->query_vars['order-pay'] = absint( $_GET['order'] ); // WPCS: input var ok.
[52] Fix | Delete
} else {
[53] Fix | Delete
$wp->query_vars['order-received'] = absint( $_GET['order'] ); // WPCS: input var ok.
[54] Fix | Delete
}
[55] Fix | Delete
}
[56] Fix | Delete
[57] Fix | Delete
// Handle checkout actions.
[58] Fix | Delete
if ( ! empty( $wp->query_vars['order-pay'] ) ) {
[59] Fix | Delete
[60] Fix | Delete
self::order_pay( $wp->query_vars['order-pay'] );
[61] Fix | Delete
[62] Fix | Delete
} elseif ( isset( $wp->query_vars['order-received'] ) ) {
[63] Fix | Delete
[64] Fix | Delete
self::order_received( $wp->query_vars['order-received'] );
[65] Fix | Delete
[66] Fix | Delete
} else {
[67] Fix | Delete
[68] Fix | Delete
self::checkout();
[69] Fix | Delete
[70] Fix | Delete
}
[71] Fix | Delete
}
[72] Fix | Delete
[73] Fix | Delete
/**
[74] Fix | Delete
* Show the pay page.
[75] Fix | Delete
*
[76] Fix | Delete
* @throws Exception When validate fails.
[77] Fix | Delete
* @param int $order_id Order ID.
[78] Fix | Delete
*/
[79] Fix | Delete
private static function order_pay( $order_id ) {
[80] Fix | Delete
[81] Fix | Delete
do_action( 'before_woocommerce_pay' );
[82] Fix | Delete
[83] Fix | Delete
$order_id = absint( $order_id );
[84] Fix | Delete
[85] Fix | Delete
// Pay for existing order.
[86] Fix | Delete
if ( isset( $_GET['pay_for_order'], $_GET['key'] ) && $order_id ) { // WPCS: input var ok, CSRF ok.
[87] Fix | Delete
try {
[88] Fix | Delete
$order_key = isset( $_GET['key'] ) ? wc_clean( wp_unslash( $_GET['key'] ) ) : ''; // WPCS: input var ok, CSRF ok.
[89] Fix | Delete
$order = wc_get_order( $order_id );
[90] Fix | Delete
[91] Fix | Delete
// Order or payment link is invalid.
[92] Fix | Delete
if ( ! $order || $order->get_id() !== $order_id || ! hash_equals( $order->get_order_key(), $order_key ) ) {
[93] Fix | Delete
throw new Exception( __( 'Sorry, this order is invalid and cannot be paid for.', 'woocommerce' ) );
[94] Fix | Delete
}
[95] Fix | Delete
[96] Fix | Delete
// Logged out customer does not have permission to pay for this order.
[97] Fix | Delete
if ( ! current_user_can( 'pay_for_order', $order_id ) && ! is_user_logged_in() ) {
[98] Fix | Delete
wc_print_notice( esc_html__( 'Please log in to your account below to continue to the payment form.', 'woocommerce' ), 'notice' );
[99] Fix | Delete
woocommerce_login_form(
[100] Fix | Delete
array(
[101] Fix | Delete
'redirect' => $order->get_checkout_payment_url(),
[102] Fix | Delete
)
[103] Fix | Delete
);
[104] Fix | Delete
return;
[105] Fix | Delete
}
[106] Fix | Delete
[107] Fix | Delete
// Add notice if logged in customer is trying to pay for guest order.
[108] Fix | Delete
if ( ! $order->get_user_id() && is_user_logged_in() ) {
[109] Fix | Delete
// If order has does not have same billing email then current logged in user then show warning.
[110] Fix | Delete
if ( $order->get_billing_email() !== wp_get_current_user()->user_email ) {
[111] Fix | Delete
wc_print_notice( __( 'You are paying for a guest order. Please continue with payment only if you recognize this order.', 'woocommerce' ), 'error' );
[112] Fix | Delete
}
[113] Fix | Delete
}
[114] Fix | Delete
[115] Fix | Delete
// Logged in customer trying to pay for someone else's order.
[116] Fix | Delete
if ( ! current_user_can( 'pay_for_order', $order_id ) ) {
[117] Fix | Delete
throw new Exception( __( 'This order cannot be paid for. Please contact us if you need assistance.', 'woocommerce' ) );
[118] Fix | Delete
}
[119] Fix | Delete
[120] Fix | Delete
// Does not need payment.
[121] Fix | Delete
if ( ! $order->needs_payment() ) {
[122] Fix | Delete
/* translators: %s: order status */
[123] Fix | Delete
throw new Exception( sprintf( __( 'This order&rsquo;s status is &ldquo;%s&rdquo;&mdash;it cannot be paid for. Please contact us if you need assistance.', 'woocommerce' ), wc_get_order_status_name( $order->get_status() ) ) );
[124] Fix | Delete
}
[125] Fix | Delete
[126] Fix | Delete
// Ensure order items are still stocked if paying for a failed order. Pending orders do not need this check because stock is held.
[127] Fix | Delete
if ( ! $order->has_status( wc_get_is_pending_statuses() ) ) {
[128] Fix | Delete
$quantities = array();
[129] Fix | Delete
[130] Fix | Delete
foreach ( $order->get_items() as $item_key => $item ) {
[131] Fix | Delete
if ( $item && is_callable( array( $item, 'get_product' ) ) ) {
[132] Fix | Delete
$product = $item->get_product();
[133] Fix | Delete
[134] Fix | Delete
if ( ! $product ) {
[135] Fix | Delete
continue;
[136] Fix | Delete
}
[137] Fix | Delete
[138] Fix | Delete
$quantities[ $product->get_stock_managed_by_id() ] = isset( $quantities[ $product->get_stock_managed_by_id() ] ) ? $quantities[ $product->get_stock_managed_by_id() ] + $item->get_quantity() : $item->get_quantity();
[139] Fix | Delete
}
[140] Fix | Delete
}
[141] Fix | Delete
[142] Fix | Delete
// Stock levels may already have been adjusted for this order (in which case we don't need to worry about checking for low stock).
[143] Fix | Delete
if ( ! $order->get_data_store()->get_stock_reduced( $order->get_id() ) ) {
[144] Fix | Delete
foreach ( $order->get_items() as $item_key => $item ) {
[145] Fix | Delete
if ( $item && is_callable( array( $item, 'get_product' ) ) ) {
[146] Fix | Delete
$product = $item->get_product();
[147] Fix | Delete
[148] Fix | Delete
if ( ! $product ) {
[149] Fix | Delete
continue;
[150] Fix | Delete
}
[151] Fix | Delete
[152] Fix | Delete
if ( ! apply_filters( 'woocommerce_pay_order_product_in_stock', $product->is_in_stock(), $product, $order ) ) {
[153] Fix | Delete
/* translators: %s: product name */
[154] Fix | Delete
throw new Exception( sprintf( __( 'Sorry, "%s" is no longer in stock so this order cannot be paid for. We apologize for any inconvenience caused.', 'woocommerce' ), $product->get_name() ) );
[155] Fix | Delete
}
[156] Fix | Delete
[157] Fix | Delete
// We only need to check products managing stock, with a limited stock qty.
[158] Fix | Delete
if ( ! $product->managing_stock() || $product->backorders_allowed() ) {
[159] Fix | Delete
continue;
[160] Fix | Delete
}
[161] Fix | Delete
[162] Fix | Delete
// Check stock based on all items in the cart and consider any held stock within pending orders.
[163] Fix | Delete
$held_stock = wc_get_held_stock_quantity( $product, $order->get_id() );
[164] Fix | Delete
$required_stock = $quantities[ $product->get_stock_managed_by_id() ];
[165] Fix | Delete
[166] Fix | Delete
if ( ! apply_filters( 'woocommerce_pay_order_product_has_enough_stock', ( $product->get_stock_quantity() >= ( $held_stock + $required_stock ) ), $product, $order ) ) {
[167] Fix | Delete
/* translators: 1: product name 2: quantity in stock */
[168] Fix | Delete
throw new Exception( sprintf( __( 'Sorry, we do not have enough "%1$s" in stock to fulfill your order (%2$s available). We apologize for any inconvenience caused.', 'woocommerce' ), $product->get_name(), wc_format_stock_quantity_for_display( $product->get_stock_quantity() - $held_stock, $product ) ) );
[169] Fix | Delete
}
[170] Fix | Delete
}
[171] Fix | Delete
}
[172] Fix | Delete
}
[173] Fix | Delete
}
[174] Fix | Delete
[175] Fix | Delete
// If we cannot match the order with the current user, ask that they verify their email address.
[176] Fix | Delete
if ( self::guest_should_verify_email( $order, 'order-pay' ) ) {
[177] Fix | Delete
wc_get_template(
[178] Fix | Delete
'checkout/form-verify-email.php',
[179] Fix | Delete
array(
[180] Fix | Delete
'failed_submission' => ! empty( $_POST['email'] ), // phpcs:ignore WordPress.Security.NonceVerification.Missing
[181] Fix | Delete
'verify_url' => $order->get_checkout_payment_url(),
[182] Fix | Delete
)
[183] Fix | Delete
);
[184] Fix | Delete
return;
[185] Fix | Delete
}
[186] Fix | Delete
[187] Fix | Delete
WC()->customer->set_props(
[188] Fix | Delete
array(
[189] Fix | Delete
'billing_country' => $order->get_billing_country() ? $order->get_billing_country() : null,
[190] Fix | Delete
'billing_state' => $order->get_billing_state() ? $order->get_billing_state() : null,
[191] Fix | Delete
'billing_postcode' => $order->get_billing_postcode() ? $order->get_billing_postcode() : null,
[192] Fix | Delete
)
[193] Fix | Delete
);
[194] Fix | Delete
WC()->customer->save();
[195] Fix | Delete
[196] Fix | Delete
$available_gateways = WC()->payment_gateways()->get_available_payment_gateways();
[197] Fix | Delete
WC()->payment_gateways()->set_current_gateway( $available_gateways );
[198] Fix | Delete
[199] Fix | Delete
/**
[200] Fix | Delete
* Allows the text of the submit button on the Pay for Order page to be changed.
[201] Fix | Delete
*
[202] Fix | Delete
* @param string $text The text of the button.
[203] Fix | Delete
*
[204] Fix | Delete
* @since 3.0.2
[205] Fix | Delete
*/
[206] Fix | Delete
$order_button_text = apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'woocommerce' ) );
[207] Fix | Delete
[208] Fix | Delete
/**
[209] Fix | Delete
* Triggered right before the Pay for Order form, after validation of the order and customer.
[210] Fix | Delete
*
[211] Fix | Delete
* @param WC_Order $order The order that is being paid for.
[212] Fix | Delete
* @param string $order_button_text The text for the submit button.
[213] Fix | Delete
* @param array $available_gateways All available gateways.
[214] Fix | Delete
*
[215] Fix | Delete
* @since 6.6
[216] Fix | Delete
*/
[217] Fix | Delete
do_action( 'before_woocommerce_pay_form', $order, $order_button_text, $available_gateways );
[218] Fix | Delete
[219] Fix | Delete
wc_get_template(
[220] Fix | Delete
'checkout/form-pay.php',
[221] Fix | Delete
array(
[222] Fix | Delete
'order' => $order,
[223] Fix | Delete
'available_gateways' => $available_gateways,
[224] Fix | Delete
'order_button_text' => $order_button_text,
[225] Fix | Delete
)
[226] Fix | Delete
);
[227] Fix | Delete
[228] Fix | Delete
} catch ( Exception $e ) {
[229] Fix | Delete
wc_print_notice( $e->getMessage(), 'error' );
[230] Fix | Delete
}
[231] Fix | Delete
} elseif ( $order_id ) {
[232] Fix | Delete
[233] Fix | Delete
// Pay for order after checkout step.
[234] Fix | Delete
$order_key = isset( $_GET['key'] ) ? wc_clean( wp_unslash( $_GET['key'] ) ) : ''; // WPCS: input var ok, CSRF ok.
[235] Fix | Delete
$order = wc_get_order( $order_id );
[236] Fix | Delete
[237] Fix | Delete
if ( $order && $order->get_id() === $order_id && hash_equals( $order->get_order_key(), $order_key ) ) {
[238] Fix | Delete
[239] Fix | Delete
if ( $order->needs_payment() ) {
[240] Fix | Delete
[241] Fix | Delete
wc_get_template( 'checkout/order-receipt.php', array( 'order' => $order ) );
[242] Fix | Delete
[243] Fix | Delete
} else {
[244] Fix | Delete
/* translators: %s: order status */
[245] Fix | Delete
wc_print_notice( sprintf( __( 'This order&rsquo;s status is &ldquo;%s&rdquo;&mdash;it cannot be paid for. Please contact us if you need assistance.', 'woocommerce' ), wc_get_order_status_name( $order->get_status() ) ), 'error' );
[246] Fix | Delete
}
[247] Fix | Delete
} else {
[248] Fix | Delete
wc_print_notice( __( 'Sorry, this order is invalid and cannot be paid for.', 'woocommerce' ), 'error' );
[249] Fix | Delete
}
[250] Fix | Delete
} else {
[251] Fix | Delete
wc_print_notice( __( 'Invalid order.', 'woocommerce' ), 'error' );
[252] Fix | Delete
}
[253] Fix | Delete
[254] Fix | Delete
do_action( 'after_woocommerce_pay' );
[255] Fix | Delete
}
[256] Fix | Delete
[257] Fix | Delete
/**
[258] Fix | Delete
* Show the thanks page.
[259] Fix | Delete
*
[260] Fix | Delete
* @param int $order_id Order ID.
[261] Fix | Delete
*/
[262] Fix | Delete
private static function order_received( $order_id = 0 ) {
[263] Fix | Delete
$order = false;
[264] Fix | Delete
[265] Fix | Delete
// Get the order.
[266] Fix | Delete
$order_id = apply_filters( 'woocommerce_thankyou_order_id', absint( $order_id ) );
[267] Fix | Delete
$order_key = apply_filters( 'woocommerce_thankyou_order_key', empty( $_GET['key'] ) ? '' : wc_clean( wp_unslash( $_GET['key'] ) ) ); // WPCS: input var ok, CSRF ok.
[268] Fix | Delete
[269] Fix | Delete
if ( $order_id > 0 ) {
[270] Fix | Delete
$order = wc_get_order( $order_id );
[271] Fix | Delete
[272] Fix | Delete
if ( ( ! $order instanceof WC_Order ) || ! hash_equals( $order->get_order_key(), $order_key ) ) {
[273] Fix | Delete
$order = false;
[274] Fix | Delete
}
[275] Fix | Delete
}
[276] Fix | Delete
[277] Fix | Delete
// Empty awaiting payment session.
[278] Fix | Delete
unset( WC()->session->order_awaiting_payment );
[279] Fix | Delete
[280] Fix | Delete
// In case order is created from admin, but paid by the actual customer, store the ip address of the payer
[281] Fix | Delete
// when they visit the payment confirmation page.
[282] Fix | Delete
if ( $order && $order->is_created_via( 'admin' ) ) {
[283] Fix | Delete
$order->set_customer_ip_address( WC_Geolocation::get_ip_address() );
[284] Fix | Delete
$order->save();
[285] Fix | Delete
}
[286] Fix | Delete
[287] Fix | Delete
// Empty current cart.
[288] Fix | Delete
wc_empty_cart();
[289] Fix | Delete
[290] Fix | Delete
// If the specified order ID was invalid, we still render the default order received page (which will simply
[291] Fix | Delete
// state that the order was received, but will not output any other details: this makes it harder to probe for
[292] Fix | Delete
// valid order IDs than if we state that the order ID was not recognized).
[293] Fix | Delete
if ( ! $order ) {
[294] Fix | Delete
wc_get_template( 'checkout/thankyou.php', array( 'order' => false ) );
[295] Fix | Delete
return;
[296] Fix | Delete
}
[297] Fix | Delete
[298] Fix | Delete
/**
[299] Fix | Delete
* Indicates if known (non-guest) shoppers need to be logged in before we let
[300] Fix | Delete
* them access the order received page.
[301] Fix | Delete
*
[302] Fix | Delete
* @param bool $verify_known_shoppers If verification is required.
[303] Fix | Delete
*
[304] Fix | Delete
* @since 8.4.0
[305] Fix | Delete
*/
[306] Fix | Delete
$verify_known_shoppers = apply_filters( 'woocommerce_order_received_verify_known_shoppers', true );
[307] Fix | Delete
$order_customer_id = $order->get_customer_id();
[308] Fix | Delete
[309] Fix | Delete
// For non-guest orders, require the user to be logged in before showing this page.
[310] Fix | Delete
if ( $verify_known_shoppers && $order_customer_id && get_current_user_id() !== $order_customer_id ) {
[311] Fix | Delete
wc_get_template( 'checkout/order-received.php', array( 'order' => false ) );
[312] Fix | Delete
wc_print_notice( esc_html__( 'Please log in to your account to view this order.', 'woocommerce' ), 'notice' );
[313] Fix | Delete
woocommerce_login_form( array( 'redirect' => $order->get_checkout_order_received_url() ) );
[314] Fix | Delete
return;
[315] Fix | Delete
}
[316] Fix | Delete
[317] Fix | Delete
// For guest orders, request they verify their email address (unless we can identify them via the active user session).
[318] Fix | Delete
if ( self::guest_should_verify_email( $order, 'order-received' ) ) {
[319] Fix | Delete
wc_get_template( 'checkout/order-received.php', array( 'order' => false ) );
[320] Fix | Delete
wc_get_template(
[321] Fix | Delete
'checkout/form-verify-email.php',
[322] Fix | Delete
array(
[323] Fix | Delete
'failed_submission' => ! empty( $_POST['email'] ), // phpcs:ignore WordPress.Security.NonceVerification.Missing
[324] Fix | Delete
'verify_url' => $order->get_checkout_order_received_url(),
[325] Fix | Delete
)
[326] Fix | Delete
);
[327] Fix | Delete
return;
[328] Fix | Delete
}
[329] Fix | Delete
[330] Fix | Delete
// Otherwise, display the thank you (order received) page.
[331] Fix | Delete
wc_get_template( 'checkout/thankyou.php', array( 'order' => $order ) );
[332] Fix | Delete
}
[333] Fix | Delete
[334] Fix | Delete
/**
[335] Fix | Delete
* Show the checkout.
[336] Fix | Delete
*/
[337] Fix | Delete
private static function checkout() {
[338] Fix | Delete
// Show non-cart errors.
[339] Fix | Delete
do_action( 'woocommerce_before_checkout_form_cart_notices' );
[340] Fix | Delete
[341] Fix | Delete
// Check cart has contents.
[342] Fix | Delete
if ( WC()->cart->is_empty() && ! is_customize_preview() && apply_filters( 'woocommerce_checkout_redirect_empty_cart', true ) ) {
[343] Fix | Delete
return;
[344] Fix | Delete
}
[345] Fix | Delete
[346] Fix | Delete
// Check cart contents for errors.
[347] Fix | Delete
do_action( 'woocommerce_check_cart_items' );
[348] Fix | Delete
[349] Fix | Delete
// Calc totals.
[350] Fix | Delete
WC()->cart->calculate_totals();
[351] Fix | Delete
[352] Fix | Delete
// Get checkout object.
[353] Fix | Delete
$checkout = WC()->checkout();
[354] Fix | Delete
[355] Fix | Delete
if ( empty( $_POST ) && wc_notice_count( 'error' ) > 0 ) { // WPCS: input var ok, CSRF ok.
[356] Fix | Delete
[357] Fix | Delete
wc_get_template( 'checkout/cart-errors.php', array( 'checkout' => $checkout ) );
[358] Fix | Delete
wc_clear_notices();
[359] Fix | Delete
[360] Fix | Delete
} else {
[361] Fix | Delete
[362] Fix | Delete
$non_js_checkout = ! empty( $_POST['woocommerce_checkout_update_totals'] ); // WPCS: input var ok, CSRF ok.
[363] Fix | Delete
[364] Fix | Delete
if ( wc_notice_count( 'error' ) === 0 && $non_js_checkout ) {
[365] Fix | Delete
wc_add_notice( __( 'The order totals have been updated. Please confirm your order by pressing the "Place order" button at the bottom of the page.', 'woocommerce' ) );
[366] Fix | Delete
}
[367] Fix | Delete
[368] Fix | Delete
wc_get_template( 'checkout/form-checkout.php', array( 'checkout' => $checkout ) );
[369] Fix | Delete
[370] Fix | Delete
}
[371] Fix | Delete
}
[372] Fix | Delete
[373] Fix | Delete
/**
[374] Fix | Delete
* Tries to determine if the user's email address should be verified before rendering either the 'order received' or
[375] Fix | Delete
* 'order pay' pages. This should only be applied to guest orders.
[376] Fix | Delete
*
[377] Fix | Delete
* @param WC_Order $order The order for which a need for email verification is being determined.
[378] Fix | Delete
* @param string $context The context in which email verification is being tested.
[379] Fix | Delete
*
[380] Fix | Delete
* @return bool
[381] Fix | Delete
*/
[382] Fix | Delete
private static function guest_should_verify_email( WC_Order $order, string $context ): bool {
[383] Fix | Delete
// If we cannot match the order with the current user, ask that they verify their email address.
[384] Fix | Delete
$nonce_is_valid = wp_verify_nonce( filter_input( INPUT_POST, 'check_submission' ), 'wc_verify_email' );
[385] Fix | Delete
$supplied_email = null;
[386] Fix | Delete
$order_id = $order->get_id();
[387] Fix | Delete
[388] Fix | Delete
if ( $nonce_is_valid ) {
[389] Fix | Delete
$supplied_email = sanitize_email( wp_unslash( filter_input( INPUT_POST, 'email' ) ) );
[390] Fix | Delete
}
[391] Fix | Delete
[392] Fix | Delete
return Users::should_user_verify_order_email( $order_id, $supplied_email, $context );
[393] Fix | Delete
}
[394] Fix | Delete
}
[395] Fix | Delete
[396] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function