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.

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.

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
Was this article helpful?
YesNo