• Resolved Branding Addicted

    (@brandingaddicted)


    Hi,
    i installed your plugin to improve user’s activation email.
    But since i’ve installed, problems has started.

    Main problems were:
    1) users received double email when they added to my online courses.
    2) my website is in italian, but reset password email (not set with your plugin) was in english.

    I tried everything and after a deep search i had to disable your plugin.

    But problems are still here.
    It seems its settings are affecting my website: in particular reset password email should be mananged by woocommerce (with its layout and contents), but notifications still arrive with your layout and contents.

    I also tried to uninstall plugin, but nothing.
    Could you please suggest something to fix it?
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Branding Addicted

    (@brandingaddicted)

    I update thread:
    woocommerce template for reset password would be this:

    <?php
    /**
     * Customer Reset Password email
     *
     * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-reset-password.php.
     *
     * HOWEVER, on occasion WooCommerce will need to update template files and you
     * (the theme developer) will need to copy the new files to your theme to
     * maintain compatibility. We try to do this as little as possible, but it does
     * happen. When this occurs the version of the template file will be bumped and
     * the readme will list any important changes.
     *
     * @see https://docs.woocommerce.com/document/template-structure/
     * @package WooCommerce\Templates\Emails
     * @version 4.0.0
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly.
    }
    
    ?>
    
    <?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
    
    <p>Ciao, <?php printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $user_login ) ); ?></p>
    <p>qualcuno ha richiesto una nuova password per l'<?php printf( esc_html__( 'Username: %s', 'woocommerce' ), esc_html( $user_login ) ); ?></p>
    <p>Se non sei stato tu, ti preghiamo di ignorare questa email.</p>
    <p>Se invece vuoi procedere, <a class="link" href="<?php echo esc_url( add_query_arg( array( 'key' => $reset_key, 'id' => $user_id ), wc_get_endpoint_url( 'lost-password', '', wc_get_page_permalink( 'myaccount' ) ) ) ); ?>">clicca qui</a>
    </p>
    
    <?php
    /**
     * Show user-defined additional content - this is set in each email's settings.
     */
    if ( $additional_content ) {
    	echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
    }
    
    do_action( 'woocommerce_email_footer', $email );

    Instead this is email sent to user:

    Someone has requested a password reset for the following account:
    Site Name: NAME OF WEBISTE
    Username: USERNAME
    If this was a mistake, just ignore this email and nothing will happen.
    To reset your password, visit the following address:
    <https://mywebsite.com/my-account/?restore_password=69*f080f7b053ed7b47688ed6255d02fd41&gt;

    This is layout generated by your plugin.

    Your plugin is no longer installed to my website, where is collected this layout?
    Please, help me.
    Thanks

    Plugin Author bnfw

    (@voltronik)

    Hi @brandingaddicted,
    Thanks for your message.

    Firstly, if you’ve disabled a plugin, it’s impossible for that plugin to continue running and affect your website.
    The content of the email that you’re seeing is the default one in WordPress so it might be that a recent update to WooCommerce or another plugin that updated at the same time has caused it to appear and start sending. You can test this by re-activating BNFW, deleting any notifications you made using it, disable the plugin again, and you’ll still see that email being made in WordPress.

    WooCommerce makes it very difficult to override the emails that they send out. I did reach out to the developers to help with how I could make BNFW more easily compatible with it but nothing came of it unfortunately.

    Thread Starter Branding Addicted

    (@brandingaddicted)

    Hi,
    thanks for your answer.
    I installed again BNFW and createed again the notification I need and finally my customers receive notification in italian when they wanna reset their password.
    But there are 2 little problems now:

    1) with hotmail addresses, if customer see the email on his browser the reset password url is not a link, please watch this picture: https://www.screencast.com/t/9pluYhgYdK (I checked it on Firefox, Chrome, Safari and Opera)
    If i open the same email with Outlook app for android no problem: url is a link and it is clickable (https://www.screencast.com/t/HmxOcDRokKy)
    No problems with Gmail and other clients.
    What would be the reason with hotmail on browser?

    2) I noticed the reset password url generated by your shortcode is not the same of the default wordpress.
    Your is: https://www.mywebsite.com/wp-login.php?action=rp&key=MAitZHEPR0QO3DFKOb0a&login=andrea79
    Default is: https://www.mywebsite.com/il-mio-account/?restore_password=abcdefghilmnopqrstuvz123456789
    How to set for your shortcode the second type of link?

    Thanks

    Plugin Author bnfw

    (@voltronik)

    Hi @brandingaddicted,
    The link will be automatically added by some email apps. If you want to add it manually, you’ll need to add some code. There’s another thread that’s just been answered about this here: https://wordpress.org/support/topic/password-url-shortcode-not-working/

    The Password reset URL on your site is actually being added by another plugin and isn’t the default one. BNFW is using the default one however. You’ll most likely need to create a regex redirect rule to convert the default WordPress URL into your desired one.

    Thread Starter Branding Addicted

    (@brandingaddicted)

    Hi,
    thanks again for this quick reply.

    For url i will read other thread, thanks

    For reset url, couldn’t you suggest some code to add to our website to tell to your plugin “hey, this is the new url and please use this” ? :))

    Thanks

    Plugin Author bnfw

    (@voltronik)

    Hi @brandingaddicted,
    Thanks.

    Agreed, it’s on my roadmap already 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugin continue to override wordpress email even if I deleted it’ is closed to new replies.