Woocommerce store notice disapeared on 28.x.x update
Hi,
we're having an issue with the Woocommerce store notice functionality. Probably after updating BeTheme, the notice disapeared. Changing theme to storefront works.
The notice appears after adding this piece of code to child functions.php:
add_action( 'mfn_hook_top', 'bt_custom_store_notice', 10 );
function bt_custom_store_notice(){
if ( 'yes' === get_option( 'woocommerce_demo_store' )
&& $text = get_option( 'woocommerce_demo_store_notice' )
) {
wc_get_template( 'notices/store-notice-content.php' );
echo '<div class="woocommerce-store-notice-wrapper">';
echo '<div class="woocommerce-store-notice">' . wp_kses_post( $text ) . '</div>';
echo '</div>';
}
}
Could you confirm if it's a bug on your end? Thanks!
Comments
Hi,
Which version of Betheme do you have exactly?
Can you attach a link to your website, please?
Thanks
Hi,
the problems occur on multiple websites, but for example: https://kartkimalowane.pl
Betheme version: 28.1.3
(The store notice shows for now, but it needs the hook i mentioned in the first message)
Hey,
Please send us the WordPress dashboard and FTP access privately through the contact form, which is on the right side at https://themeforest.net/user/muffingroup#contact and we will check what might be the reason.
Notice!
Please attach a link to this forum discussion.
Sending incorrect or incomplete data will result in a longer response time.
Therefore, please ensure that the data you send are complete and correct.
Thanks
Hi,
alright, I sent you the details, thank you for your help!
I have checked that, and passed on to the dev team.
For now, leave your custom code in the child theme. I will get back to you if I have any updates.
Best regards
Hi,
any update in this topic?
Yes, it was corrected in the newest version (28.1.5).
Best regards