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

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

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. If showing the member price isn’t the effect you want, the opposite approach is to hide pricing from non-members entirely. Turn Your WooCommerce Store Into a Catalog for Non-Members walks through that setup.

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.

Want to tweak this recipe? An AI coding assistant can help you adjust the code to fit your exact needs, or even add it to your site for you. Always test changes on a staging site first and keep a backup.

Rather have us handle it? With PMPro Max, you can submit a Do It For Me request, and our team will review it and, when possible, add or customize this recipe directly on your site.

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.



Was this article helpful?
YesNo

Free Course: Membership Site Development—The Basics

Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.

Featured Image for Membership Site Development Course: The Basics