Set a Total Purchased Value per product and per customer

I’m developing a gift card sale for the company I’m working for and I need to be able to restrict the lifetime purchase values of a product per customer.

Example:

The maximum cumulative value per customer I want to set is $500. The customer should be able to purchase as many gift cards as they want until they reach the $500 limit. They could do this by buying five $100 gift cards, all on different occasions. The system then should show a message if they try and purchase this specific product again.

I haven’t found any plugins that can achieve this so I’m looking for a code snippet or paying someone to write the code that’s also future-proof.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer