Sauter la navigation

[Résolu] Display specific variation of a product

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

I'm using Toolset and WC on a new site and have created products with different variations.

Those variations are related to different user levels/roles and allow to define a product price defined for each user level/role.

So, I would like to know if there is a possibility to define the variation that will be display in a Views (and only these variation) depending of the user role to be sure that a specific user will buy the product at the price defined by his role.

Solution:

There isn't such a built-in feature with Toolset, you might consider custom codes.

Relevant Documentation:

This support ticket is created Il y a 5 années et 12 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Marqué : 

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par Pat Il y a 5 années et 12 mois.

Assisté par: Luo Yang.

Auteur
Publications
#1186564

Pat

Hello,

I'm using Toolset and WC on a new site and have created products with different variations.
Those variations are related to different user levels/roles and allow to define a product price defined for each user level/role.
The idea is, when a user is logged, to display only the variation of the products that he could buy (thanks to his level /role).

So, I would like to know if there is a possibility to define the variation that will be display in a Views (and only these variation) depending of the user role to be sure that a specific user will buy the product at the price defined by his role.

Regards
Pat

#1186578

Dear Pat,

Unfortunately, there isn't such a built-in feature with Toolset to define the variation that will be display in a Views (and only these variation) depending of the user role to be sure that a specific user will buy the product at the price defined by his role.

You might consider custom codes, I have searched it in google, and found some related posts:
https://stackoverflow.com/questions/30374920/change-the-variable-product-price-while-adding-in-cart-in-woocommerce
https://stackoverflow.com/questions/29406947/woocommerce-product-variation-based-on-user-role

For your reference.

#1187273

Pat

Hy Luoy,

Finally, I think I will make it a little different : I will use the Dynamic Pricing plugin in order to be able to affect specific prices to each role.

Thanks for your time
Regards
Pat