Our WooCommerce Integration for Paid Memberships Pro allows you to set up unique product discounts based on the user’s membership level.

This code snippet allows you to show a product’s original price (the price that non-members would pay) by striking out / crossing out that price and displaying the member price (or discounted price for members) next to it.

This applies to both global discounts and product-specific discounts.

Banner Image for Add Strike Through Pricing for Discounts in WooCommerce

By default (at the time of this writing), the PMPro WooCommerce Add On replaces the product’s price with the member price. Members may or may not notice that the price has changed.

This logic is similar to how WooCommerce shows sale prices.

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.

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