varunsridharan / woocommerce-role-based-price

WooCommerce Role Based Price Plugin
https://codecanyon.net/item/woocommerce-role-based-pricing-pro/14120734
GNU General Public License v3.0
48 stars 22 forks source link

Is it possible to add counter for certain role and product? #117

Open cooladai opened 4 years ago

cooladai commented 4 years ago

My customers do pre-orders with me so when the inventory arrives, they will claim the products according to their initial pre-order list.

What I'm doing currently, is to set the price of already purchased products to "0" so this customer can place an order for delivery without paying for it. (Which is already paid for) Then compare the orders with all 0-priced products to the pre-order list manually, update quantity delivered after each order. When the product quantity delivered is equal to what the customer had pre-ordered, I will manually change the role based pricing for this customer to the regular price, so they need to pay for them again.

My approach is as simple as: setting up a counter for one role, indicating "How many times this pricing is valid for" just like a download counter type. The counter gets updated everytime an order is placed with that product in it. Then when it reaches 0, the role-based sales pricing is expired and role-based regular pricing will be effective.

I understand this is a very specific feature which may not be applied to other users. Please kindly point me a direction on the possibility of this feature, related fields and possible approach. I will try to develop this on my own but it will help a lot if I have guidance from your team.

Thanks