[CLOSED] User role based pricing

Home – SaaS Forums Support questions WooPrice Calculator (Pro) [CLOSED] User role based pricing

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6397
    Martijn Dortland
    Participant

    Hello,

    Is it posible to make different prices for loged in users?

    Greetings,

    Martijn Dortland

    #6398
    Anonymous
    Guest

    Hi Martijn,

    You can display a different price if you know a little of PHP. You can use hooks, for example:

    add_filter('woo_price_calculator_calculate_price','cmw_custom_price',0,4);
    function cmw_custom_price($price,$product_id,$simulator_id,$data){

    if(is_user_logged_in()){
    $price = $price*3;
    }

    return $price;
    }

    With this simple piece of code you can multiply the price by 3 if the user is logged in, otherwise the default price if the user is not logged in.

    If you need a more complex code and you don’t have a good PHP knowledgement, you can ask us a quote to “https://altoswebsolutions.com/contact-us”

    Best regards,
    Enrico

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.