Order Overview - Invalid href attribute for Pay Button (PHP Code instead of URL)
Dear Team,
I am writing to report an issue with the Order Overview(code: sc_thankyou_overview
) shortcode . The Pay button currently contains PHP code instead of a proper URL value. This problem stems from an incorrectly written line of code in the functions/theme-shortcodes.php
file.
Specifically, the line in question is:
<a href="<?php echo esc_url( $order->get_checkout_payment_url() ); ?>" class="button pay"><?php echo esc_html__( 'Pay', 'woocommerce' ); ?></a>
(for v27.5.1 line :91)
To resolve this issue, the code should be adjusted as follows:
<a href="<?php echo esc_url( $order->get_checkout_payment_url() ); ?>" class="button pay"><?php echo esc_html__( 'Pay', 'woocommerce' ); ?></a>
Thank you for your attention to this matter.
Best regards
Comments
Hi,
Thanks for reporting.
I have passed it on to the dev team, and we will correct that in the upcoming update.
Best regards