• Resolved Christian Kormos

    (@darkchris)


    Dear Support,

    After WC 8.5.0 my custom notices are not customizable anymore by template files.

    Is that a known issue?

    Kind regards,
    Krisztian

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hello @darkchris,

    Thank you for reaching out.

    I’m sorry to hear that you’re having issues with customizing your notices after the WC 8.5.0 update.

    At the moment, we have not received similar reports regarding this issue. However, we are more than willing to help you troubleshoot this.

    Could you please provide more details about the problem? Any screenshots or error messages would be helpful. You can use a screenshot sharing software like https://snipboard.io/ and paste the link here.

    Cheers!

    I have the same problem, I use a hook to hide notifications on all pages except the checkout page but with this update the hook no longer works to hide notifications

    Plugin Author Barry

    (@barryhughes-1)

    To help ensure we’re looking at the same thing, would either of you be able to share a minimal snippet that would let us replicate? Thanks!

    Thread Starter Christian Kormos

    (@darkchris)

    Has no effect

    Thread Starter Christian Kormos

    (@darkchris)

    <?php
    
    /**
     * Show info messages
     *
     * woocommerce/notices/notice.php ...
     */
    
    if (!defined('ABSPATH')) {
    	exit;
    }
    
    if (!$notices) {
    	return;
    }
    
    ?>
    
    <?php foreach ($notices as $notice) : ?>
    	<div class="wc-block-components-notice-banner is-info" <?php echo wc_get_notice_data_attr($notice); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 
    															?> role="alert">
    		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false">
    			<path d="M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"></path>
    		</svg>
    		<div class="wc-block-components-notice-banner__content">
    			Where are you?
    			<?php echo 'Where are you?' . wc_kses_notice($notice['notice']); ?>
    		</div>
    	</div>
    <?php endforeach; ?>

    The ‘Where are you?’ part does not appear in the info notices or any other modifications. It worked before the 8.5.0 release.

    I have the same problem after updating to WC 8.5. The notices overrides in my theme are completely ignored. Yesterday, when looking at the status of WooCommerce, there where overrides visible, but the path was from the WooCommerce plugin not the theme.

    Hi Krisztian and felixfelixfelix,

    Thanks for getting back to us. I understand you are having issues with the notices template files after updating to WooCommerce 8.5.0.

    This could be related to the fatal error in version 8.5.0 that affects some sites. You can follow the progress of this issue on GitHub: https://github.com/woocommerce/woocommerce/issues/43406

    In the meantime, you can roll back to WooCommerce 8.4.0, which is a stable version that does not have this problem. To do this, you can manually download and upload WooCommerce 8.4.0 from this link. Please make sure to back up your site before doing this, as rolling back may cause some data loss or compatibility issues.

    I appreciate your patience and understanding. If you have any further questions or need more assistance, please let us know.

    Have a great day!

    Thread Starter Christian Kormos

    (@darkchris)

    Dear Afzal,

    Thank you for your answer.

    I’m not sure it’s related to a fatal error, because I’ve no any errors. (debug mode : true). I think it’s something behind the plugin’s template hierarchy.

    I’m still waiting for the deeper answer from a plugin author level member like @barryhughes-1.

    Hi there @darkchris 👋

    Meanwhile, feel free to take a look at the following two Pull Requests (PRs), for some more context on what’s changed.

    You’re welcome to participate on GitHub, as WooCommerce is an open-source project and contributions are welcome!

    I hope this is helpful!

    Thread Starter Christian Kormos

    (@darkchris)

    Hi @anastas10s,

    Yes, it was helpful!

    Thank you for the information and PRs.
    I’m going to check them.

    Have a great day!

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hello @darkchris,

    I’m glad to hear that the information and PRs were helpful to you!

    Feel free to contact us if you have any more questions or need further assistance as you check them.

    Have a great day!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘WC 8.5.0 issue : wocommerce/notices template files has no effect’ is closed to new replies.