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-pricing
to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
FAQ
- 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 );
Reviews
There are no reviews for this plugin.
Contributors & Developers
“WooCommerce – Restrict Content Pro Level Pricing” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “WooCommerce – Restrict Content Pro Level Pricing” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
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_trial
filter
1.0.0
- Initial plugin release