php bad code error
-
It will never be possible to return $template
this variable does not exists in this function scope/**
* Change the error message for existing email while creating a new account at the checkout page.
*
* @param string $message_html Error message for email existent while creating a new account.
*/
public function change_message_registration_error_email_exists( $message_html ) {
// Bail if not on checkout page.
if( ! function_exists( ‘is_checkout’ ) || ! is_checkout() || is_order_received_page() || is_checkout_pay_page() ) { return $template; }$message_html = str_replace( ‘<a href=”#” class=”showlogin’, ‘<a href=”#” data-flyout-toggle data-flyout-target=”[data-flyout-checkout-login]” class=”‘, $message_html );
return $message_html;
}The page I need help with: [log in to see the link]
- The topic ‘php bad code error’ is closed to new replies.