Show text, a call to action or custom HTML when a product has no price set.
This plugin will allow you to completely customise the empty price HTML on a single product page. It can be used to add a ‘CONTACT FOR PRICING’ call to action button,
some advisory text, or any custom HTML you choose.
There are three ‘content types’ available for flexibility & ease of use:
By default it will use the styles available in your custom theme, but each content type has a configurable CSS class, should you wish to style the content further.
Note on variable products:
The custom content will only show on variable products if none of the variations have a price set. Due to the nature of variable products, this will result in an out of stock message being displayed. If you do not wish to have this out of stock message, the simplest option is to only use this on ‘Simple’ or ‘Grouped’ products.
Technically, yes, as long as you use the custom HTML option. As the custom HTML will not allow you to add your own script tags for security reasons, you will have to enqueue your own Javascript seperately from the plugin. Your best option is to use a WordPress Shortcode. Support for shortcodes was added in V1.1.0.
I am considering adding the ability to enqueue your own scripts as a built-in feature, so if you require this kind of functionality, just ask.
Yes, I have two other ( completely free ) plugins called WP Dev Flag & WP Custom Author URL, both on the WordPress Repository here: