Buy restriction problem
-
Hi,
I’m trying to create a new product with woocommerce api. For my purpose I need to restrict the purchase of article to subscribed users (multiple subscription plans).
I’ve seen that a meta_data key named pms-purchase-restrict-subscription-plan with value of the subscription plan id is set to the product.
With the old product editor it work but it need to be done product by product
When I activate the new product editor
I see that in custom field
But if I try to change a value it’s not possible because the name of the meta_data is not unique
When I want to add multiple time the pms-purchase-restrict-subscription-plan with the api it’s not possible too.
My question is : How can I create a product with api and restrict the purchase of it to multiple subscription plans ?
- You must be logged in to reply to this topic.