Woocommerce show fields depending on role in product page
-
Hello,
I’ve been added few custom fields in my product page, for simple products and products with variations in the functions.php file of my theme(shophistic), as is explained in these two links:
https://gerhardpotgieter.com/2013/09/17/woocommerce-custom-product-fields/
http://www.remicorson.com/woocommerce-custom-fields-for-variations/So now, in every product I have the regular price, and then, three other custom fields for price called Price T1, Price T2 and Price T4.
I also created new roles for the users, called Customer T1 to Customer T4.My question is, how can I show each price according to a role? So, when the a user has the role Customer T2, only show Price T2 in the product page instead of the Regular price, and the same with the other.
Thanks a lot in advance,
Cheers
- The topic ‘Woocommerce show fields depending on role in product page’ is closed to new replies.