• Resolved dipstar

    (@dipstar)


    Hello.

    I made my Woocommerce store display custom notice message on checkout page by adding codes below in function.php:

    add_action('woocommerce_before_checkout_form', 'my_custom_message');
    function my_custom_message() {
    	wc_print_notice(__('CUSTOM MESSAGE HERE'), 'notice');
    }

    Indeed custom notification appears as I expected, however, I also found it is to be faded out only 10secs after checkout page loaded.

    Furthermore the same situation occurs in all error messages(ribons) provided by WooCommerce originally.

    I would like to provide visitors for enough time to read every message carefully. Is there anyone who knows the way to adjust when to close message ribbons or absolutely disable this function?

    Thank you for your great support!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @dipstar

    Thanks for reaching out!

    I understand that you would like to display the warning messages on your site longer so that your customers would have enough time to read them.

    To better picture what you are referring to here, can you please share with us a clear screenshot of what you see on your end so that we could address you more effectively?

    If you don’t already have a screenshot service installed, you can try https://snipboard.io or https://skitch.com/. You can share the direct link to the image as a response to this topic.

    Additionally, I’d like to understand your site properly, please share your System Status Report that you can find via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, you can paste it into your reply here.

    Thanks!

    Thread Starter dipstar

    (@dipstar)

    Hello xue28! Thank you for the reply.

    Of course, Here is the video screenshots.

    Notice ribbon disappears: https://streamable.com/hb0nt6
    Error ribbon disappears: https://streamable.com/3n62j1

    Only the message referring coupon (default feature by WooCommerce) remains even after 10seconds I reloaded the page.

    By default(WooCommerce without any external themes or plugins), such notices should not be faded out?

    Hi,

    Thanks for sending the screencasts.

    To help you to check better, please share your System Status Report, found under WooCommerce > Status on your site.

    Best.

    Thread Starter dipstar

    (@dipstar)

    Thread Starter dipstar

    (@dipstar)

    ok finally we have found what causes the issue… It was simply because my third-party theme has a original option that enables users to adjust when notices will be closed. I should have asked this question first to theme author. Sorry for disturbing you.

    Hi,

    Glad to hear that you figured this out.

    If you have any other questions, feel free to create a new thread.

    Best.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can I prevent notice/error message on checkout page from being faded out?’ is closed to new replies.