Skip Navigation

[Resolved] display different prices per role for product

This thread is resolved. Here is a description of the problem and solution.

Problem:
display different prices per role for product

Solution:
There is no such feature available with Toolset to display different prices per role.

You can find proposed solution in this case with the following reply:
https://toolset.com/forums/topic/add-to-cart-variable-products-trying-to-do-a-couple-of-things-conditional-if/#post-2317257

Relevant Documentation:

This support ticket is created 2 years, 8 months ago. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by Diego Walter Ricciardi 2 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#2316661

Tell us what you are trying to do?
A couple of things and I can't find any documentation even though I've searched and searched:

hidden link

Here you can see I have a variable product, (let's focus on the first container, since I'm trying out a template switch) what I wish I could do:
Show both variation prices by default, instead of having to click on them to be shown. (low low priority)
Most importantly: I want to conditionally show SKU + Stock of the variations depending on the user Role, ideally Shop manager and above. In the add to cart itself I don't have many options, then I saw (I think it's new?) the Single Field block which I can put to show SKU and stock and wrap that in an IF, should work, except the block doens't recognize the variation change and therefor shows nothing.
I would really need to show things depending on user role.

Thank you!

#2317257

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

There is no such feature available with Toolset to display different prices per role.

I found the following references that might help you:
- 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

You may want to use the dynamic pricing plugin:
- https://woocommerce.com/products/dynamic-pricing/
or
- Role based-pricing for woocommerce:
https://woocommerce.com/products/role-based-pricing-for-woocommerce/

#2317475

I'll check to see if it helps!

#2317997

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok great.

#2318833

My issue is resolved now. Thank you!