Woocommerce Code integration – php functions
-
I’m using the membership plugin to restrict some products from buying, because users should buy a yearly membership in order to be able to buy my products.
I would like to write a function in which if the product “membership” (that unlocks all the other products) is in the cart, woocommerce automatically unlocks all the other products. This because I want users to be able to buy products, without doing a double separate purchase. Membership (to unlock the products) and then products. Actually they can’t because the system tells the users “You have to buy the membership to purchase this product”even if the “membership” product is already in the cart.I hope to have described clearly the request, in case not, please ask me further details.
Thanks a lot
- The topic ‘Woocommerce Code integration – php functions’ is closed to new replies.