WooCommerce: User Can Only Purchase A Product Once

In the era of online courses, subscriptions, custom-made products and product personalization, it may happen that you need to limit a specific WooCommerce product sales. For example – users may only purchase a trial product once in their lifetime.

In this short tutorial, we will see how this is done. Clearly, the user must be logged in in order for the code to trigger, so this applies to stores that require checkout login before proceeding with the order.


Continue reading WooCommerce: User Can Only Purchase A Product Once

WooCommerce: How to Create A Private Store

WooCommerce powers over 26% of global eCommerce websites and is an excellent and convenient way to create your online shop without writing a single line of code.  

But besides its convenience – another factor that makes WooCommerce a popular choice is its flexibility. While the core WooCommerce installation helps you create a basic online store with ease – specific paid WooCommerce plugins make it easy to create a customized and ideal business model of your choice. 

For instance, several businesses prefer a private WooCommerce store model to grant access or sell products and services to specific customers and hide from the others. This is where a private store for WooCommerce plugins comes into the picture. 

A great example is Oriflame – a direct sales leading beauty company that sells products for everyone and reserves some for specific VIP members on their website. They offer benefits like exclusive discounts, access to a complete range of products, and fast delivery to these VIP members. 

There can be multiple other reasons behind creating a private WooCommerce store. In this article, we’ll briefly touch on those reasons and share some of the best WooCommerce private store plugins you can use for your WooCommerce store. Let’s go!

Continue reading WooCommerce: How to Create A Private Store

WooCommerce: Edit Product Layout If Logged In

Logged in customers often require different UX, communication and website layout. You can hide add to cart buttons for logged out users, yes, but you can also completely remodel the single product page layout. For example, you can remove the featured image, the add to cart button (because maybe you only want them to purchase one product), the sale badge, the price, product tabs, and so on – while also adding logged-in only information such as custom buttons, banners and media.

In this tutorial we’ll see how to target logged in customers who purchased the current product, how to remove some default layout elements and how to add some custom HTML and CSS to the single product page. Enjoy!

Continue reading WooCommerce: Edit Product Layout If Logged In

WooCommerce: Single Product Page Redirect for Logged In Customers

If you sell one-off products like online courses, lifetime memberships or unique pieces that can only be purchased once by a given customer, maybe you’d better redirecting the logged in customer who has purchased that product to a custom URL, such as the shop page, the “my courses” page for online courses or another customer-specific section.

With this easy snippet you’ll learn how to see if a user is logged in and has purchased a given product ID and then how to do a safe PHP redirect. Enjoy!

Continue reading WooCommerce: Single Product Page Redirect for Logged In Customers