Our WooCommerce Integration for Paid Memberships Pro allows you to set up unique product discounts based on the user’s membership level.
If your WooCommerce store is open to non-members too, here’s a code to incentivize visitors to purchase a membership and reap the benefits. This recipe displays a message to non-members with the price they could be paying (and the savings they’d get) if they had a membership.
![Banner Image for Tease Membership Price in WooCommerce Code Recipe](https://www.paidmembershipspro.com/wp-content/uploads/2023/01/tease-membership-price-woocommerce-1024x576.jpg)
Table of contents
About the Code Recipe
This code snippet allows you to show a product’s original price and display a notice of the discounted member-only price. Use this code to show non-members just how much value they’d get by joining your site.
![Screenshot of product in WooCommerce store with members pay tease notice](https://www.paidmembershipspro.com/wp-content/uploads/2023/01/pmpro-tease-members-discount-price-1024x546.png)
This can be a great way to increase your recurring revenue, attract new members to your membership offering, and keep current members returning to your store to make regular purchases.
The Code Recipe (PHP)
Adding the Recipe to Your Website
You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.
Update line 22 to reflect what membership level’s discount pricing you want to display in the notice. You can optionally update line 78 to customize the message shown on the single product page.