Skip Navigation

[Resuelto] display different prices per role for product

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 2 años, 8 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por Diego Walter Ricciardi hace 2 años, 8 meses.

Asistido por: Minesh.

Autor
Mensajes
#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:

enlace oculto

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

Idiomas: Inglés (English )

Zona horaria: 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

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Ok great.

#2318833

My issue is resolved now. Thank you!