Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author CloudRedux

    (@cloudredux)

    Hello @alexliii,

    The plugin currently does not support ordering of the notices. However, we do have plans to offer this as a feature in the plugin so that it is easy to set a display order for global and product-level notices.

    You can still set-up global notices using custom code that would show up in the desired order of appearance. You can then disable/unpublish the global notices created using the plugin to show only the notices created using the code below:

    function crwcpn_show_custom_global_notice() {
        $notice_one = '<p class="crwcpn-notice crwcpn-global-notice red">Notice 1 text here. You can use all the HTML you like.</p>';
        $notice_two = '<p class="crwcpn-notice crwcpn-global-notice green">Notice 2 shows here. Use all valid HTML tags to make it look visually appealing.</p>';
        $notice_three = '<p class="crwcpn-notice crwcpn-global-notice blue">Create as many notices as you like.</p>';
    
        $content = $notice_one . $notice_two . $notice_three;
    
        echo do_shortcode( wp_kses_post( $content ) );
    }
    
    add_action( 'woocommerce_single_product_summary', 'crwcpn_show_custom_global_notice', 11 );

    You would need to add the code to your theme’s functions.php (preferably a child theme) or use a plugin like WP Designer or Code Snippets to add this custom code to your website.

    Plugin Author CloudRedux

    (@cloudredux)

    Hi @alexliii,

    Just checking in to see if you have been able to achieve what you wanted to with the custom code we shared. Did it work for you?

    Let us know if you have any questions or if you need any other help with the plugin. If this worked for you, feel free to mark this topic as resolved.

    Thread Starter alexliii

    (@alexliii)

    Hello,

    I did not try it in this way, because it is not convenient to maintain notice with html code.

    Anyway, marked as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reorder Multiple notices’ is closed to new replies.