WooCommerce – Restrict Content Pro Level Pricing
Provides per subscription level product pricing for WooCommerce and Restrict Content Pro
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 2617 days ago
Is WooCommerce – Restrict Content Pro Level Pricing abandoned?
Possibly abandoned (last update 2617 days ago).
Compatibility
Languages
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
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.
Installation
- Upload
wc-rcp-level-pricingto the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
Frequently Asked Questions
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 );
Review feed
Screenshots
Changelog
1.0.4
- Compatibility with PHP 7.3
1.0.3
- Improved WooCommerce 3.0+ compatibility
1.0.2
- WooCommerce 3.0+ compatibility
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_trialfilter
1.0.0
- Initial plugin release