Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

WooCommerce - Restrict Content Pro Level Pricing

Provides per subscription level product pricing for WooCommerce and Restrict Content Pro

Integrate your Restrict Content Pro subscription levels with WooCommerce products and variations. This plugin enables the ability to set product and variation pricing per subscription level.

This is useful for sites that do not necessarily want to give a fixed discount to subscribers but would rather give discounts at the product level, for example.

Author David Jensen
Profile
Contributors dkjensen
Tags
  1. Upload woocommerce-restrict-content-pro-level-pricing to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

1.0.1

  • Check if subscription level exists before retrieving level pricing
  • Check members status before retreiving level pricing
  • Restrict trial users from receiving level pricing, add wc_rcp_level_pricing_disallow_trial filter

1.0.0

  • Initial plugin release

How can I manually display a non-subscriber price?

You can filter the display price of a product manually by filtering the output.

global $product;

$price = $product->get_price();

/**
 * @param string $price  Current price to filter
 * @param object $product  Instance of WC_Product or WC_Product_Variation
 */
$original_price = apply_filters( 'rcp_woocommerce_original_price',  $product->get_price(), $product );

How can I get the price of specific subscription level manually?

/**
 * @param string $price Current price to filter
 * @param object $product  Instance of WC_Product or WC_Product_Variation
 * @param integer $level Subscription level price to return
 */
$level_price = apply_filters( 'rcp_woocommerce_level_price', $price, $product, 1 );

How can I enable discounts for trial users?

By default trial users are not permitted subscription level pricing. You can modify this before with the filter below:

add_filter( 'wc_rcp_level_pricing_disallow_trial', '__return_false', 10, 4 );
Share  
Download
Version 1.0.1

Compatible up to: 4.7.2

Last Updated 04 Feb 2017

Date Added: 04 Feb 2017

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

0 stars
0 ratings
8 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0