Okay
  Public Ticket #3149128
Prices based on user custom field
Closed

Comments

  • Ján started the conversation

    Client uses accounting program where he stores all products, users, prices...

    We have few groups of customers which we will use for B2B Groups from your plugin (import). But also we have custom prices for products. 

    So User1 get price 10€, User2 get price 12€...these prices are connected to user. So the user is not in a group but its individual.

    Solution?: 

    Wordpress users will get custom field (jet engine/acf) where we can put price/id and then they can get this custom price imported and buy items with their own price ? 

    Is it possible somehow to implement via your plugin ?

  •  1,904
    WebWizards replied

    Hi Jan,

    Our plugin can set individual prices for each user by using "Fixed Price" dynamic rules.

    These rules can set a specific price for a specific username for a specific product.

    You can see an example of how this works here: 




    If you would need a large number of such rules or if you need to import / otherwise set them up, I would suggest perhaps looking at setting up rules via REST API. We have an article with info here: https://woocommerce-b2b-plugin.com/docs/import-or-setup-dynamic-rules-programatically/


    Kind regards,

    Stefan

  • Ján replied

    Hi thank you for answer,

    can these prices in the rules be changed dynamically ? Import of new/updated prices will be every day. 

  •  1,904
    WebWizards replied

    To change prices in rules dynamically you could use the REST API to update the rules, per my link in the previous message.


    Of course, some custom coding work will be needed to set this up / set up REST API links / cron jobs etc.