• I would like to be able to add particular product notices to my product pages, that apply to all products (rather than manually add the notice to every individual product page), or to particular selections of pages.

    The benefit would be that I could change these notices in a single place, and the changes would automatically be reflected on all the affected product pages.

    It’s not so different from a Server-side Include, but I need these notices to appear relatively seamlessly within the product description area on the page, or just beneath it.

    Does this functionality exist in the core Woocommerce plugin, or is there an extension out there that will make this possible?

    Many thanks! 🙂

    Luke

    https://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • Consider making yourself a custom shortcode. First, make a child theme:
    http://codex.wordpress.org/Child_Themes
    then put your shortcode code in functions.php for the child theme. The code will take this form:

    <?php
      add_shortcode('my_product_notice', 'my_product_notice');
      function my_product_notice() {
        $html = '<p>Some info etc.</p>';
        $html .= '<p>More etc.</p>';
        return $html;
      } // end function

    Wherever you want the notice to appear, put:
    [my_product_notice]

    Shortcodes can be enhanced to take parameters if necessary.

    There are shortcode plugins to be found if you prefer.

Viewing 1 replies (of 1 total)
  • The topic ‘Possible to add generic product notices across selected or entire range?’ is closed to new replies.