开发者 | cloudredux |
---|---|
更新时间 | 2024年6月18日 17:18 |
PHP版本: | 7.2 及以上 |
WordPress版本: | 6.2 |
版权: | GPLv3 |
版权网址: | 版权信息 |
product-notices-woocommerce
folder to the /wp-content/plugins/
directory.product-notices-woocommerce
folder.Global Notice shows up on all the products on your store. In order to set up a global notice, navigate to the Settings menu under WooCommerce on the WordPress Dashboard. Click on the Product Notice tab and use the settings field to set up the product notice that you intend to show on all the products in the store.
If you do not wish to display the notice on all the products, you can set up notice on per-product basis. Head to the Edit Product screen for any product and look for the Product Notice/Information meta box and add the desired content in the Notice Text field. Choose from a set of default appearance styles to set up how your notice shows up on the page using the Notice Appearance dropdown.
Sure, if you have a configured a global notice to show on products and would like to display additional information, promo, discount notice or any other type of notice on a product page; you can simply head straight to the Edit Product screen for a product and add the notice. In this case, both the Global and Per-Product notice would be displayed on that product page.
If you want some of the product pages on your store to not display the global notice that you have set up, just head to the Edit Screen for the product(s) and locate the Global Notice metabox in the sidebar. Check that box to hide the global notice on that product page.
Yes you can use standard HTML tags to customize and set-up notices to your liking!
Sure, feel free to use any shortcode in the notice text field and it would output just fine on the frontend. Be careful while using shortcodes that output highly dynamic content. This may lead to performance bottlenecks or other failure.
We received a lot of requests for this feature and tada, it is here. You can use [crwcpn-notice]
shortcode to display global notice as configured in the plugin settings. Use [crwcpn-notice type="product"]
to show product notice and you can also supply id
attribute if you wish to display notice created for a specific product like this [crwcpn-notice type="product" id="123"]
.
wp_kses_post
validation/escaping in the shortcode output. This would allow certain shortcodes that output form elements work as expected on the frontend.assets
.