이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

WooCommerce RRP

설명

WooCommerce RRP allows a users to add text before the regular price and sale price of a product from within WooCommerce General settings. You can also select to have this text displayed on archive templates by simply clicking a select box.

If you would like to change the display text for a certain product, you can use the WordPress add filter function, please see the FAQ for an example.

If you have suggestions for new features, please add your idea in the “Support” area for this plugin.

If WooCommerce RRP has made your life a little easier, please leave a positive review in the “Reviews” area for this plugin.

Requires WooCommerce to be installed.

스크린샷

  • Entering text into the "Product Price Text" will display before the regular price for the product.
  • Here you can see the arrow pointing to the text displayed that you entered in the "Product Price Text" field.
  • Entering text into the "Sale Price Text" will display before the sale price for the product.
  • Here you can see the arrow pointing to the text displayed that you entered in the "Sale Price Text" field.
  • Selecting the "Show Text On Archives" will display the text entered in the "Product Price Text" and "Sale Price Text" fields on archive templates.
  • Here you can see the arrows pointing to the text entered in "Product Price Text" and "Sale Price Text" on an archive.

설치

  1. Upload WooCommerce RRP to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to WooCommerce > Settings and add your text to the input areas in “Currency Options”. See Screenshots for a visual explanation.

FAQ

What if I want to change the “Product Price Text” for a certain product?

This can be done using the built in WordPress add filter function. For example, if we had a product with an id of 96 and we wanted to change the text of the “Product Price Text” field to “Your new Product Price Text, the function would like this:

function change_before_regular_price( $woo_rrp_before_price ) {
    global $post;
    if ( '96' == $post->ID ) :
        return 'Your new Product Price Text';
    else :
        return $woo_rrp_before_price;
    endif;
}
add_filter( 'woo_rrp_before_price', 'change_before_regular_price' );

What if I want to change the “Sale Price Text” for a certain product?

This can be done using the built in WordPress add filter function. For example, if we had a product with an id of 96 and we wanted to change the text of the “Sale Price Text” field to “Your new Sale Price Text, the function would like this:

function change_before_sale_price( $woo_rrp_before_sale_price ) {
    global $post;
    if ( '96' == $post->ID ) :
        return 'Your new Sale Price Text';
    else :
        return $woo_rrp_before_sale_price;
    endif;
}
add_filter( 'woo_rrp_before_sale_price', 'change_before_sale_price' );

Can you provide a list of filters that are available and a description of what they control?

Sure, there are two filters available for you to use:

  • woo_rrp_before_price – Controls the text that is displayed before the regular price of a product.
  • woo_rrp_before_sale_price – Controls the text that is displayed before the sale price of a product.

Enabling the “Show Text On Archives” messes up the archive display, can you please fix this?

You will need to tidy this up using a little CSS styling.

There isn’t any translations of this plugin, can I provide you a translation in my local language to include?

후기

2021년 8월 19일
This is a very usefull plugin I was looking for. I only have a problem with the Product Price Text, if I have an Sale Price Text displayed, it doesn't appear. I don't know why both PPT and SPT don't appears in my homepage while they have the above descrive issue on other archive or search archive.
2020년 6월 12일
works great thanks a lot , text and font sizes determined by woocommerece not the plugin for those who need to know , working on 5.4!bye
2018년 3월 15일
I sell steel and aluminum products. The price changes all the time. Can't list a price online. This works great so I don't have to have woocommerce modified to have my schema work.
2018년 2월 20일
Really good plugin. Does exactly what it says it does.
모든 9 평가 읽기

기여자 & 개발자

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

기여자

자국어로 “WooCommerce RRP”(을)를 번역하세요.

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

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

변경이력

1.7.6

  • Tested on WordPress 5.9
  • Tested on WooCommerce 6.2.0
  • Fixed display bug for “Product Price Text” when item is on sale
  • Fixed display for “Product Price Text” when product does not have a price
  • Changed filter priority to fire later
  • Refactoring functions in render category and single product classes

1.7.5

  • Updated single product to not output product price text field when price is empty
  • Updated category view to not output product price text field when price is empty

1.7.4

  • Tested on WordPress 5.5.1
  • Tested on WooCommerce 4.6.1

1.7.3

  • Tested on WordPress 5.2.2
  • Tested on WooCommerce 3.7.0

1.7.2

  • Tested on WordPress 5.1
  • Tested on WooCommerce 3.5.5

1.7.1

  • Tested on WooCommerce 3.5.3

1.7.0

  • WPCS refactor
  • Tested on WordPress 5.0.0
  • Tested on WooCommerce 3.5.2

1.6

  • Added translation functions on user input strings
  • Added languages folder with po, mo and pot file in en_AU
  • Tested on WordPress v4.9.8
  • Tested on WooCommerce v3.4.4

1.5

  • Tested on WordPress v4.9.6
  • Tested on WooCommerce v3.4.1

1.4

  • Tested on WordPress 4.9
  • Tested on WooCommerce 3.2.4
  • Added span with class=”rrp-price” around before price string
  • Added span with class=”rrp-sale” around before sale price string

1.3

  • Tested on WordPress 4.8.2
  • Tested on WooCommerce 3.2.1
  • Add WooCommerce header version check

1.2

  • Tested on WordPress 4.8
  • Tested on WooCommerce 3.0.8
  • Removed   and replaced with whitespace for readers

1.1

  • Added conditional check to price so text only shows if price is not empty

1.0

  • Original commit and released to the world