• Resolved eyewebdesign

    (@eyewebdesign)


    Hi

    I’m making a webshop in Woocommerce, WordPress. When someone visits the site, he has to make a choice between school or person. When he chooses ‘person’ he comes in the shop with the products he can order in the regular way. When he chooses ‘school’, the same products appear, but with a lower price. Also on checkout, there should be other payment options.

    With a user account based on user role, this would be easy to achieve, but is this possible without logging in? Maybe with a session or a cookie?

    Any ideas? suggestions? plugins?

    Thanks in advance. Davy

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @eyewebdesign,

    Indeed, a setup like this would require using the user’s role to determine the price of the product shown, which would require login.

    Since you’re not looking at users logging in, I’d suggest using categories and duplicating the product and setting a lower or higher price for the other category (e.g school or person category).

    You can also use a page and use the product block to display products from the respective categories.

    Your homepage can be a custom page with SCHOOL and PERSON buttons that redirects users to the school or person category/page depending on their selection.

    I hope this helps!

    Thread Starter eyewebdesign

    (@eyewebdesign)

    Hi,

    Not really, because it needs to be the same product so that stock will be correct. That is the big difficulty.

    But thanks for thinking with me.

    Kind regards
    Davy

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @eyewebdesign,

    From my perspective, you can still achieve your goal using a plugin that varies product prices based on user roles. The catch here is that either of these users will have to be logged in to see the ‘correct’ prices for their roles.

    Here are a few role-based pricing plugins:
    https://woocommerce.com/products/role-based-pricing-for-woocommerce/
    https://www.ads-software.com/plugins/price-by-user-role-for-woocommerce/

    For adding new user roles, you can use the User Role Editor plugin.

    I hope this helps.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi,
    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, the above info was useful and you were able to find a solution to your problem!

    If you have further questions, please feel free to open a new topic.

    Thanks.

    Thread Starter eyewebdesign

    (@eyewebdesign)

    That’s the point. My client don’t want that users have to login to see other prices

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change Woocommerce product prices based on page’ is closed to new replies.