Woo Custom Empty Price

설명

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:

  1. A simple text box with options for bold or italic styling
  2. A button with an optional link
  3. An option to add your own custom HTML

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.

스크린샷

  • Plain Text settings:
  • Call To Action settings:
  • Custom HTML settings:

설치

From your WordPress dashboard

  1. Visit ‘Plugins > Add New’
  2. Search for ‘Woo Custom Empty Price’
  3. Activate ‘Woo Custom Empty Price’ from your Plugins page.
  4. Visit ‘Woo Custom Empty Price Options’ in the ‘Plugins’ submenu to access the settings.

From WordPress.org

  1. Download ‘Woo Custom Empty Price’.
  2. Upload the ‘woo-custom-empty-price’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
  3. Activate ‘Woo Custom Empty Price’ from your Plugins page.
  4. Visit ‘Woo Custom Empty Price Options’ in the ‘Plugins’ submenu to access the settings.

FAQ

Can I set the button to open a popup, for say a contact form?

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.

Do you have any other useful plugins?

Yes, I have two other ( completely free ) plugins called WP Dev Flag & WP Custom Author URL, both on the WordPress Repository here:

WP Dev Flag
WP Custom Author URL

후기

2020년 11월 4일 1 reply
Needed this exact solution for a number of products and it worked exactly as described with hardly any setup. Thank you, Chris.
2020년 8월 25일
Hello, it worked perfectly! I inserted a button via shortcode. But the button was only displayed on the single product, is there any way to display the button on the products archive?
2020년 2월 26일 3 replies
I'm so glad I found this! My only complaint is that I had to do some custom CSS and use !important to get the button to follow the same format as my theme's buttons.
모든 4 평가 읽기

기여자 & 개발자

“Woo Custom Empty Price”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Woo Custom Empty Price”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.1.5

  • Remove unnecessary hook that was causing a warning.

1.1.4

  • Fixed bug causing errors on some themes, eg. Storefront.

1.1.3

  • Full code factoring which no longer uses WPPB, resulting in a much lighter codebase.
    Also the plugin now uses its own override template for single-product/price.php to make it more consistent across themes.

1.1.2

  • Updated deprecated jQuery .load() function to use .on()

1.1.0

  • Added shortcode support to HTML content type.

1.0.0

  • First Version.